|
From: Jon O. <jon...@us...> - 2006-07-08 10:23:37
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv27191/modules/mx_pafiledb/admin Added Files: admin_pafiledb.php Log Message: making all admincp an object :-) --- NEW FILE: admin_pafiledb.php --- <?php /** * * @package mxBB Portal Module - mx_kb * @version $Id: admin_pafiledb.php,v 1.1 2006/07/08 10:23:34 jonohlsson Exp $ * @copyright (c) 2002-2006 [CRLin, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); if ( file_exists( './../viewtopic.php' ) ) { define( 'IN_PHPBB', 1 ); define( 'MXBB_MODULE', false ); // // Main paths // $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; // // Left Pane Paths // $setmodules_admin_path = ''; $setmodules_module_path = "./../"; require_once( $phpbb_root_path . 'extension.inc' ); } else { define( 'IN_PORTAL', 1 ); define( 'MXBB_MODULE', true ); // // Main paths // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_pafiledb/'; // // Left Pane Paths // $setmodules_module_path = './../modules/mx_pafiledb/'; $setmodules_admin_path = $setmodules_module_path . 'admin/'; define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); } if ( !empty( $setmodules ) ) { include_once( $setmodules_module_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); $filename = basename( __FILE__ ); $module['pafileDB_Download']['0_Configuration'] = $setmodules_admin_path . $filename . "?action=settings"; $module['pafileDB_Download']['1_Cat_manage'] = $setmodules_admin_path . $filename . "?action=cat_manage"; $module['pafileDB_Download']['2_File_manage'] = $setmodules_admin_path . $filename . "?action=file_manage"; $module['pafileDB_Download']['3_Permissions'] = $setmodules_admin_path . $filename . "?action=auth_manage"; $module['pafileDB_Download']['4_License'] = $setmodules_admin_path . $filename . "?action=license_manage"; $module['pafileDB_Download']['5_Custom_manage'] = $setmodules_admin_path . $filename . "?action=custom_manage"; $module['pafileDB_Download']['6_Fchecker'] = $setmodules_admin_path . $filename . "?action=fchecker_manage"; return; } // // Includes // require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); // ********************************************************************** // Read language definition // ********************************************************************** if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_admin.' . $phpEx ); } else { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } // // Get action variable other wise set it to the main // $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'setting'; // // an array of all expected actions // $actions = array( 'settings' => 'settings', 'cat_manage' => 'cat_manage', 'file_manage' => 'file_manage', 'auth_manage' => 'auth_manage', 'license_manage' => 'license_manage', 'custom_manage' => 'custom_manage', 'fchecker_manage' => 'fchecker_manage' ); // // Lets Build the page // $pafiledb->adminmodule( $actions[$action] ); $pafiledb->modules[$actions[$action]]->main( $action ); $pafiledb->modules[$actions[$action]]->_pafiledb(); include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> |