acp_admin.php
来自「sabreipb 2.1.6 utf-8中文版本!」· PHP 代码 · 共 116 行
PHP
116 行
<?php
/*
+---------------------------------------------------------------------------
| Invision Power Dynamic v1.0.0
| ========================================
| by Matthew Mecham
| (c) 2004 Invision Power Services
|
| ========================================
+---------------------------------------------------------------------------
| INVISION POWER DYNAMIC IS NOT FREE SOFTWARE!
| /dynamic/
+---------------------------------------------------------------------------
|
| > CP "MYCP" PAGE CLASS
| > Script written by Matt Mecham
| > Date started: Wed. 18th August 2004
|
+---------------------------------------------------------------------------
*/
if ( ! defined( 'IN_ACP' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
exit();
}
class acp_admin
{
# Globals
var $ipsclass;
/**
* Main choice array
*
* @var array
*/
var $another_choice = array();
/**
* Section title name
*
* @var string
*/
var $section_title = "Admin";
/*-------------------------------------------------------------------------*/
// 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',
);
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();
}
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?