mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@158 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bbecc3b9e1
commit
deec093b6a
2 changed files with 9 additions and 8 deletions
|
|
@ -11,12 +11,6 @@
|
|||
* @brief MVC 에서 공통으로 사용되는 설정등을 모아 놓은것..
|
||||
**/
|
||||
function init() {
|
||||
// 관리자용 레이아웃으로 변경
|
||||
$this->setLayoutPath($this->getTemplatePath());
|
||||
$this->setLayoutFile('layout.html');
|
||||
|
||||
// template path 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
||||
// 메뉴 아이템 지정
|
||||
$menu_item->module->title = Context::getLang('item_module');
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
// admin class의 init
|
||||
parent::init();
|
||||
// template path 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
||||
// 접속 사용자에 대한 체크
|
||||
$oMemberModel = &getModel('member');
|
||||
|
|
@ -23,6 +23,13 @@
|
|||
|
||||
// 로그인되었는데 관리자(member->is_admin!=1)가 아니면 오류 표시
|
||||
if($logged_info->is_admin != 'Y') return $this->stop('msg_is_not_administrator');
|
||||
|
||||
// 관리자용 레이아웃으로 변경
|
||||
$this->setLayoutPath($this->getTemplatePath());
|
||||
$this->setLayoutFile('layout.html');
|
||||
|
||||
// admin class의 init
|
||||
parent::init();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue