mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Move procAdminLogout to Dashboard controller
This commit is contained in:
parent
5d6a16cdf9
commit
9c424f2d6f
3 changed files with 14 additions and 15 deletions
|
|
@ -9,6 +9,7 @@ use DocumentAdminModel;
|
|||
use DocumentModel;
|
||||
use CommentModel;
|
||||
use MemberAdminModel;
|
||||
use MemberController;
|
||||
use ModuleModel;
|
||||
|
||||
class Dashboard extends Base
|
||||
|
|
@ -16,12 +17,12 @@ class Dashboard extends Base
|
|||
/**
|
||||
* Easy install flag file
|
||||
*/
|
||||
const EASYINSTALL_FLAG_FILE = 'files/env/easyinstall_last';
|
||||
public const EASYINSTALL_FLAG_FILE = 'files/env/easyinstall_last';
|
||||
|
||||
/**
|
||||
* Display the dashboard.
|
||||
*/
|
||||
function dispAdminIndex()
|
||||
public function dispAdminIndex()
|
||||
{
|
||||
// Get statistics
|
||||
$args = new \stdClass;
|
||||
|
|
@ -145,6 +146,15 @@ class Dashboard extends Base
|
|||
Context::set('layout', 'none');
|
||||
$this->setTemplateFile('index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin logout action.
|
||||
*/
|
||||
public function procAdminLogout()
|
||||
{
|
||||
MemberController::getInstance()->procMemberLogout();
|
||||
header('Location: ' . getNotEncodedUrl(''));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check easy install.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue