Version 2.1.7
This commit is contained in:
1 parent
0eecc172d9
commit
f73f8bff6d
941 files changed
+215301
-103093
No files matched your search
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+---------------------------------------------------------------------------
|
||||
| Invision Power Board 2.1.7
|
||||
| =============================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001 - 2005 Invision Power Services, Inc.
|
||||
| http://www.invisionpower.com
|
||||
| =============================================
|
||||
| Web: http://www.invisionboard.com
|
||||
| http://www.ibresource.ru/products/invisionpowerboard/
|
||||
| Time: Tuesday 18th of July 2006 05:56:00 PM
|
||||
| Release: 52f408a29988b02f45b5e6f4ba5af0ae
|
||||
| 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
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > 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_admin
|
||||
{
|
||||
# Globals
|
||||
var $ipsclass;
|
||||
|
||||
/**
|
||||
* Main choice array
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
var $another_choice = array();
|
||||
|
||||
/**
|
||||
* Section title name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
var $section_title = "Àäìèíèñòðèðîâàíèå";
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function acp_admin()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// AUTO RUN
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
$this->ipsclass->html_title = "IPB: Àäìèíèñòðèðîâàíèå";
|
||||
|
||||
$another_choice = array(
|
||||
'idx' => 'index',
|
||||
'stats' => 'statistics',
|
||||
'sql' => 'sql',
|
||||
'emaillog' => 'emaillogs',
|
||||
'spiderlog' => 'spiderlogs',
|
||||
'warnlog' => 'warnlogs',
|
||||
'modlog' => 'modlogs',
|
||||
'adminlog' => 'adminlogs',
|
||||
'emailerror'=> 'emailerror',
|
||||
'components'=> 'components',
|
||||
'acpperms' => 'acppermissions',
|
||||
'security' => 'security',
|
||||
);
|
||||
|
||||
if ( ! $another_choice[ $this->ipsclass->input['act'] ] )
|
||||
{
|
||||
$this->ipsclass->input['act'] = 'idx';
|
||||
}
|
||||
|
||||
$this->ipsclass->form_code = 'section=admin&act=' . $this->ipsclass->input['act'];
|
||||
$this->ipsclass->form_code_js = 'section=admin&act=' . $this->ipsclass->input['act'];
|
||||
$this->ipsclass->section_code = 'admin';
|
||||
|
||||
//-----------------------------------------
|
||||
// Quick perm check
|
||||
//-----------------------------------------
|
||||
|
||||
if ( $this->ipsclass->input['act'] != 'idx' AND $this->ipsclass->input['act'] != 'acpperms' AND $this->ipsclass->input['act'] != 'sql' )
|
||||
{
|
||||
$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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user