mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
add site admin menu
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8796 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
01b40169c7
commit
51a1d0a37e
6 changed files with 312 additions and 17 deletions
|
|
@ -0,0 +1,35 @@
|
|||
<?php
|
||||
/**
|
||||
* @class siteAdminView
|
||||
* @author NHN (developers@xpressengine.com)
|
||||
* @brief site view class of admin module
|
||||
**/
|
||||
|
||||
class siteAdminView extends site {
|
||||
var $site_module_info = null;
|
||||
var $site_srl = 0;
|
||||
|
||||
/**
|
||||
* @brief Initilization
|
||||
* @return none
|
||||
**/
|
||||
function init() {
|
||||
|
||||
$oMemberModel = &getModel('member');
|
||||
$logged_info = $oMemberModel->getLoggedInfo();
|
||||
|
||||
$oModuleModel = &getModel('module');
|
||||
$this->site_module_info = Context::get('current_module_info');
|
||||
$this->site_srl = $this->site_module_info->site_srl;
|
||||
|
||||
if (!Context::get('is_logged') || !$oModuleModel->isSiteAdmin($logged_info, $this->site_module_info->site_srl)) return $this->stop('msg_not_permitted');
|
||||
|
||||
$this->site_srl = $this->site_module_info->site_srl;
|
||||
if(!$this->site_srl) return $this->stop('msg_invalid_request');
|
||||
|
||||
$this->setTemplatePath($this->module_path.'tpl');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue