thinkphp framework to do a corporate website, login backstage, in the local and our own server to test the normal login jump, uploaded to million after the internet with IE, Google, search browser access, landing jumps are blank pages. Only Firefox can normally log in to jump, to help analyze where the error or solution! (The frame frame is used in the background)
Reply to discussion (solution)
Post your login code in the background. Note that your code is named case-sensitive.
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 (' Login successful! ', ' __url__/index ');} else {$this->error (' Password wrong! ');}} else {$this->error (' account error! ');}} Public Function Loginout () {$_session[' admin '] = '; $this->success (' Exit login! ', "__url__/index");} Public Function password () {$name = M (' member ')->getbyname ($_session[' admin ' [' name ']); if ($name = = ") {$this- Error (' no permission! '); 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 ());} Update Data $list = $model->save (), if (false!== $list) {//Successful prompt $this->success (' modified successfully! ');} else {//Error $this->error (' Modify failed! ');}}
Page index.html
Backend Management System
<body></body>
Post your login code in the background. Note that your code is named case-sensitive.
Already posted, help to see!!
__app__/public/top;__app__/public/left;__app__/public/tab: Can these windows be opened?
__app__/public/top;__app__/public/left;__app__/public/tab: Can these windows be opened?
can access
Should be a problem with the PHP BOM header.