include("../config/conn.php"); include("../config/function.php"); if($_SESSION["SHOPUSER"]!=""){php_toheader("../user/");} //修改该文件,要同步修改下reg/reg.php、reg/qqreturnlast.php 、m/reg/reg.php //写入数据库开始 if($_GET[action]=="add"){ $sj=date("Y-m-d H:i:s"); $uip=$_SERVER["REMOTE_ADDR"]; zwzr(); //需要短信验证B if(1==$rowcontrol[regmob]){ $mot=$_SESSION["REGMOT"]; $motyz=sqlzhuru($_POST[t9]); $ifmot=1; if($motyz!=$_SESSION["REGMOTYZ"] || empty($motyz)){Audit_alert("短信验证码不正确,返回重试!","reg.php");} $_SESSION["REGMOT"]=""; $_SESSION["REGMOTYZ"]=""; } //需要短信验证E if(strtolower($_SESSION["authnum_session"])!=strtolower(sqlzhuru($_POST["t5"]))){Audit_alert("验证码不正确,返回修改验证码!","reg.php");} include("../tem/uc/reg.php"); $uid=sqlzhuru(trim($_POST[t1])); $pwd=sqlzhuru($_POST[t2]); $nc=sqlzhuru($_POST[t4]); $uqq=sqlzhuru($_POST[t6]); $email=sqlzhuru($_POST[t7]); include("reg_tem.php"); include("../tem/uc/reg1.php"); php_toheader(returnjgdw($_SESSION["tzURL"],"","../user/")); } //写入数据库结束 //推荐人ID COOKIE入 $tid=$_GET[tid]; if(!empty($tid)){ $Month = 864000 + time(); setcookie(tjuserid,$tid, $Month,'/'); } ?>