mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-23 20:32:14 +09:00
changed make admin menu logic, added reset admin menu function
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9071 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e4d9b43320
commit
986053ac4d
6 changed files with 40 additions and 20 deletions
|
|
@ -17,6 +17,19 @@
|
|||
if($logged_info->is_admin!='Y') return $this->stop("msg_is_not_administrator");
|
||||
}
|
||||
|
||||
function procAdminMenuReset(){
|
||||
$menuSrl = Context::get('menu_srl');
|
||||
if (!$menuSrl) return $this->stop('msg_invalid_request');
|
||||
|
||||
$oMenuAdminController = &getAdminController('menu');
|
||||
$output = $oMenuAdminController->deleteMenu($menuSrl);
|
||||
if (!$output->toBool()) return $output;
|
||||
|
||||
FileHandler::removeDir('./files/cache/menu/admin_lang/');
|
||||
|
||||
$this->setRedirectUrl(Context::get('error_return_url'));
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Regenerate all cache files
|
||||
* @return none
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue