mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-17 18:29:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@856 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b96a8dfc4f
commit
f08a92575f
5 changed files with 27 additions and 22 deletions
|
|
@ -11,6 +11,8 @@
|
|||
* @brief 초기화
|
||||
**/
|
||||
function init() {
|
||||
if(!$this->grant->is_admin) return;
|
||||
|
||||
// template path 지정
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
||||
|
|
@ -18,12 +20,6 @@
|
|||
$oMemberModel = &getModel('member');
|
||||
$logged_info = $oMemberModel->getLoggedInfo();
|
||||
|
||||
// 로그인 하지 않았다면 로그인 폼 출력
|
||||
if(!$oMemberModel->isLogged()) return $this->act = 'dispLogin';
|
||||
|
||||
// 로그인되었는데 관리자(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');
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
</div>
|
||||
|
||||
<div id="admin_sub_menu">
|
||||
<a href="{getUrl('act','dispLogout')}">{$lang->cmd_logout}</a>
|
||||
<a href="{getUrl('act','dispMemberLogout')}">{$lang->cmd_logout}</a>
|
||||
</div>
|
||||
|
||||
<div id="admin_main_menu">
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ function completeInsert(ret_obj, response_tags, args, fo_obj) {
|
|||
|
||||
/* 로그인 후 */
|
||||
function completeLogin(ret_obj) {
|
||||
var url = location.href.setQuery('act','');
|
||||
location.href = location.href.setQuery('act','');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue