|
From: Jon O. <jon...@us...> - 2005-04-11 17:56:22
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2875/modules/mx_pafiledb/pafiledb Modified Files: pafiledb_common.php Log Message: finally upgrading this module/mod - merging phpBB mod, mxBB module (2.7.x and 2.8) -.permissions reviewed - pm notification added - and many many minor fixes all over the place Index: pafiledb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/pafiledb_common.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** pafiledb_common.php 9 Jan 2005 21:44:14 -0000 1.8 --- pafiledb_common.php 11 Apr 2005 17:55:42 -0000 1.9 *************** *** 18,32 **** */ - /* - orig - if ( !defined('IN_PHPBB') ) - { - die("Hacking attempt"); - } - */ - // MX if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } // =================================================== // addslashes to vars if magic_quotes_gpc is off --- 18,26 ---- */ if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } + // =================================================== // addslashes to vars if magic_quotes_gpc is off *************** *** 73,97 **** } - /* - orig - //=================================================== - // Get Language - //=================================================== - - $language = $board_config['default_lang']; - - if( !file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_pafiledb.'.$phpEx) ) - { - $language = 'english'; - } - - if( !file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_admin_pafiledb.'.$phpEx) ) - { - $language = 'english'; - } - - include($phpbb_root_path . 'language/lang_' . $language . '/lang_pafiledb.' . $phpEx); - include($phpbb_root_path . 'language/lang_' . $language . '/lang_admin_pafiledb.' . $phpEx); - */ - // MX // =================================================== // Get Language --- 67,70 ---- *************** *** 111,128 **** include( $module_root_path . 'language/lang_' . $language . '/lang_pafiledb.' . $phpEx ); include( $module_root_path . 'language/lang_' . $language . '/lang_admin_pafiledb.' . $phpEx ); // =================================================== // Include pafiledb data file // =================================================== ! /* - orig ! include($phpbb_root_path . 'pafiledb/includes/pafiledb_constants.'.$phpEx); ! include($phpbb_root_path . 'pafiledb/includes/functions_cache.'.$phpEx); ! include($phpbb_root_path . 'pafiledb/includes/functions.'.$phpEx); ! include($phpbb_root_path . 'pafiledb/includes/template.'.$phpEx); ! include($phpbb_root_path . 'pafiledb/includes/functions_pafiledb.'.$phpEx); ! */ ! // MX include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions_cache.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/template.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions_pafiledb.' . $phpEx ); --- 84,96 ---- include( $module_root_path . 'language/lang_' . $language . '/lang_pafiledb.' . $phpEx ); include( $module_root_path . 'language/lang_' . $language . '/lang_admin_pafiledb.' . $phpEx ); + // =================================================== // Include pafiledb data file // =================================================== ! include_once( $module_root_path . 'pafiledb/includes/pafiledb_constants.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions_cache.' . $phpEx ); + include_once( $module_root_path . 'pafiledb/includes/functions_mx.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/template.' . $phpEx ); include_once( $module_root_path . 'pafiledb/includes/functions_pafiledb.' . $phpEx ); *************** *** 146,149 **** --- 114,118 ---- $pafiledb = new pafiledb_public(); + // MX add-on // Generate paths for page and standalone mode |