else if($dopost=="regnew") { //$ip=$_SERVER['REMOTE_ADDR']; $ip=GetIP(); $nameee='holy16'; $row = $dsql->GetOne("Select jointime From `dede_member` where joinip like '$ip' order by mid desc limit 1"); $now_time =date("Y-m-d",time()); $join_time =date("Y-m-d",$row['jointime']); $d1=strtotime($now_time); $d2=strtotime($join_time); $Days=round(($d1-$d2)/3600/24); if ($Days>=1){ require_once(dirname(__FILE__)."/reg_new.php"); } else{ ShowMsg("请不要重复注册,谢谢你对监测人网站的支持。","-1"); } //加入防止一个IP重复注册,结束$row['jointime'] //require_once(dirname(__FILE__)."/reg_new.php"); //exit(); } |
新闻热点
疑难解答