4、添加代码操作 查找代码:
if(!is_array($diyform)){showmsg('自定义表单不存在', '-1');exit();}如图所示,搜索上面代码。在其下面添加下列代码:
if(isset($_COOKIE['VOTE_MEMBER_IP'])){if($_COOKIE['VOTE_MEMBER_IP'] == $_SERVER['REMOTE_ADDR']){ShowMsg('您已经填写过表单啦','-1');exit();} else {setcookie('VOTE_MEMBER_IP',$_SERVER['REMOTE_ADDR'],time()*$row['spec']*3600,'/');}} else {setcookie('VOTE_MEMBER_IP',$_SERVER['REMOTE_ADDR'],time()*$row['spec']*3600,'/');}
新闻热点
疑难解答