1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-05-21 02:08:17 +03:00

fix admin

This commit is contained in:
Mzhelskiy Maxim 2011-08-28 16:08:23 +00:00
parent 30b0398bda
commit 28aea0dfac
7 changed files with 13 additions and 5 deletions

View file

@ -32,7 +32,7 @@ class ActionAdmin extends Action {
if(!$this->User_IsAuthorization() or !$oUserCurrent=$this->User_GetUserCurrent() or !$oUserCurrent->isAdministrator()) {
return parent::EventNotFound();
}
$this->SetDefaultEvent('index');
$this->SetDefaultEvent('index');
$this->oUserCurrent=$oUserCurrent;
}
@ -50,15 +50,17 @@ class ActionAdmin extends Action {
**********************************************************************************
*/
protected function EventIndex() {
}
protected function EventIndex() {
}
protected function EventRestoreComment() {
set_time_limit(0);
$this->Comment_RestoreTree();
$this->Cache_Clean();
die('restore ok');
$this->Message_AddNotice($this->Lang_Get('admin_comment_restore_tree'),$this->Lang_Get('attention'));
$this->SetTemplateAction('index');
}
protected function EventPlugins() {

View file

@ -899,6 +899,7 @@ return array(
* Админка
*/
'admin_title' => 'Admin',
'admin_comment_restore_tree' => 'Tree comments restore successful',
/**
* Plugin administration page

View file

@ -897,6 +897,7 @@ return array(
* Админка
*/
'admin_title' => 'Админка',
'admin_comment_restore_tree' => 'Дерево комментариев перестроенно',
/**
* Страница администрирования плагинов

View file

@ -4,6 +4,7 @@
<li><a href="{router page="admin"}plugins">{$aLang.admin_list_plugins}</a></li>
<li><a href="{router page="admin"}userfields">{$aLang.admin_list_userfields}</a></li>
<li><a href="{router page="admin"}restorecomment">{$aLang.admin_list_restorecomment}</a></li>
{hook run='admin_action_item'}
</ul>
{include file='footer.tpl'}

View file

@ -4,6 +4,7 @@
<li><a href="{router page="admin"}plugins">{$aLang.admin_list_plugins}</a></li>
<li><a href="{router page="admin"}userfields">{$aLang.admin_list_userfields}</a></li>
<li><a href="{router page="admin"}restorecomment">{$aLang.admin_list_restorecomment}</a></li>
{hook run='admin_action_item'}
</ul>
{include file='footer.tpl'}

View file

@ -4,6 +4,7 @@
<li><a href="{router page="admin"}plugins">{$aLang.admin_list_plugins}</a></li>
<li><a href="{router page="admin"}userfields">{$aLang.admin_list_userfields}</a></li>
<li><a href="{router page="admin"}restorecomment">{$aLang.admin_list_restorecomment}</a></li>
{hook run='admin_action_item'}
</ul>
{include file='footer.tpl'}

View file

@ -4,6 +4,7 @@
<li><a href="{router page="admin"}plugins">{$aLang.admin_list_plugins}</a></li>
<li><a href="{router page="admin"}userfields">{$aLang.admin_list_userfields}</a></li>
<li><a href="{router page="admin"}restorecomment">{$aLang.admin_list_restorecomment}</a></li>
{hook run='admin_action_item'}
</ul>
{include file='footer.tpl'}