|
打开plus下diy.php文件
找到
if(!is_array($diyform))
{
showmsg('自定义表单不存在', '-1');
exit();
}
再其下添加
查看源码
打印代码帮助
01
//检测游客是否已经提交过表单
02
if(isset($_COOKIE['VOTE_MEMBER_IP',))
03
{
04
if($_COOKIE['VOTE_MEMBER_IP', == $_SERVER['REMOTE_ADDR',)
05
{
06
ShowMsg('您已经填写过表单啦','-1');
07
exit();
08
} else {
09
setcookie('VOTE_MEMBER_IP',$_SERVER['REMOTE_ADDR',,time()*$row['spec',*3600]'/');
10
}
11
} else {
12
setcookie('VOTE_MEMBER_IP',$_SERVER['REMOTE_ADDR',,time()*$row['spec',*3600]'/');
13
} |
|