|
|
@ -22,7 +22,7 @@ class Admin_LoginController extends Ctrl_Base{ |
|
|
|
setcookie('admin[name]',$tRow['admin'],time()+60*60*24*365,'/'); |
|
|
|
setcookie('admin[name]',$tRow['admin'],time()+60*60*24*365,'/'); |
|
|
|
} |
|
|
|
} |
|
|
|
Tool_Fnc::ajaxMsg('登录成功',1); |
|
|
|
Tool_Fnc::ajaxMsg('登录成功',1); |
|
|
|
$this->showMsg('', '/admin_index'); |
|
|
|
$this->showMsg('', '/admin_index/index'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public function quitAction(){ |
|
|
|
public function quitAction(){ |
|
|
@ -30,6 +30,6 @@ class Admin_LoginController extends Ctrl_Base{ |
|
|
|
setcookie('admin[id]','',time()-1,'/'); |
|
|
|
setcookie('admin[id]','',time()-1,'/'); |
|
|
|
setcookie('admin[name]','',time()-1,'/'); |
|
|
|
setcookie('admin[name]','',time()-1,'/'); |
|
|
|
unset($_COOKIE); |
|
|
|
unset($_COOKIE); |
|
|
|
$this->showMsg('', '/admin_login'); |
|
|
|
$this->showMsg('', '/admin_login/index'); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|