include("../../config/conn.php"); include("../../config/function.php"); sesCheck_m(); if($_GET[control]=="bd"){ zwzr(); if(panduan("uid,ifemail","yjcode_user where uid='".$_GET[email]."' and ifemail=1")==1){Audit_alert("认证失败,邮箱帐号已经认证过,无需重复认证","emailbd.php");} if(empty($_GET[yz])){Audit_alert("验证码有误!","emailbd.php");} if(panduan("uid,bdemail","yjcode_user where bdemail='".$_GET[yz]."' and uid='".$_SESSION[SHOPUSER]."'")==0){ Audit_alert("验证码输入有误,请重新认证","emailbd.php"); } updatetable("yjcode_user","ifemail=1,bdemail='' where uid='".$_SESSION[SHOPUSER]."'"); php_toheader("emailbd.php?t=suc"); }elseif($_GET[control]=="delbd"){ if(panduan("uid,bdemail","yjcode_user where bdemail='".$_GET[yz]."' and uid='".$_SESSION[SHOPUSER]."'")==0){ Audit_alert("验证码输入有误,请重新提交","emailbd.php"); } updatetable("yjcode_user","ifemail=0,bdemail='' where uid='".$_SESSION[SHOPUSER]."'"); php_toheader("emailbd.php?t=suc"); } $sqluser="select uid,email,ifemail from yjcode_user where uid='".$_SESSION[SHOPUSER]."'";mysql_query("SET NAMES 'GBK'");$resuser=mysql_query($sqluser); if(!$rowuser=mysql_fetch_array($resuser)){php_toheader("../reg/");} ?>