|
From: Jon O. <jon...@us...> - 2008-02-15 22:14:27
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23057/admin Modified Files: admin_pafiledb.php Log Message: Updated, sync with phpBB2 standalone usage Trailing newlines Bad globals Index: admin_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pafiledb.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin_pafiledb.php 22 Aug 2006 20:23:24 -0000 1.6 --- admin_pafiledb.php 15 Feb 2008 22:14:23 -0000 1.7 *************** *** 11,15 **** define( 'IN_PORTAL', true ); ! if ( file_exists( './../viewtopic.php' ) ) { define( 'IN_PHPBB', 1 ); --- 11,17 ---- define( 'IN_PORTAL', true ); ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! if ( @file_exists( './../viewtopic.'.$phpEx ) ) { define( 'IN_PHPBB', 1 ); *************** *** 20,23 **** --- 22,26 ---- // $phpbb_root_path = $module_root_path = $mx_root_path = "./../"; + $mx_mod_path = $phpbb_root_path . 'mx_mod/'; // *************** *** 28,31 **** --- 31,35 ---- require_once( $phpbb_root_path . 'extension.inc' ); + require_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); } else *************** *** 76,86 **** // 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 ); } --- 80,104 ---- // Read language definition // ********************************************************************** ! if ( !MXBB_MODULE ) { ! if ( !file_exists( $module_root_path . 'pafiledb/language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx ) ) ! { ! include( $module_root_path . 'pafiledb/language/lang_english/lang_admin.' . $phpEx ); ! } ! else ! { ! include( $module_root_path . 'pafiledb/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 ); ! } } |