後台登陸跳轉後是空白頁面,幫忙分析原因或解決辦法?

來源:互聯網
上載者:User
Thinkphp架構做的一個企業網站,登入後台,在本地和我們自己的伺服器上測試能夠正常登入跳轉,上傳到萬網後用IE,Google,搜搜瀏覽器訪問,登陸跳轉都是空白頁面。唯獨Firefox可以正常登入跳轉,幫忙分析一下哪裡出錯了或者解決辦法!(後台使用的是frame架構)


回複討論(解決方案)

貼出你後台登陸代碼。注意你代碼命名大小寫。


IndexAction.class.php

display('login');return;} else {$this->display();}}public function login() {$this->display();}public function dologin() {if (!empty ($_POST['name'])) {$mm = M('member')->getByName($_POST['name']);if ($mm['password'] == md5($_POST['password'])) {$_SESSION['admin'] = $mm;$_SESSION['session_time'] = time();$this->success('登入成功!', "__URL__/index");} else {$this->error('密碼錯誤!');}} else {$this->error('帳號錯誤!');}}public function loginout() {$_SESSION['admin'] = '';$this->success('退出登入!', "__URL__/index");}public function password() {$name = M('member')->getByName($_SESSION['admin']['name']);if ($name == '') {$this->error('沒有許可權!');return;}$this->assign('admin', $name);$this->display();}public function dopassword() {$_POST['id'] = $_GET['id'];if (!empty ($_POST['password'])) {$_POST['password'] = md5($_POST['password']);} else {unset ($_POST['password']);}$model = D('member');if (false === $model->create()) {$this->error($model->getError());}// 更新資料$list = $model->save();if (false !== $list) {//成功提示$this->success('修改成功!');} else {//錯誤提示$this->error('修改失敗!');}}}



頁面index.html
    後台管理系統                        <body></body>

貼出你後台登陸代碼。注意你代碼命名大小寫。
已經貼出來,幫忙看看!!

__APP__/Public/top;__APP__/Public/left;__APP__/Public/tab;是否這些視窗都可以開啟呢?

__APP__/Public/top;__APP__/Public/left;__APP__/Public/tab;是否這些視窗都可以開啟呢?

可以訪問

應該是php BOM頭的問題。

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.