日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

登陆信息错误自动跳转首页的修复

發(fā)布時間:2024/8/1 编程问答 38 豆豆
生活随笔 收集整理的這篇文章主要介紹了 登陆信息错误自动跳转首页的修复 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

是否還在為登陸界面用戶登陸信息錯誤后直接跳轉(zhuǎn)首頁煩惱么,給大家?guī)砹诵迯?fù)教程,

其實修復(fù)這個也只是無意間的一個發(fā)現(xiàn)

我在測試官網(wǎng)的時候發(fā)現(xiàn)點了登陸然后跳出的地址依然是頂級域名,且后面并沒有reg.html

我就想是不是官方并沒有用oem模板呢

去掉oem的指向路徑之后發(fā)現(xiàn)的確是出現(xiàn)了跟官網(wǎng)一樣的情況 而且登陸驗證神奇般的好了

下面放出我修改的辦法

/public_html/wx/view/new/index.html

1 <meta http-equiv="refresh"?content="0.1;url=view/index.php">

去掉/public_html/wx/controller/index.php里面的oem指向信息 也就是最下面的那3個網(wǎng)站 不要填自己的網(wǎng)址,隨便填下就行了

1 2 3 4 5 6 7 8 9 10 11 12 if(strpos(strtolower($_SERVER ['HTTP_HOST']),'wceshi.785d.com') !==?false){ ????Response::write(file_get_contents(YYUC_FRAME_PATH.YYUC_PUB.'/view/index.html')); ????die(); } if(strpos(strtolower($_SERVER ['HTTP_HOST']),'www.lzwxyx.net') !==?false){ ????Response::write(file_get_contents(YYUC_FRAME_PATH.YYUC_PUB.'/view/index.html')); ????die(); } if(strpos(strtolower($_SERVER ['HTTP_HOST']),'www.lzwxyx.net') !==?false){ ????Response::write(file_get_contents(YYUC_FRAME_PATH.YYUC_PUB.'/view/index.html')); ????die(); }

去掉/public_html/wx/view/new/index.html內(nèi)其他不需要的內(nèi)容 保留js部分 吧上面的重定向的代碼放到head內(nèi) 注:view/index.php是你的模板路徑

下面是我的最終代碼:

/public_html/wx/view/new/index.html

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="refresh"?content="0.1;url=view/index.php"> <title>{$gti}</title> </head> <style type="text/css"> .footer dd p { ????line-height: 32px; ????font-family: 宋體; ????margin: 10px?0; ????display: block; } #cooper { ????width: 1400px; ????margin:?0?auto; ????height: 100px; } </style> <script type="text/javascript"> ?function?checkEmail(){ ?????var?email = Duomeng.getElementById('fun'); ?????var?_email=document.getElementById('email_warn_box'); ?????var?warn=document.getElementById('email_warn'); ?????var?value = email.value; ?????//if (value? && value.match(/^[\w\.\-]+@([\w\-]+\.)+[a-z]{2,4}$/ig)){ ?????if?(value){ ?????????input_correct(email); ?????????_email.style.visibility="hidden"; ?????????return?true; ?????} ?????else?{ ?????????//????? input_error(email,"input_email_e"); ?????????input_error1(email); ?????????warn.innerHTML="用戶名不能為空"; ?????????_email.style.visibility="visible"; ?????????return?false; ?????} ?} ?function?checkPwd(){ ?????var?pwd = Duomeng.getElementById('fpwd'); ?????var?_password=document.getElementById('pw_warn_box'); ?????var?warn1=document.getElementById('pw_warn'); ?????//if (pwd.value? && pwd.value.length >= 6 && pwd.value.length <= 20){ ?????if?(pwd.value){ ?????????input_correct(pwd); ?????????_password.style.visibility="hidden"; ?????}?else?{ ?????????//?? input_error(pwd,"reinput_password_e"); ?????????input_error1(pwd); ?????????warn1.innerHTML="密碼不能為空"; ?????????_password.style.visibility="visible"; ?????????return?false; ?????} ?????return?true; ?} setTimeout(function(){ ??Duomeng.getElementById('fun').value && checkEmail(); ??Duomeng.getElementById('fpwd').value && checkPwd(); },500); function?input_error(el,classname){ ????el.className = classname; } function?input_correct(el){ ????//el.className = "input_correct"; } function?change_input_bg(el,id){ ????var?warn=document.getElementById(id); ????el.className="input_active"; ????warn.style.visibility="hidden"; } function?back_input_bg(el){ ????????el.className=""; } function?bgnone(el){ ????????el.className="bgnone"; } function??input_error1(el){ ????????el.className="input_error1"; } --> </script>


本文轉(zhuǎn)自 gutaotao1989 51CTO博客,原文鏈接:http://blog.51cto.com/taoyouth/1368986


總結(jié)

以上是生活随笔為你收集整理的登陆信息错误自动跳转首页的修复的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。