PHP中这段代码啥意思呢,高手进
<SCRIPTtype=text/javascript>validator_login=function(form){if(validator(form)){alert(...
<SCRIPT type=text/javascript>validator_login = function (form) {if (validator(form)){alert($.getForms('login'));days = $("input[@name=cookietime]").attr('checked')!=true ? 1 : $("input[@name=cookietime]").val()/86400;setcookie('username', $("input[@name=username]").val(), days);if(getcookie('logindisble')){fancybox('<?php echo SITE_URL;?>member//activate.php','帐号激活',400,310);}else{$.post('<?php echo SITE_URL;?>member/login.php?operate=json',$.getForms('login'),function (data) {alert(data);rs = eval('(' +data+')');if (rs.codenum == '1'){fancybox('<?php echo SITE_URL;?>member//changepwd.php?username='+$('#username').val(),'请更新密码',400,310);$('#password').val(''); return false;}else if (rs.url) { location.href=rs.url; return false; }
if(rs.result){location.href='<?php echo SITE_URL;?>member//index.php';}else{if(rs.code){eval(rs.code);fancybox('<?php echo SITE_URL;?>member//activate.php','帐号激活',400,310);}else{alert(rs.msg.replace("|",""));}}});}}return false;}</SCRIPT> 展开
if(rs.result){location.href='<?php echo SITE_URL;?>member//index.php';}else{if(rs.code){eval(rs.code);fancybox('<?php echo SITE_URL;?>member//activate.php','帐号激活',400,310);}else{alert(rs.msg.replace("|",""));}}});}}return false;}</SCRIPT> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询