查看文件: ajax_smss_check.php
大小: 803 字节
类型: application/octet-stream
<?php require_once('./Connections/BE2.php'); ?> <?php if (!isset($_SESSION)){ session_start(); } $difftime=time()-600; $diff2=date('Y-m-d H:i:s',$difftime); $smscode=isset($_POST["smscode"])?$_POST["smscode"]:'-1' ; $mobile=isset($_POST['mobile'])?$_POST['mobile']:'-1'; mysql_select_db($database_BE2, $BE2); $q_R1 =sprintf("SELECT * FROM register_sms where phone='%s' AND itime>'%s' order by vid desc limit 1",$mobile,$diff2); $R1= mysql_query($q_R1, $BE2) or die(mysql_error()); $row_R1 = mysql_fetch_assoc($R1); $totalRows_R1 = mysql_num_rows($R1); //echo $q_R1 .'<>'.$totalRows_R1.'<=>'.$row_R1['ipw']; if(($totalRows_R1==1) && ($row_R1['ipw']==$smscode)){ echo 1; } else {echo 0;} mysql_free_result($R1); ?>
保存
取消
返回文件列表