Version 2.2.0 RC-1
This commit is contained in:
1 parent
f73f8bff6d
commit
22f1b963ee
1034 files changed
+178610
-70897
No files matched your search
@@ -0,0 +1,89 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
+---------------------------------------------------------------------------
|
||||
| Invision Power Board
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2004 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
+---------------------------------------------------------------------------
|
||||
| INVISION POWER BOARD IS NOT FREE SOFTWARE!
|
||||
| http://www.invisionboard.com
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > 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_help
|
||||
{
|
||||
# Globals
|
||||
var $ipsclass;
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// CONSTRUCTOR
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function acp_content()
|
||||
{
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
// AUTO RUN
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
function auto_run()
|
||||
{
|
||||
$this->ipsclass->html_title = "IPB: Content Management";
|
||||
|
||||
$another_choice = array(
|
||||
'diag' => 'diagnostics',
|
||||
'support' => 'support',
|
||||
);
|
||||
|
||||
if ( ! isset( $another_choice[ $this->ipsclass->input['act'] ] ) )
|
||||
{
|
||||
$this->ipsclass->input['act'] = 'support';
|
||||
}
|
||||
|
||||
$this->ipsclass->form_code = 'section=help&act=' . $this->ipsclass->input['act'];
|
||||
$this->ipsclass->form_code_js = 'section=help&act=' . $this->ipsclass->input['act'];
|
||||
$this->ipsclass->section_code = 'help';
|
||||
|
||||
//-----------------------------------------
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user