代码放在e/class/q_functions.php下
$rzip=egetip(); $inum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfeedback where ip='$rzip' and date_format(saytime,'%Y-%m-%d') = date_format(now(),'%Y-%m-%d')"); if($inum){ echo printerror2("IP".$rzip."今日已发一条反馈!"); exit; }
转载请注明:有客帮 » 帝国cms设置一个ip每天只能提交一次反馈表单