mobtx.php 609 B

123456789101112
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. while1("uid,email,ifemail","yjcode_user where uid='".$_SESSION[SHOPUSER]."'");$row1=mysql_fetch_array($res1);
  5. if(empty($row1[email]) || $row1[ifemail]==0){echo "err";exit;}
  6. require("../config/mailphp/sendmail.php");
  7. $yz=MakePass(6);
  8. $str="验证码:<font color='red' style='font-size:18px;'>".$yz."</font>,如果不是本人操作,请忽略此信息。【".webname."】<hr>该邮件为系统发出,请勿回复";
  9. yjsendmail("安全码修改【".webname."】",$row1[email],$str);
  10. updatetable("yjcode_user","getpwd='".$yz."' where uid='".$_SESSION[SHOPUSER]."'");
  11. ?>