帝国cms信息反馈表单限制ip提交次数
可以在q_function.php文件中增加注释内的代码实现
$ipnum>数值 修改为合适的数值
//提交反馈信息 function AddFeedback($add){ global $empire,$dbtbpre,$level_r,$public_r; CheckCanPostUrl();//验证来源 //ipcheck-20210106 $sip=egetip(); $ipnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfeedback where ip='$sip' and DATE_SUB(CURDATE(), INTERVAL 7 DAY) <= date(saytime)"); if($ipnum>220){ printerror("ReDoForPl","history.go(-1)",1); } //ipcheck