Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/mobile/themes/lingshi/js/ |
function sendSms(){ var mobile = $('#mobile_phone').val(); var flag = $('#flag').val(); $.post("sms.php?act=send&flag="+flag, { "mobile": mobile },function(result){ if (result.code==2){ RemainTime(); alert('手机验证码已经成功发送到您的手机'); }else{ if(result.msg){ alert(result.msg); }else{ alert('手机验证码发送失败'); } } }, "json"); } function register2(){ var status = true; var mobile = $('#mobile_phone').val(); var mobile_pwd = $('#mobile_pwd').val(); var mobile_code = $('#mobile_code').val(); if(mobile.length == ''){ alert('请填写手机号码'); return false; } if(mobile_pwd.length == ''){ alert('请填写登录密码'); return false; } if(mobile_code.length == ''){ alert('请填写手机验证码'); return false; } if(!$("#agreement").attr("checked")){ alert('请阅读用户协议并同意'); return false; } $.ajax({ type: "POST", url: "sms.php?act=check", data: "mobile="+mobile+"&mobile_code="+mobile_code+"&flag=register", dataType: "json", async: false, success: function(result){ if (result.code!=2){ alert(result.msg); status = false; } } }); return status; } function submitForget(){ var status = true; var mobile = $('#mobile_phone').val(); var mobile_code = $('#mobile_code').val(); if(mobile.length == ''){ alert('请填写手机号码'); return false; } if(mobile_code.length == ''){ alert('请填写手机验证码'); return false; } $.ajax({ type: "POST", url: "sms.php?act=check", data: "mobile="+mobile+"&mobile_code="+mobile_code, dataType: "json", async: false, success: function(result){ if (result.code!=2){ alert(result.msg); status = false; } } }); return status; } var iTime = 59; var Account; function RemainTime(){ document.getElementById('zphone').disabled = true; var iSecond,sSecond="",sTime=""; if (iTime >= 0){ iSecond = parseInt(iTime%60); if (iSecond >= 0){ sSecond = iSecond + "秒"; } sTime=sSecond; if(iTime==0){ clearTimeout(Account); sTime='获取手机验证码'; iTime = 59; document.getElementById('zphone').disabled = false; }else{ Account = setTimeout("RemainTime()",1000); iTime=iTime-1; } }else{ sTime='没有倒计时'; } document.getElementById('zphone').value = sTime; }