mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 23:31:44 +09:00
delte virtual site
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8816 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5bfd3e6b61
commit
1babcd4b18
18 changed files with 2 additions and 762 deletions
|
|
@ -274,18 +274,7 @@
|
|||
$xml_info = $oModuleModel->getModuleActionXml($forward->module);
|
||||
if($kind == "admin" && $type == "view")
|
||||
{
|
||||
$oMemberModel = &getModel('member');
|
||||
$logged_info = $oMemberModel->getLoggedInfo();
|
||||
|
||||
$grant = $oModuleModel->getGrant($forward, $logged_info, $xml_info);
|
||||
if($grant->is_site_admin){
|
||||
$oSiteModel = &getModel('site');
|
||||
$output = $oSiteModel->getSiteAdminMenu($logged_info);
|
||||
Context::set('gnbUrlList', $output->menuList);
|
||||
Context::set('parentSrl', $output->parentSrl);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("site_admin_layout.html");
|
||||
}elseif($logged_info->is_admin=='Y'){
|
||||
if($logged_info->is_admin=='Y'){
|
||||
$oAdminView = &getView('admin');
|
||||
$oAdminView->makeGnbUrl($forward->module);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
|
|
@ -356,28 +345,6 @@
|
|||
// if failed message exists in session, set context
|
||||
$this->_setInputErrorToContext();
|
||||
|
||||
// 관리자 화면인경우
|
||||
$kind = strpos(strtolower($this->act),'admin')!==false?'admin':'';
|
||||
$type = $this->module_info->module_type;
|
||||
if(!$forward && $kind == "admin" && $type == "view")
|
||||
{
|
||||
$oMemberModel = &getModel('member');
|
||||
$logged_info = $oMemberModel->getLoggedInfo();
|
||||
$grant = $oModuleModel->getGrant($oModule, $logged_info, $xml_info);
|
||||
|
||||
if ($logged_info->is_admin == 'Y'){
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("layout.html");
|
||||
}elseif($grant->is_site_admin){
|
||||
$oSiteModel = &getModel('site');
|
||||
$output = $oSiteModel->getSiteAdminMenu($logged_info);
|
||||
Context::set('gnbUrlList', $output->menuList);
|
||||
Context::set('parentSrl', $output->parentSrl);
|
||||
$oModule->setLayoutPath("./modules/admin/tpl");
|
||||
$oModule->setLayoutFile("site_admin_layout.html");
|
||||
}
|
||||
}
|
||||
|
||||
$procResult = $oModule->proc();
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue