|
From: Jon O. <jon...@us...> - 2007-02-15 12:43:55
|
Update of /cvsroot/mxbb/mx_bugsbt/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv7691/admin Added Files: admin_bugsbt.php index.htm Log Message: Ok. here we go. This is the cool new mxBB Bugtracker ;) --- NEW FILE: admin_bugsbt.php --- <?php /** * * @package mxBB Portal Module - mx_bugsbt * @version $Id: admin_bugsbt.php,v 1.1 2007/02/15 12:43:42 jonohlsson Exp $ * @copyright (c) 2002-2006 [Jon Ohlsson, Cezary Tomczak] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ define( 'IN_PORTAL', true ); define( 'MXBB_MODULE', true ); // // Main paths // $mx_root_path = './../../../'; $module_root_path = './../../../modules/mx_bugsbt/'; // // Left Pane Paths // $setmodules_root_path = './../'; $setmodules_module_path = 'modules/mx_bugsbt/'; $setmodules_admin_path = $setmodules_module_path . 'admin/'; define( 'MXBB_27x', file_exists( $setmodules_root_path . 'mx_login.php' ) ); $phpEx = substr(strrchr(__FILE__, '.'), 1); if ( !empty( $setmodules ) ) { include_once( $setmodules_root_path . $setmodules_module_path . 'bugsbt/includes/bugsbt_constants.' . $phpEx ); $filename = basename( __FILE__ ); $module['bugsbt_title']['1_Configuration'] = $setmodules_admin_path . $filename . "?action=settings"; $module['bugsbt_title']['2_Product_man'] = $setmodules_admin_path . $filename . "?action=cat_manage"; $module['bugsbt_title']['4_Permissions'] = $setmodules_admin_path . $filename . "?action=auth_manage"; $module['bugsbt_title']['5_Status_man'] = $setmodules_admin_path . $filename . "?action=types_manage"; $module['bugsbt_title']['6_Custom_Field'] = $setmodules_admin_path . $filename . "?action=custom_manage"; return; } // // Includes // require( $mx_root_path . '/admin/pagestart.' . $phpEx ); include( $module_root_path . 'bugsbt/bugsbt_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', 'auth_manage' => 'auth_manage', 'types_manage' => 'types_manage', 'custom_manage' => 'custom_manage' ); // // Lets Build the page // $mx_bugsbt->adminmodule( $actions[$action] ); $mx_bugsbt->modules[$actions[$action]]->main( $action ); $mx_bugsbt->modules[$actions[$action]]->_bugsbt(); include_once( $mx_root_path . 'admin/page_footer_admin.' . $phpEx ); ?> --- NEW FILE: index.htm --- <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> </body> </html> |