CP "MYCP" PAGE CLASS | > Script written by Matt Mecham | > Date started: Wed. 18th August 2004 | +--------------------------------------------------------------------------- */ if ( ! defined( 'IN_ACP' ) ) { print "

Incorrect access

You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'."; exit(); } class acp_content { # Globals var $ipsclass; /*-------------------------------------------------------------------------*/ // CONSTRUCTOR /*-------------------------------------------------------------------------*/ function acp_content() { } /*-------------------------------------------------------------------------*/ // AUTO RUN /*-------------------------------------------------------------------------*/ function auto_run() { $this->ipsclass->html_title = "IPB: Content Management"; $another_choice = array( 'forum' => 'forums', 'group' => 'groups', 'mod' => 'moderator', 'multimod' => 'multi_moderate', 'mem' => 'member', 'field' => 'profilefields', 'mtools' => 'member_tools', 'msubs' => 'paysubscriptions', 'bbcode' => 'bbcode', 'babw' => 'banandbadword', 'attach' => 'attachments', 'rssexport' => 'rssexport', 'rssimport' => 'rssimport', 'calendars' => 'calendars', ); if ( ! isset( $another_choice[ $this->ipsclass->input['act'] ] ) ) { $this->ipsclass->input['act'] = 'mem'; } $this->ipsclass->form_code = 'section=content&act=' . $this->ipsclass->input['act']; $this->ipsclass->form_code_js = 'section=content&act=' . $this->ipsclass->input['act']; $this->ipsclass->section_code = 'content'; //----------------------------------------- // 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(); } } ?>