登陆信息错误自动跳转首页的修复
生活随笔
收集整理的這篇文章主要介紹了
登陆信息错误自动跳转首页的修复
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
是否還在為登陸界面用戶登陸信息錯誤后直接跳轉首頁煩惱么,給大家帶來了修復教程,
其實修復這個也只是無意間的一個發現
我在測試官網的時候發現點了登陸然后跳出的地址依然是頂級域名,且后面并沒有reg.html
我就想是不是官方并沒有用oem模板呢
去掉oem的指向路徑之后發現的確是出現了跟官網一樣的情況 而且登陸驗證神奇般的好了
下面放出我修改的辦法
/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個網站 不要填自己的網址,隨便填下就行了
| 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內其他不需要的內容 保留js部分 吧上面的重定向的代碼放到head內 注: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> |
總結
以上是生活随笔為你收集整理的登陆信息错误自动跳转首页的修复的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java 开源 dht_P2P中DHT网
- 下一篇: TCP/IP、Http的区别--(转自任