mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 20:44:28 +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
|
|
@ -161,18 +161,6 @@ class AdminAdminController extends Admin
|
||||||
$this->setMessage('success_updated');
|
$this->setMessage('success_updated');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Logout
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function procAdminLogout()
|
|
||||||
{
|
|
||||||
$oMemberController = getController('member');
|
|
||||||
$oMemberController->procMemberLogout();
|
|
||||||
|
|
||||||
header('Location: ' . getNotEncodedUrl(''));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function procAdminInsertDefaultDesignInfo()
|
public function procAdminInsertDefaultDesignInfo()
|
||||||
{
|
{
|
||||||
$vars = Context::getRequestVars();
|
$vars = Context::getRequestVars();
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@
|
||||||
<grants />
|
<grants />
|
||||||
<actions>
|
<actions>
|
||||||
<action name="dispAdminIndex" class="Controllers\Dashboard" index="true" />
|
<action name="dispAdminIndex" class="Controllers\Dashboard" index="true" />
|
||||||
|
<action name="procAdminLogout" class="Controllers\Dashboard" method="GET|POST" />
|
||||||
|
|
||||||
<action name="dispAdminConfigGeneral" type="view" menu_name="adminConfigurationGeneral" menu_index="true" />
|
<action name="dispAdminConfigGeneral" type="view" menu_name="adminConfigurationGeneral" menu_index="true" />
|
||||||
<action name="dispAdminConfigNotification" type="view" menu_name="adminConfigurationGeneral" />
|
<action name="dispAdminConfigNotification" type="view" menu_name="adminConfigurationGeneral" />
|
||||||
<action name="dispAdminConfigSecurity" type="view" menu_name="adminConfigurationGeneral" />
|
<action name="dispAdminConfigSecurity" type="view" menu_name="adminConfigurationGeneral" />
|
||||||
|
|
@ -22,7 +24,6 @@
|
||||||
|
|
||||||
<action name="procAdminRemoveIcons" type="controller" />
|
<action name="procAdminRemoveIcons" type="controller" />
|
||||||
<action name="procAdminRecompileCacheFile" type="controller" />
|
<action name="procAdminRecompileCacheFile" type="controller" />
|
||||||
<action name="procAdminLogout" type="controller" method="GET|POST" />
|
|
||||||
<action name="procAdminInsertDefaultDesignInfo" type="controller" />
|
<action name="procAdminInsertDefaultDesignInfo" type="controller" />
|
||||||
<action name="procAdminToggleFavorite" type="controller" />
|
<action name="procAdminToggleFavorite" type="controller" />
|
||||||
<action name="procAdminEnviromentGatheringAgreement" type="controller" />
|
<action name="procAdminEnviromentGatheringAgreement" type="controller" />
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,7 @@ use DocumentAdminModel;
|
||||||
use DocumentModel;
|
use DocumentModel;
|
||||||
use CommentModel;
|
use CommentModel;
|
||||||
use MemberAdminModel;
|
use MemberAdminModel;
|
||||||
|
use MemberController;
|
||||||
use ModuleModel;
|
use ModuleModel;
|
||||||
|
|
||||||
class Dashboard extends Base
|
class Dashboard extends Base
|
||||||
|
|
@ -16,12 +17,12 @@ class Dashboard extends Base
|
||||||
/**
|
/**
|
||||||
* Easy install flag file
|
* Easy install flag file
|
||||||
*/
|
*/
|
||||||
const EASYINSTALL_FLAG_FILE = 'files/env/easyinstall_last';
|
public const EASYINSTALL_FLAG_FILE = 'files/env/easyinstall_last';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display the dashboard.
|
* Display the dashboard.
|
||||||
*/
|
*/
|
||||||
function dispAdminIndex()
|
public function dispAdminIndex()
|
||||||
{
|
{
|
||||||
// Get statistics
|
// Get statistics
|
||||||
$args = new \stdClass;
|
$args = new \stdClass;
|
||||||
|
|
@ -145,6 +146,15 @@ class Dashboard extends Base
|
||||||
Context::set('layout', 'none');
|
Context::set('layout', 'none');
|
||||||
$this->setTemplateFile('index');
|
$this->setTemplateFile('index');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Admin logout action.
|
||||||
|
*/
|
||||||
|
public function procAdminLogout()
|
||||||
|
{
|
||||||
|
MemberController::getInstance()->procMemberLogout();
|
||||||
|
header('Location: ' . getNotEncodedUrl(''));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check easy install.
|
* Check easy install.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue