mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@146 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
99c88fee14
commit
7c02c41262
3 changed files with 2 additions and 18 deletions
|
|
@ -18,16 +18,11 @@
|
||||||
$oMemberModel = &getModel('member');
|
$oMemberModel = &getModel('member');
|
||||||
$logged_info = $oMemberModel->getLoggedInfo();
|
$logged_info = $oMemberModel->getLoggedInfo();
|
||||||
|
|
||||||
|
|
||||||
// 로그인 하지 않았다면 로그인 폼 출력
|
// 로그인 하지 않았다면 로그인 폼 출력
|
||||||
if(!$oMemberModel->isLogged()) return Context::set('act','dispLogin');
|
if(!$oMemberModel->isLogged()) return $this->act = 'dispLogin';
|
||||||
|
|
||||||
// 로그인되었는데 관리자(member->is_admin!=1)가 아니면 오류 표시
|
// 로그인되었는데 관리자(member->is_admin!=1)가 아니면 오류 표시
|
||||||
if($logged_info->is_admin != 'Y') {
|
if($logged_info->is_admin != 'Y') return $this->dispMessage('msg_is_not_administrator');
|
||||||
Context::set('msg_code', 'msg_is_not_administrator');
|
|
||||||
Context::set('act','dispError');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 관리자 모듈 목록을 세팅
|
// 관리자 모듈 목록을 세팅
|
||||||
$oModuleModel = &getModel('module');
|
$oModuleModel = &getModel('module');
|
||||||
|
|
@ -61,14 +56,5 @@
|
||||||
if(!Context::get('is_logged')) return $this->dispAdminIndex();
|
if(!Context::get('is_logged')) return $this->dispAdminIndex();
|
||||||
$this->setTemplateFile('logout');
|
$this->setTemplateFile('logout');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 에러 출력
|
|
||||||
**/
|
|
||||||
function dispError() {
|
|
||||||
Context::set('error_msg', Context::getLang( Context::get('msg_code') ) );
|
|
||||||
$this->setTemplateFile('error');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,5 @@
|
||||||
<action name="dispAdminIndex" type="view" grant="root" />
|
<action name="dispAdminIndex" type="view" grant="root" />
|
||||||
<action name="dispLogin" type="view" grant="guest" />
|
<action name="dispLogin" type="view" grant="guest" />
|
||||||
<action name="dispLogout" type="view" grant="root" />
|
<action name="dispLogout" type="view" grant="root" />
|
||||||
<action name="dispError" type="view" grant="guest" />
|
|
||||||
</actions>
|
</actions>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
{$error_msg}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue