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:
parent
30b0398bda
commit
28aea0dfac
|
@ -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() {
|
||||
|
|
|
@ -899,6 +899,7 @@ return array(
|
|||
* Админка
|
||||
*/
|
||||
'admin_title' => 'Admin',
|
||||
'admin_comment_restore_tree' => 'Tree comments restore successful',
|
||||
|
||||
/**
|
||||
* Plugin administration page
|
||||
|
|
|
@ -897,6 +897,7 @@ return array(
|
|||
* Админка
|
||||
*/
|
||||
'admin_title' => 'Админка',
|
||||
'admin_comment_restore_tree' => 'Дерево комментариев перестроенно',
|
||||
|
||||
/**
|
||||
* Страница администрирования плагинов
|
||||
|
|
|
@ -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'}
|
|
@ -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'}
|
|
@ -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'}
|
|
@ -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'}
|
Loading…
Reference in a new issue