getmobyzm.php 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <?
  2. include("../config/conn.php");
  3. include("../config/function.php");
  4. $mob=sqlzhuru($_GET[mob]);
  5. $smsbh=sqlzhuru($_GET[smsbh]);
  6. $yz=sqlzhuru($_GET[yz]);
  7. if(!preg_match("/^1[34578]\d{9}$/",$mob) || empty($smsbh) || empty($yz)){exit;}
  8. if($smsbh=="000"){$txt="验证码:${yzm},您正在进行手机验证,如果不是本人操作,请忽略此信息。";}
  9. if(!empty($rowcontrol[smsbig])){
  10. $sj1=strtotime(date("Y-m-d H:i:s",strtotime("-1 day")));
  11. $sj2=strtotime(getsj());
  12. if(returncount("yjcode_smsmaillog where uip='".getuip()."' and admin=2 and sj>".$sj1." and sj<".$sj2."")>=$rowcontrol[smsbig]){echo "errbig";exit;}
  13. }
  14. intotable("yjcode_smsmaillog","admin,fa,userid,txt,sj,uip","2,'".$mob."',0,'手机端短信验证操作',".strtotime(getsj()).",'".getuip()."'");
  15. while1("*","yjcode_smsmb where mybh='".$smsbh."'");if($row1=mysql_fetch_array($res1)){$txt=$row1[txt];}
  16. if(empty($rowcontrol[smsmode])){
  17. include("../config/mobphp/mysendsms.php");
  18. $str=str_replace("\${yzm}",$yz,$txt);
  19. yjsendsms($mob,$str);
  20. }else{
  21. if(1==$rowcontrol[smsmode]){$sms_txt="{yzm:'".$yz."'}";}else{$sms_txt="{\"yzm\":\"".$yz."\"}";}
  22. $sms_mot=$mob;
  23. $sms_id=$row1[mbid];
  24. @include("../config/mobphp/mysendsms.php");
  25. }
  26. ?>