108 lines
3.5 KiB
PHP
108 lines
3.5 KiB
PHP
<?php
|
|
|
|
/*
|
|
+--------------------------------------------------------------------------
|
|
| Invision Power Board 2.2.2
|
|
| =============================================
|
|
| by Matthew Mecham
|
|
| (c) 2001 - 2006 Invision Power Services, Inc.
|
|
| http://www.invisionpower.com
|
|
| =============================================
|
|
| Web: http://www.invisionboard.com
|
|
| http://www.ibresource.ru/products/invisionpowerboard/
|
|
| Time: Monday 05th of March 2007 10:10:54 PM
|
|
| Release: e3790216629e5a2aaf37070b32237f06
|
|
| Licence Info: http://www.invisionboard.com/?license
|
|
| http://www.ibresource.ru/license
|
|
+---------------------------------------------------------------------------
|
|
| INVISION POWER BOARD IS NOT FREE / OPEN SOURCE!
|
|
+---------------------------------------------------------------------------
|
|
| INVISION POWER BOARD ÍÅ ßÂËßÅÒÑß ÁÅÑÏËÀÒÍÛÌ ÏÐÎÃÐÀÌÌÍÛÌ ÎÁÅÑÏÅ×ÅÍÈÅÌ!
|
|
| Ïðàâà íà ÏÎ ïðèíàäëåæàò Invision Power Services
|
|
| Ïðàâà íà ïåðåâîä IBResource (http://www.ibresource.ru)
|
|
+---------------------------------------------------------------------------
|
|
|
|
|
| > CP "MYCP" PAGE CLASS
|
|
| > Script written by Matt Mecham
|
|
| > Date started: Wed. 18th August 2004
|
|
|
|
|
+---------------------------------------------------------------------------
|
|
*/
|
|
|
|
if ( ! defined( 'IN_ACP' ) )
|
|
{
|
|
print "<h1>Íåêîððåêòíûé àäðåñ</h1>Âû íå èìååòå äîñòóïà ê ýòîìó ôàéëó íàïðÿìóþ. Åñëè âû íåäàâíî îáíîâëÿëè ôîðóì, âû äîëæíû îáíîâèòü âñå ñîîòâåòñòâóþùèå ôàéëû.";
|
|
exit();
|
|
}
|
|
|
|
|
|
class acp_tools
|
|
{
|
|
# Globals
|
|
var $ipsclass;
|
|
|
|
/*-------------------------------------------------------------------------*/
|
|
// CONSTRUCTOR
|
|
/*-------------------------------------------------------------------------*/
|
|
|
|
function acp_tools()
|
|
{
|
|
}
|
|
|
|
/*-------------------------------------------------------------------------*/
|
|
// AUTO RUN
|
|
/*-------------------------------------------------------------------------*/
|
|
|
|
function auto_run()
|
|
{
|
|
$this->ipsclass->html_title = "IPB: Óòèëèòû è íàñòðîéêè";
|
|
|
|
$another_choice = array(
|
|
|
|
'op' => 'settings',
|
|
'pin' => 'plugins',
|
|
'cache' => 'cache',
|
|
'rebuild' => 'rebuild',
|
|
'help' => 'help',
|
|
'ips' => 'ips',
|
|
'task' => 'task_manager',
|
|
'admin' => 'administration',
|
|
'postoffice'=> 'postoffice',
|
|
'loginauth' => 'login_auth',
|
|
'portal' => 'portal',
|
|
);
|
|
|
|
if ( ! isset( $another_choice[ $this->ipsclass->input['act'] ] ) )
|
|
{
|
|
$this->ipsclass->input['act'] = 'op';
|
|
}
|
|
|
|
$this->ipsclass->form_code = 'section=tools&act=' . $this->ipsclass->input['act'];
|
|
$this->ipsclass->form_code_js = 'section=tools&act=' . $this->ipsclass->input['act'];
|
|
$this->ipsclass->section_code = 'tools';
|
|
|
|
//-----------------------------------------
|
|
// Quick perm check
|
|
//-----------------------------------------
|
|
|
|
$this->ipsclass->admin->cp_permission_check( $this->ipsclass->section_code.'|' );
|
|
|
|
//-----------------------------------------
|
|
// Require and run (again)
|
|
//-----------------------------------------
|
|
|
|
require_once( ROOT_PATH.'sources/action_admin/'.$another_choice[ $this->ipsclass->input['act'] ].'.php' );
|
|
$constructor = 'ad_'.$another_choice[ $this->ipsclass->input['act'] ];
|
|
$runmeagain = new $constructor;
|
|
$runmeagain->ipsclass =& $this->ipsclass;
|
|
$runmeagain->auto_run();
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
?>
|