mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 00:29:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8796 201d5d3c-b55e-5fd7-737f-ddc643e51545
35 lines
976 B
PHP
35 lines
976 B
PHP
<?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');
|
|
|
|
|
|
}
|
|
}
|
|
?>
|