|
From: OryNider <ory...@us...> - 2008-03-08 15:34:47
|
Update of /cvsroot/mxbb/mx_linkdb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27616 Modified Files: Tag: core28x admin_linkdb.php Log Message: update for new mx_mod 2.8.2 Index: admin_linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/admin/admin_linkdb.php,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** admin_linkdb.php 13 Aug 2006 19:43:50 -0000 1.12 --- admin_linkdb.php 8 Mar 2008 15:34:43 -0000 1.12.2.1 *************** *** 9,42 **** */ ! define( 'IN_PORTAL', true ); if ( !empty( $setmodules ) ) { $filename = basename( __FILE__ ); ! $module['LinkDb_links']['0_Configuration'] = 'modules/mx_linkdb/admin/' . $filename . "?action=setting"; ! $module['LinkDb_links']['1_Cat_manage'] = 'modules/mx_linkdb/admin/' . $filename . "?action=cat_manage"; ! //$module['LinkDb_links']['2_Link_manage'] = 'modules/mx_linkdb/admin/' . $filename . "?action=link_manage"; ! $module['LinkDb_links']['3_Permissions'] = 'modules/mx_linkdb/admin/' . $filename . "?action=auth_manage"; ! $module['LinkDb_links']['5_Custom_manage'] = 'modules/mx_linkdb/admin/' . $filename . "?action=custom_manage"; return; } - $mx_root_path = '../../../'; - $module_root_path = "../"; - $phpEx = substr(strrchr(__FILE__, '.'), 1); require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! include( $module_root_path . 'linkdb/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 ); } else { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); } --- 9,165 ---- */ ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! if ( @file_exists( './../viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE ! { ! define('MXBB_MODULE', false); ! define('IN_PHPBB', true); ! ! $phpbb_root_path = $module_root_path = './../'; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! ! require_once($mx_mod_path . "includes/functions_required.$phpEx"); ! ! @define('IN_PORTAL', true); ! ! //Check if forum_hack is installed ! if (!isset($mx_root_path)) ! { ! $mx_root_path = './../'; ! ! include_once($mx_mod_path . "includes/mx_constants.$phpEx"); ! include_once($mx_mod_path . "includes/shared/phpbb2/includes/functions.$phpEx"); ! } ! ! require_once($mx_mod_path . "includes/functions_core.$phpEx"); ! ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) ! { ! define('IN_CASHMOD', true); ! } ! ! //@ini_set( 'display_errors', '1' ); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! //error_reporting(E_ALL & ~E_NOTICE); ! ! define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) ! ! // ! // Instatiate the mx_cache class ! // ! $mx_cache = new mx_cache(); ! ! // ! // instatiate the mx_request_vars class ! // ! $mx_request_vars = new mx_request_vars(); ! ! ! // ! // instatiate the mx_user class ! // ! //$mx_user = new mx_user(); ! ! // ! // Left Pane Paths ! // ! $setmodules_admin_path = ''; ! $setmodules_module_path = "./../"; ! ! if (file_exists($phpbb_root_path."modcp.$phpEx")) // phpBB2 ! { ! define('PORTAL_BACKEND', 'phpbb2'); ! $tplEx = 'tpl'; ! } ! else if (@file_exists($phpbb_root_path."mcp.$phpEx")) // phpBB3 ! { ! define('PORTAL_BACKEND', 'phpbb3'); ! $tplEx = 'html'; ! } ! } ! else ! { ! define( 'IN_PORTAL', 1 ); ! define( 'MXBB_MODULE', true ); ! ! // ! // Main paths ! // ! $mx_root_path = './../../../'; ! $module_root_path = './../../../modules/mx_linkdb/'; ! ! // ! // Left Pane Paths ! // ! $setmodules_root_path = './../'; ! $setmodules_module_path = 'modules/mx_linkdb/'; ! $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 . 'linkdb/includes/linkdb_constants.' . $phpEx ); + $filename = basename( __FILE__ ); ! $module['LinkDb_links']['0_Configuration'] = $setmodules_admin_path . $filename . "?action=setting"; ! $module['LinkDb_links']['1_Cat_manage'] = $setmodules_admin_path . $filename . "?action=cat_manage"; ! //$module['LinkDb_links']['2_Link_manage'] = $setmodules_admin_path . $filename . "?action=link_manage"; ! $module['LinkDb_links']['3_Permissions'] = $setmodules_admin_path . $filename . "?action=auth_manage"; ! $module['LinkDb_links']['5_Custom_manage'] = $setmodules_admin_path . $filename . "?action=custom_manage"; return; } require( $mx_root_path . '/admin/pagestart.' . $phpEx ); ! if ( !MXBB_MODULE ) ! { ! require_once($mx_mod_path . "includes/functions_styles.$phpEx"); ! ! $mx_user = new mx_user(); // instatiate the mx_user class ! ! // ! // Define basic constants ! // ! $mx_user->page_id = 1; ! $mx_user->user_ip = $user_ip; ! $mx_user->_init_userprefs(); ! $mx_user->set_module_cfg_name('linkdb'); ! $mx_user->set_module_lang_path($module_root_path . 'linkdb/'); ! $mx_user->extend(); ! } ! ! include_once( $module_root_path . 'linkdb/linkdb_common.' . $phpEx ); ! // ********************************************************************** // Read language definition // ********************************************************************** ! if ( !MXBB_MODULE ) { ! if ( !file_exists( $module_root_path . 'linkdb/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'linkdb/language/lang_english/lang_admin.' . $phpEx ); ! } ! else ! { ! include( $module_root_path . 'linkdb/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ); ! } } else { ! 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 ); ! } } |