|
From: Jon O. <jon...@us...> - 2006-06-30 19:54:21
|
Update of /cvsroot/mxbb/mx_linkdb/admin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9382/modules/mx_linkdb/admin Modified Files: admin_linkdb.php Log Message: Ok, i'm starting with some code cleanup, before digging deep... Index: admin_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/admin/admin_linkdb.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin_linkdb.php 2 May 2006 23:27:29 -0000 1.4 --- admin_linkdb.php 30 Jun 2006 19:54:14 -0000 1.5 *************** *** 20,33 **** } - // Load default header - - /* - $phpbb_root_path = "./../"; - require($phpbb_root_path . 'extension.inc'); - require('./pagestart.' . $phpEx); - - include($phpbb_root_path . 'linkdb/includes/linkdb_common.'.$phpEx); - */ - $mx_root_path = '../../../'; $module_root_path = "../"; --- 20,23 ---- *************** *** 37,52 **** include( $module_root_path . 'linkdb/includes/linkdb_common.' . $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( 'setting' => 'setting', 'cat_manage' => 'cat_manage', 'link_manage' => 'link_manage' ); // Lets Build the page ! $linkdb->adminmodule( $actions[$action] ); $linkdb->modules[$actions[$action]]->main( $action ); --- 27,59 ---- include( $module_root_path . 'linkdb/includes/linkdb_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 ); ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); // Notification ! } ! else ! { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); // Notification ! } + // + // 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( 'setting' => 'setting', 'cat_manage' => 'cat_manage', 'link_manage' => 'link_manage' ); + // // Lets Build the page ! // $linkdb->adminmodule( $actions[$action] ); $linkdb->modules[$actions[$action]]->main( $action ); |