You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: Jon O. <jon...@us...> - 2008-02-16 00:14:28
|
Update of /cvsroot/mxbb/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10647 Modified Files: mx_news.php Log Message: more of the same... Index: mx_news.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_news.php 15 Feb 2008 22:13:26 -0000 1.2 --- mx_news.php 16 Feb 2008 00:14:04 -0000 1.3 *************** *** 118,122 **** // End session management ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if ( empty( $block_id ) ) { --- 118,122 ---- // End session management ! $block_id = ( !empty( $_GET['block_id'] ) ) ? $_GET['block_id'] : $_POST['id']; if ( empty( $block_id ) ) { |
|
From: Jon O. <jon...@us...> - 2008-02-16 00:14:28
|
Update of /cvsroot/mxbb/mx_news/mx_news/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10647/mx_news/includes Modified Files: functions.php functions_mx.php Log Message: more of the same... Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** functions.php 15 Feb 2008 22:13:36 -0000 1.2 --- functions.php 16 Feb 2008 00:14:04 -0000 1.3 *************** *** 218,225 **** { global $mx_news_config, $lang, $userdata, $images, $action; ! global $mx_news, $HTTP_GET_VARS; global $template, $db, $theme, $gen_simple_header, $starttime, $phpEx, $board_config, $user_ip, $phpbb_root_path; global $admin_level, $level_prior, $tree, $do_gzip_compress; ! global $mx_root_path, $module_root_path, $is_block, $phpEx, $title; /* --- 218,225 ---- { global $mx_news_config, $lang, $userdata, $images, $action; ! global $mx_news; global $template, $db, $theme, $gen_simple_header, $starttime, $phpEx, $board_config, $user_ip, $phpbb_root_path; global $admin_level, $level_prior, $tree, $do_gzip_compress; ! global $mx_root_path, $module_root_path, $is_block, $title; /* Index: functions_mx.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/includes/functions_mx.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** functions_mx.php 8 Feb 2008 21:58:20 -0000 1.1 --- functions_mx.php 16 Feb 2008 00:14:04 -0000 1.2 *************** *** 166,170 **** function mx_do_install_upgrade( $sql = '', $main_install = false ) { ! global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config, $HTTP_POST_VARS; $inst_error = false; --- 166,170 ---- function mx_do_install_upgrade( $sql = '', $main_install = false ) { ! global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config; $inst_error = false; |
|
From: Jon O. <jon...@us...> - 2008-02-16 00:14:28
|
Update of /cvsroot/mxbb/mx_news/mx_news/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10647/mx_news/modules Modified Files: mx_news_post_comment.php Log Message: more of the same... Index: mx_news_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_news/mx_news/modules/mx_news_post_comment.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_news_post_comment.php 15 Feb 2008 22:29:30 -0000 1.2 --- mx_news_post_comment.php 16 Feb 2008 00:14:04 -0000 1.3 *************** *** 161,165 **** $template->assign_block_vars( "tinyMCE_admin", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); --- 161,165 ---- $template->assign_block_vars( "tinyMCE_admin", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $_SERVER['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); *************** *** 169,173 **** $template->assign_block_vars( "tinyMCE", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); --- 169,173 ---- $template->assign_block_vars( "tinyMCE", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $_SERVER['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); |
|
From: Jon O. <jon...@us...> - 2008-02-16 00:13:49
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10625 Modified Files: pafiledb_common.php Log Message: fix Index: pafiledb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/pafiledb_common.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** pafiledb_common.php 15 Feb 2008 22:14:23 -0000 1.21 --- pafiledb_common.php 16 Feb 2008 00:13:29 -0000 1.22 *************** *** 192,195 **** --- 192,200 ---- // + // Load a wrapper for common phpBB2 functions (compatibility with core 2.8.x) + // + include_once( $mx_root_path . 'includes/shared/phpbb2/functions.' . $phpEx ); + + // // We need XS templates, also when ran as a phpBB2 MOD // |
|
From: Jon O. <jon...@us...> - 2008-02-16 00:13:34
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10600 Modified Files: linkdb_common.php Log Message: fix Index: linkdb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/linkdb_common.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** linkdb_common.php 15 Feb 2008 23:03:24 -0000 1.6 --- linkdb_common.php 16 Feb 2008 00:13:11 -0000 1.7 *************** *** 81,84 **** --- 81,89 ---- include_once( $module_root_path . 'linkdb/includes/functions_linkdb.' . $phpEx ); + // + // Load a wrapper for common phpBB2 functions (compatibility with core 2.8.x) + // + include_once( $mx_root_path . 'includes/shared/phpbb2/functions.' . $phpEx ); + // ********************************************************************** // If phpBB mod read language definition |
|
From: Jon O. <jon...@us...> - 2008-02-16 00:13:22
|
Update of /cvsroot/mxbb/mx_kb/kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10205 Modified Files: kb_common.php Log Message: fix Index: kb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/kb_common.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** kb_common.php 15 Feb 2008 23:03:59 -0000 1.10 --- kb_common.php 16 Feb 2008 00:12:47 -0000 1.11 *************** *** 82,85 **** --- 82,90 ---- include_once( $module_root_path . 'kb/includes/functions_kb.' . $phpEx ); + // + // Load a wrapper for common phpBB2 functions + // + include_once( $mx_root_path . 'includes/shared/phpbb2/functions.' . $phpEx ); + // ********************************************************************** // If phpBB mod read language definition |
|
From: Jon O. <jon...@us...> - 2008-02-16 00:12:23
|
Update of /cvsroot/mxbb/mx_bugsbt/bugsbt In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10170 Modified Files: bugsbt_common.php Log Message: fix Index: bugsbt_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_bugsbt/bugsbt/bugsbt_common.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bugsbt_common.php 15 Feb 2008 22:21:22 -0000 1.4 --- bugsbt_common.php 16 Feb 2008 00:12:19 -0000 1.5 *************** *** 83,86 **** --- 83,91 ---- include_once( $module_root_path . 'bugsbt/includes/functions_bugsbt.' . $phpEx ); + // + // Load a wrapper for common phpBB2 functions (compatibility with core 2.8.x) + // + include_once( $mx_root_path . 'includes/shared/phpbb2/functions.' . $phpEx ); + // =================================================== // Load classes |
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2029 Modified Files: Tag: core28x db_install.php db_upgrade.php dload.php dload_lists.php dload_mini.php dload_quickdl.php Log Message: Updated, sync with phpBB2 standalone usage Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_upgrade.php,v retrieving revision 1.25 retrieving revision 1.25.2.1 diff -C2 -d -r1.25 -r1.25.2.1 *** db_upgrade.php 22 Jul 2007 21:06:29 -0000 1.25 --- db_upgrade.php 15 Feb 2008 23:53:11 -0000 1.25.2.1 *************** *** 259,261 **** echo "</table><br />"; ! ?> --- 259,261 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: dload.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload.php,v retrieving revision 1.23.2.1 retrieving revision 1.23.2.2 diff -C2 -d -r1.23.2.1 -r1.23.2.2 *** dload.php 28 Jan 2008 03:11:06 -0000 1.23.2.1 --- dload.php 15 Feb 2008 23:53:11 -0000 1.23.2.2 *************** *** 11,106 **** $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( @file_exists("./viewtopic.$phpEx") ) // -------------------------------------------- phpBB MOD MODE { ! if ( file_exists("./modcp.$phpEx") ) { ! define('PORTAL_BACKEND', 'phpbb2'); ! define( 'MXBB_MODULE', false ); ! define( 'IN_PHPBB', true ); ! define( 'IN_PORTAL', true ); ! define( 'IN_DOWNLOAD', true ); ! // When run as a phpBB mod these paths are identical ;) ! $phpbb_root_path = $module_root_path = $mx_root_path = './'; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! $tplEx = 'tpl'; ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) ! { ! define('IN_CASHMOD', true); ! } ! ! include( $phpbb_root_path . 'common.' . $phpEx ); ! @ini_set( 'display_errors', '1' ); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); - include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); - include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); - - define( 'PAGE_DOWNLOAD', -501 ); // If this id generates a conflict with other mods, change it ;) // Start session management $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); init_userprefs( $userdata ); - // End session management - // - // Instatiate the mx_cache class - // - $mx_cache = new mx_cache(); - // - // Get mxBB config settings - // - $portal_config = $mx_cache->obtain_mxbb_config(); - // - // instatiate the mx_request_vars class - // - $mx_request_vars = new mx_request_vars(); - - $is_block = false; } ! else if ( @file_exists("./mcp.$phpEx") ) { define('PORTAL_BACKEND', 'phpbb3'); - define( 'MXBB_MODULE', false ); - define( 'IN_PHPBB', true ); - define( 'IN_PORTAL', true ); - define( 'IN_DOWNLOAD', true ); - $tplEx = 'html'; - // When run as a phpBB mod these paths are identical ;) - $phpbb_root_path = $module_root_path = $mx_root_path = './'; - $mx_mod_path = $phpbb_root_path . 'mx_mod/'; - - //Check for cash mod - if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) - { - define('IN_CASHMOD', true); - } - - include( $phpbb_root_path . 'common.' . $phpEx ); - - // - // ERROR HANDLING - // - @ini_set( 'display_errors', '1' ); - //error_reporting( E_ALL ); - error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables - //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/bbcode.' . $phpEx ); //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/functions_post.' . $phpEx ); - include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); - include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); - - define( 'PAGE_DOWNLOAD', -501 ); // If this id generates a conflict with other mods, change it ;) // --- 11,80 ---- $phpEx = substr(strrchr(__FILE__, '.'), 1); ! if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { + define( 'MXBB_MODULE', false ); + define( 'IN_PHPBB', true ); + define( 'IN_PORTAL', true ); + define( 'IN_DOWNLOAD', true ); ! // When run as a phpBB mod these paths are identical ;) ! $phpbb_root_path = $module_root_path = $mx_root_path = './'; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { ! define('IN_CASHMOD', true); ! } ! include( $phpbb_root_path . 'common.' . $phpEx ); ! @ini_set( 'display_errors', '1' ); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); ! include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); ! define( 'PAGE_DOWNLOAD', -501 ); // If this id generates a conflict with other mods, change it ;) ! ! // ! // Instatiate the mx_cache class ! // ! $mx_cache = new mx_cache(); ! ! // ! // Get mxBB config settings ! // ! $portal_config = $mx_cache->obtain_mxbb_config(); ! ! // ! // instatiate the mx_request_vars class ! // ! $mx_request_vars = new mx_request_vars(); ! ! $is_block = false; ! ! if ( file_exists("./modcp.$phpEx") ) // phpBB2 ! { ! define('PORTAL_BACKEND', 'phpbb2'); ! $tplEx = 'tpl'; include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); // Start session management $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); init_userprefs( $userdata ); // End session management } ! else if ( @file_exists("./mcp.$phpEx") ) // phpBB3 { define('PORTAL_BACKEND', 'phpbb3'); $tplEx = 'html'; //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/bbcode.' . $phpEx ); //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/functions_post.' . $phpEx ); // *************** *** 118,138 **** // $board_config = $config; - - // - // Instatiate the mx_cache class - // - $mx_cache = new mx_cache(); - - // - // Get mxBB config settings - // - $portal_config = $mx_cache->obtain_mxbb_config(); - - // - // instatiate the mx_request_vars class - // - $mx_request_vars = new mx_request_vars(); - - $is_block = false; } else --- 92,95 ---- *************** *** 185,191 **** $title = $mx_block->block_info['block_title']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { define('IN_CASHMOD', true); --- 142,148 ---- $title = $mx_block->block_info['block_title']; $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) { define('IN_CASHMOD', true); *************** *** 195,199 **** global $images; } ! define( 'MXBB_27x', @file_exists($mx_root_path . "mx_login.$phpEx") ); } --- 152,156 ---- global $images; } ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.'.$phpEx ) ); } *************** *** 210,231 **** $mx_script_name = preg_replace( '#^\/?(.*?)\/?$#', '\1', trim( $mx_script_name_temp ) ); - // =================================================== // Include the common file // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); - $pafiledb_template->destroy(); // =================================================== // Get action variable otherwise set it to the main // =================================================== ! if ( !MXBB_MODULE ) ! { ! $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'main'; ! } ! else ! { ! $action = $mx_request_vars->request('action', MX_TYPE_NO_TAGS, 'main'); ! } // =================================================== --- 167,179 ---- $mx_script_name = preg_replace( '#^\/?(.*?)\/?$#', '\1', trim( $mx_script_name_temp ) ); // =================================================== // Include the common file // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); // =================================================== // Get action variable otherwise set it to the main // =================================================== ! $action = $mx_request_vars->request('action', MX_TYPE_NO_TAGS, 'main'); // =================================================== *************** *** 294,297 **** } } - ?> \ No newline at end of file --- 242,244 ---- Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/db_install.php,v retrieving revision 1.31 retrieving revision 1.31.2.1 diff -C2 -d -r1.31 -r1.31.2.1 *** db_install.php 22 Jul 2007 21:06:29 -0000 1.31 --- db_install.php 15 Feb 2008 23:53:11 -0000 1.31.2.1 *************** *** 335,339 **** // Notifications ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('notify', 'pm')", // pm_notify "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('notify_group', '0')", // NEW --- 335,339 ---- // Notifications ! "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('notify', '0')", // pm_notify "INSERT INTO " . $mx_table_prefix . "pa_config VALUES ('notify_group', '0')", // NEW *************** *** 368,370 **** echo "</table><br />"; ! ?> --- 368,370 ---- echo "</table><br />"; ! ?> \ No newline at end of file Index: dload_mini.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_mini.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** dload_mini.php 13 Aug 2006 19:44:45 -0000 1.2 --- dload_mini.php 15 Feb 2008 23:53:11 -0000 1.2.2.1 *************** *** 47,51 **** // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); - $pafiledb_template->destroy(); // =================================================== --- 47,50 ---- Index: dload_lists.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_lists.php,v retrieving revision 1.24 retrieving revision 1.24.2.1 diff -C2 -d -r1.24 -r1.24.2.1 *** dload_lists.php 13 Aug 2006 19:44:45 -0000 1.24 --- dload_lists.php 15 Feb 2008 23:53:11 -0000 1.24.2.1 *************** *** 50,54 **** // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); - $pafiledb_template->destroy(); // =================================================== --- 50,53 ---- Index: dload_quickdl.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload_quickdl.php,v retrieving revision 1.14 retrieving revision 1.14.2.1 diff -C2 -d -r1.14 -r1.14.2.1 *** dload_quickdl.php 13 Aug 2006 19:44:45 -0000 1.14 --- dload_quickdl.php 15 Feb 2008 23:53:11 -0000 1.14.2.1 *************** *** 47,51 **** // =================================================== include_once( $module_root_path . 'pafiledb/pafiledb_common.' . $phpEx ); - $pafiledb_template->destroy(); // =================================================== --- 47,50 ---- |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:53:15
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv2029/admin Modified Files: Tag: core28x admin_pafiledb.php Log Message: Updated, sync with phpBB2 standalone usage Index: admin_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/admin_pafiledb.php,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -C2 -d -r1.6.2.1 -r1.6.2.2 *** admin_pafiledb.php 28 Jan 2008 03:11:06 -0000 1.6.2.1 --- admin_pafiledb.php 15 Feb 2008 23:53:11 -0000 1.6.2.2 *************** *** 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 ); *************** *** 100,103 **** --- 102,106 ---- } } + // // Get action variable other wise set it to the main |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:52:28
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1675 Modified Files: Tag: core28x linkdb.php Log Message: updated sync code... Index: linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb.php,v retrieving revision 1.13.2.1 retrieving revision 1.13.2.2 diff -C2 -d -r1.13.2.1 -r1.13.2.2 *** linkdb.php 28 Jan 2008 03:08:24 -0000 1.13.2.1 --- linkdb.php 15 Feb 2008 23:52:24 -0000 1.13.2.2 *************** *** 9,13 **** */ ! if ( file_exists( './viewtopic.php' ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); --- 9,15 ---- */ ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); *************** *** 21,29 **** $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $phpbb_root_path . 'common.' . $phpEx ); ! include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); ! include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); --- 23,37 ---- $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) ! { ! define('IN_CASHMOD', true); ! } ! include( $phpbb_root_path . 'common.' . $phpEx ); ! @ini_set( 'display_errors', '1' ); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); *************** *** 31,38 **** define( 'PAGE_LINKS', -502 ); // If this id generates a conflict with other mods, change it ;) - // Start session management - $userdata = session_pagestart( $user_ip, PAGE_LINKS ); - init_userprefs( $userdata ); - // End session management // // Instatiate the mx_cache class --- 39,42 ---- *************** *** 51,55 **** $is_block = false; ! global $images, $mx_images; } else --- 55,101 ---- $is_block = false; ! ! if ( file_exists("./modcp.$phpEx") ) // phpBB2 ! { ! define('PORTAL_BACKEND', 'phpbb2'); ! $tplEx = 'tpl'; ! ! include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); ! include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); ! ! // Start session management ! $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); ! init_userprefs( $userdata ); ! // End session management ! ! ! } ! else if ( @file_exists("./mcp.$phpEx") ) // phpBB3 ! { ! define('PORTAL_BACKEND', 'phpbb3'); ! $tplEx = 'html'; ! ! //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/bbcode.' . $phpEx ); ! //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/functions_post.' . $phpEx ); ! ! // ! // Start session management ! // ! $user->session_begin(); ! $userdata = $user->data; ! $user->setup(); ! // ! // End session management ! // ! ! // ! // Get phpBB config settings ! // ! $board_config = $config; ! } ! else ! { ! die('Copy this file in phpbb_root_path were is your viewtopic.php file!!!'); ! } } else *************** *** 100,107 **** $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); $is_block = true; global $images; } ! define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.php' ) ); } --- 146,159 ---- $block_size = ( isset( $block_size ) && !empty( $block_size ) ? $block_size : '100%' ); + //Check for cash mod + if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) + { + define('IN_CASHMOD', true); + } + $is_block = true; global $images; } ! define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.'.$phpEx ) ); } *************** *** 126,135 **** // Get action variable other wise set it to the main // ! $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'main'; // =================================================== // Is admin? // =================================================== ! $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; // =================================================== --- 178,196 ---- // Get action variable other wise set it to the main // ! $action = $mx_request_vars->request('action', MX_TYPE_NO_TAGS, 'main'); // =================================================== // Is admin? // =================================================== ! switch (PORTAL_BACKEND) ! { ! case 'internal': ! case 'phpbb2': ! $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; ! break; ! case 'phpbb3': ! $is_admin = ( $userdata['user_type'] == USER_FOUNDER ) ? true : 0; ! break; ! } // =================================================== |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:46:31
|
Update of /cvsroot/mxbb/mx_kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31614 Modified Files: Tag: core28x kb.php Log Message: updated sync code... Index: kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb.php,v retrieving revision 1.42.2.1 retrieving revision 1.42.2.2 diff -C2 -d -r1.42.2.1 -r1.42.2.2 *** kb.php 28 Jan 2008 03:09:27 -0000 1.42.2.1 --- kb.php 15 Feb 2008 23:46:26 -0000 1.42.2.2 *************** *** 9,13 **** */ ! if ( file_exists( './viewtopic.php' ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); --- 9,15 ---- */ ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! if ( !defined('PORTAL_BACKEND') && @file_exists( './viewtopic.' . $phpEx ) ) // -------------------------------------------- phpBB MOD MODE { define( 'MXBB_MODULE', false ); *************** *** 19,36 **** $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include( $phpbb_root_path . 'common.' . $phpEx ); ! //include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); ! //include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); ! define( 'PAGE_KB', -503 ); // If this id generates a conflict with other mods, change it ;) ! ! // Start session management ! $userdata = session_pagestart( $user_ip, PAGE_KB ); ! init_userprefs( $userdata ); ! // End session management // --- 21,39 ---- $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! //Check for cash mod ! if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) ! { ! define('IN_CASHMOD', true); ! } ! include( $phpbb_root_path . 'common.' . $phpEx ); ! @ini_set( 'display_errors', '1' ); ! error_reporting (E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables ! include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); ! define( 'PAGE_KB', -502 ); // If this id generates a conflict with other mods, change it ;) // *************** *** 48,58 **** // $mx_request_vars = new mx_request_vars(); - - // - // instatiate the mx_block class - // - $mx_block = new mx_block(); $is_block = false; } else // --------------------------------------------------------------------------------- mxBB Module MODE --- 51,99 ---- // $mx_request_vars = new mx_request_vars(); $is_block = false; + + if ( file_exists("./modcp.$phpEx") ) // phpBB2 + { + define('PORTAL_BACKEND', 'phpbb2'); + $tplEx = 'tpl'; + + include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); + include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); + + // Start session management + $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); + init_userprefs( $userdata ); + // End session management + + + } + else if ( @file_exists("./mcp.$phpEx") ) // phpBB3 + { + define('PORTAL_BACKEND', 'phpbb3'); + $tplEx = 'html'; + + //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/bbcode.' . $phpEx ); + //include_once( $mx_mod_path . 'includes/shared/phpbb2/includes/functions_post.' . $phpEx ); + + // + // Start session management + // + $user->session_begin(); + $userdata = $user->data; + $user->setup(); + // + // End session management + // + + // + // Get phpBB config settings + // + $board_config = $config; + } + else + { + die('Copy this file in phpbb_root_path were is your viewtopic.php file!!!'); + } } else // --------------------------------------------------------------------------------- mxBB Module MODE *************** *** 135,140 **** } - define( 'MXBB_27x', file_exists( $mx_root_path . 'mx_login.' . $phpEx ) ); - // // Read Block Settings (default mode) --- 176,179 ---- *************** *** 150,156 **** --- 189,202 ---- $kb_type_select_data = ( !empty( $kb_type_select_var ) ) ? unserialize( $kb_type_select_var ) : array(); + //Check for cash mod + if (file_exists($phpbb_root_path . 'includes/functions_cash.'.$phpEx)) + { + define('IN_CASHMOD', true); + } + $is_block = true; global $images, $mx_images; } + define( 'MXBB_27x', @file_exists( $mx_root_path . 'mx_login.'.$phpEx ) ); } *************** *** 186,190 **** // Is admin? // =================================================== ! $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; // =================================================== --- 232,245 ---- // Is admin? // =================================================== ! switch (PORTAL_BACKEND) ! { ! case 'internal': ! case 'phpbb2': ! $is_admin = ( ( $userdata['user_level'] == ADMIN ) && $userdata['session_logged_in'] ) ? true : 0; ! break; ! case 'phpbb3': ! $is_admin = ( $userdata['user_type'] == USER_FOUNDER ) ? true : 0; ! break; ! } // =================================================== |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:46:31
|
Update of /cvsroot/mxbb/mx_kb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv31614/admin Modified Files: Tag: core28x admin_kb.php Log Message: updated sync code... Index: admin_kb.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/admin/admin_kb.php,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -C2 -d -r1.5.2.1 -r1.5.2.2 *** admin_kb.php 28 Jan 2008 03:09:27 -0000 1.5.2.1 --- admin_kb.php 15 Feb 2008 23:46:26 -0000 1.5.2.2 *************** *** 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 ); *************** *** 31,35 **** require_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); require_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); ! // // instatiate the mx_request_vars class --- 33,37 ---- require_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); require_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); ! // // instatiate the mx_request_vars class |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:22:43
|
Update of /cvsroot/mxbb/core/includes/shared/phpbb2 In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21076 Added Files: Tag: core28x functions.php Log Message: We need this wrapper class also in 2.8.x for many modules... --- NEW FILE: functions.php --- <?php /*************************************************************************** * functions.php * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : su...@ph... * * $Id: functions.php,v 1.1.2.1 2008/02/15 23:22:35 jonohlsson Exp $ * * ***************************************************************************/ /*************************************************************************** * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * ***************************************************************************/ // // Class phpBB2 - function container // class phpBB2 { function get_db_stat($mode) { global $db; switch( $mode ) { case 'usercount': $sql = "SELECT COUNT(user_id) AS total FROM " . USERS_TABLE . " WHERE user_id <> " . ANONYMOUS; break; case 'newestuser': $sql = "SELECT user_id, username FROM " . USERS_TABLE . " WHERE user_id <> " . ANONYMOUS . " ORDER BY user_id DESC LIMIT 1"; break; case 'postcount': case 'topiccount': $sql = "SELECT SUM(forum_topics) AS topic_total, SUM(forum_posts) AS post_total FROM " . FORUMS_TABLE; break; } if ( !($result = $db->sql_query($sql)) ) { return false; } $row = $db->sql_fetchrow($result); switch ( $mode ) { case 'usercount': return $row['total']; break; case 'newestuser': return $row; break; case 'postcount': return $row['post_total']; break; case 'topiccount': return $row['topic_total']; break; } return false; } // added at phpBB 2.0.11 to properly format the username function phpbb_clean_username($username) { $username = substr(htmlspecialchars(str_replace("\'", "'", trim($username))), 0, 25); $username = self::phpbb_rtrim($username, "\\"); $username = str_replace("'", "\'", $username); return $username; } /** * This function is a wrapper for ltrim, as charlist is only supported in php >= 4.1.0 * Added in phpBB 2.0.18 */ function phpbb_ltrim($str, $charlist = false) { if ($charlist === false) { return ltrim($str); } $php_version = explode('.', PHP_VERSION); // php version < 4.1.0 if ((int) $php_version[0] < 4 || ((int) $php_version[0] == 4 && (int) $php_version[1] < 1)) { while ($str{0} == $charlist) { $str = substr($str, 1); } } else { $str = ltrim($str, $charlist); } return $str; } // added at phpBB 2.0.12 to fix a bug in PHP 4.3.10 (only supporting charlist in php >= 4.1.0) function phpbb_rtrim($str, $charlist = false) { if ($charlist === false) { return rtrim($str); } $php_version = explode('.', PHP_VERSION); // php version < 4.1.0 if ((int) $php_version[0] < 4 || ((int) $php_version[0] == 4 && (int) $php_version[1] < 1)) { while ($str{strlen($str)-1} == $charlist) { $str = substr($str, 0, strlen($str)-1); } } else { $str = rtrim($str, $charlist); } return $str; } /** * Our own generator of random values * This uses a constantly changing value as the base for generating the values * The board wide setting is updated once per page if this code is called * With thanks to Anthrax101 for the inspiration on this one * Added in phpBB 2.0.20 */ function dss_rand() { global $db, $board_config, $dss_seeded; $val = $board_config['rand_seed'] . microtime(); $val = md5($val); $board_config['rand_seed'] = md5($board_config['rand_seed'] . $val . 'a'); if($dss_seeded !== true) { $sql = "UPDATE " . CONFIG_TABLE . " SET config_value = '" . $board_config['rand_seed'] . "' WHERE config_name = 'rand_seed'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Unable to reseed PRNG", "", __LINE__, __FILE__, $sql); } $dss_seeded = true; } return substr($val, 4, 16); } // // Get Userdata, $user can be username or user_id. If force_str is true, the username will be forced. // function get_userdata($user, $force_str = false) { global $db; if (!is_numeric($user) || $force_str) { $user = self::phpbb_clean_username($user); } else { $user = intval($user); } $sql = "SELECT * FROM " . USERS_TABLE . " WHERE "; $sql .= ( ( is_integer($user) ) ? "user_id = $user" : "username = '" . str_replace("\'", "''", $user) . "'" ) . " AND user_id <> " . ANONYMOUS; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Tried obtaining data for a non-existent user', '', __LINE__, __FILE__, $sql); } return ( $row = $db->sql_fetchrow($result) ) ? $row : false; } function make_jumpbox($action, $match_forum_id = 0) { global $template, $userdata, $lang, $db, $nav_links, $phpEx, $SID; // $is_auth = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata); $sql = "SELECT c.cat_id, c.cat_title, c.cat_order FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f WHERE f.cat_id = c.cat_id GROUP BY c.cat_id, c.cat_title, c.cat_order ORDER BY c.cat_order"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, "Couldn't obtain category list.", "", __LINE__, __FILE__, $sql); } $category_rows = array(); while ( $row = $db->sql_fetchrow($result) ) { $category_rows[] = $row; } if ( $total_categories = count($category_rows) ) { $sql = "SELECT * FROM " . FORUMS_TABLE . " ORDER BY cat_id, forum_order"; if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Could not obtain forums information', '', __LINE__, __FILE__, $sql); } $boxstring = '<select name="' . POST_FORUM_URL . '" onchange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"><option value="-1">' . $lang['Select_forum'] . '</option>'; $forum_rows = array(); while ( $row = $db->sql_fetchrow($result) ) { $forum_rows[] = $row; } if ( $total_forums = count($forum_rows) ) { for($i = 0; $i < $total_categories; $i++) { $boxstring_forums = ''; for($j = 0; $j < $total_forums; $j++) { if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$j]['auth_view'] <= AUTH_REG ) { // if ( $forum_rows[$j]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$j]['forum_id']]['auth_view'] ) // { $selected = ( $forum_rows[$j]['forum_id'] == $match_forum_id ) ? 'selected="selected"' : ''; $boxstring_forums .= '<option value="' . $forum_rows[$j]['forum_id'] . '"' . $selected . '>' . $forum_rows[$j]['forum_name'] . '</option>'; // // Add an array to $nav_links for the Mozilla navigation bar. // 'chapter' and 'forum' can create multiple items, therefore we are using a nested array. // $nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array ( 'url' => mx_append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']), 'title' => $forum_rows[$j]['forum_name'] ); } } if ( $boxstring_forums != '' ) { $boxstring .= '<option value="-1"> </option>'; $boxstring .= '<option value="-1">' . $category_rows[$i]['cat_title'] . '</option>'; $boxstring .= '<option value="-1">----------------</option>'; $boxstring .= $boxstring_forums; } } } $boxstring .= '</select>'; } else { $boxstring .= '<select name="' . POST_FORUM_URL . '" onchange="if(this.options[this.selectedIndex].value != -1){ forms[\'jumpbox\'].submit() }"></select>'; } // Let the jumpbox work again in sites having additional session id checks. // if ( !empty($SID) ) // { $boxstring .= '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />'; // } $template->set_filenames(array( 'jumpbox' => 'jumpbox.tpl') ); $template->assign_vars(array( 'L_GO' => $lang['Go'], 'L_JUMP_TO' => $lang['Jump_to'], 'L_SELECT_FORUM' => $lang['Select_forum'], 'S_JUMPBOX_SELECT' => $boxstring, 'S_JUMPBOX_ACTION' => mx_append_sid($action)) ); $template->assign_var_from_handle('JUMPBOX', 'jumpbox'); return; } // // Initialise user settings on page load /* function init_userprefs($userdata) { global $board_config, $theme, $images; global $template, $lang, $phpEx, $phpbb_root_path, $db; global $nav_links; if ( $userdata['user_id'] != ANONYMOUS ) { if ( !empty($userdata['user_lang'])) { $default_lang = self::phpbb_ltrim(basename(self::phpbb_rtrim($userdata['user_lang'])), "'"); } if ( !empty($userdata['user_dateformat']) ) { $board_config['default_dateformat'] = $userdata['user_dateformat']; } if ( isset($userdata['user_timezone']) ) { $board_config['board_timezone'] = $userdata['user_timezone']; } } else { $default_lang = self::phpbb_ltrim(basename(self::phpbb_rtrim($board_config['default_lang'])), "'"); } if ( !file_exists(@self::phpbb_realpath($phpbb_root_path . 'language/lang_' . $default_lang . '/lang_main.'.$phpEx)) ) { if ( $userdata['user_id'] != ANONYMOUS ) { // For logged in users, try the board default language next $default_lang = self::phpbb_ltrim(basename(self::phpbb_rtrim($board_config['default_lang'])), "'"); } else { // For guests it means the default language is not present, try english // This is a long shot since it means serious errors in the setup to reach here, // but english is part of a new install so it's worth us trying $default_lang = 'english'; } if ( !file_exists(@self::phpbb_realpath($phpbb_root_path . 'language/lang_' . $default_lang . '/lang_main.'.$phpEx)) ) { mx_message_die(CRITICAL_ERROR, 'Could not locate valid language pack'); } } // If we've had to change the value in any way then let's write it back to the database // before we go any further since it means there is something wrong with it if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_lang'] !== $default_lang ) { $sql = 'UPDATE ' . USERS_TABLE . " SET user_lang = '" . $default_lang . "' WHERE user_lang = '" . $userdata['user_lang'] . "'"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(CRITICAL_ERROR, 'Could not update user language info'); } $userdata['user_lang'] = $default_lang; } elseif ( $userdata['user_id'] === ANONYMOUS && $board_config['default_lang'] !== $default_lang ) { $sql = 'UPDATE ' . CONFIG_TABLE . " SET config_value = '" . $default_lang . "' WHERE config_name = 'default_lang'"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(CRITICAL_ERROR, 'Could not update user language info'); } } $board_config['default_lang'] = $default_lang; include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); if ( defined('IN_ADMIN') ) { if( !file_exists(@self::phpbb_realpath($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.'.$phpEx)) ) { $board_config['default_lang'] = 'english'; } include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_admin.' . $phpEx); } // // Set up style // if ( !$board_config['override_user_style'] ) { if ( $userdata['user_id'] != ANONYMOUS && $userdata['user_style'] > 0 ) { if ( $theme = setup_style($userdata['user_style']) ) { return; } } } $theme = setup_style($board_config['default_style']); // // Mozilla navigation bar // Default items that should be valid on all pages. // Defined here to correctly assign the Language Variables // and be able to change the variables within code. // $nav_links['top'] = array ( 'url' => mx_append_sid($phpbb_root_path . 'index.' . $phpEx), 'title' => sprintf($lang['Forum_Index'], $board_config['sitename']) ); $nav_links['search'] = array ( 'url' => mx_append_sid($phpbb_root_path . 'search.' . $phpEx), 'title' => $lang['Search'] ); $nav_links['help'] = array ( 'url' => mx_append_sid($phpbb_root_path . 'faq.' . $phpEx), 'title' => $lang['FAQ'] ); $nav_links['author'] = array ( 'url' => mx_append_sid($phpbb_root_path . 'memberlist.' . $phpEx), 'title' => $lang['Memberlist'] ); return; } */ /* function setup_style($style) { global $db, $board_config, $template, $images, $phpbb_root_path; $sql = 'SELECT * FROM ' . THEMES_TABLE . ' WHERE themes_id = ' . (int) $style; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(CRITICAL_ERROR, 'Could not query database for theme info'); } if ( !($row = $db->sql_fetchrow($result)) ) { // We are trying to setup a style which does not exist in the database // Try to fallback to the board default (if the user had a custom style) // and then any users using this style to the default if it succeeds if ( $style != $board_config['default_style']) { $sql = 'SELECT * FROM ' . THEMES_TABLE . ' WHERE themes_id = ' . (int) $board_config['default_style']; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(CRITICAL_ERROR, 'Could not query database for theme info'); } if ( $row = $db->sql_fetchrow($result) ) { $db->sql_freeresult($result); $sql = 'UPDATE ' . USERS_TABLE . ' SET user_style = ' . (int) $board_config['default_style'] . " WHERE user_style = $style"; if ( !($result = $db->sql_query($sql)) ) { mx_message_die(CRITICAL_ERROR, 'Could not update user theme info'); } } else { mx_message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]"); } } else { mx_message_die(CRITICAL_ERROR, "Could not get theme data for themes_id [$style]"); } } $template_path = 'templates/' ; $template_name = $row['template_name'] ; $template = new Template($phpbb_root_path . $template_path . $template_name); if ( $template ) { $current_template_path = $template_path . $template_name; @include($phpbb_root_path . $template_path . $template_name . '/' . $template_name . '.cfg'); if ( !defined('TEMPLATE_CONFIG') ) { mx_message_die(CRITICAL_ERROR, "Could not open $template_name template config file", '', __LINE__, __FILE__); } $img_lang = ( file_exists(@self::phpbb_realpath($phpbb_root_path . $current_template_path . '/images/lang_' . $board_config['default_lang'])) ) ? $board_config['default_lang'] : 'english'; while( list($key, $value) = @each($images) ) { if ( !is_array($value) ) { $images[$key] = str_replace('{LANG}', 'lang_' . $img_lang, $value); } } } return $row; } */ function encode_ip($dotquad_ip) { $ip_sep = explode('.', $dotquad_ip); return sprintf('%02x%02x%02x%02x', $ip_sep[0], $ip_sep[1], $ip_sep[2], $ip_sep[3]); } function decode_ip($int_ip) { $hexipbang = explode('.', chunk_split($int_ip, 2, '.')); return hexdec($hexipbang[0]). '.' . hexdec($hexipbang[1]) . '.' . hexdec($hexipbang[2]) . '.' . hexdec($hexipbang[3]); } // // Create date/time from format and timezone // function create_date($format, $gmepoch, $tz) { global $board_config, $lang; static $translate; if ( empty($translate) && $board_config['default_lang'] != 'english' ) { @reset($lang['datetime']); while ( list($match, $replace) = @each($lang['datetime']) ) { $translate[$match] = $replace; } } return ( !empty($translate) ) ? strtr(@gmdate($format, $gmepoch + (3600 * $tz)), $translate) : @gmdate($format, $gmepoch + (3600 * $tz)); } // // Pagination routine, generates // page number sequence // function generate_pagination($base_url, $num_items, $per_page, $start_item, $add_prevnext_text = TRUE) { global $lang; $total_pages = ceil($num_items/$per_page); if ( $total_pages == 1 ) { return ''; } $on_page = floor($start_item / $per_page) + 1; $page_string = ''; if ( $total_pages > 10 ) { $init_page_max = ( $total_pages > 3 ) ? 3 : $total_pages; for($i = 1; $i < $init_page_max + 1; $i++) { $page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . mx_append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>'; if ( $i < $init_page_max ) { $page_string .= ", "; } } if ( $total_pages > 3 ) { if ( $on_page > 1 && $on_page < $total_pages ) { $page_string .= ( $on_page > 5 ) ? ' ... ' : ', '; $init_page_min = ( $on_page > 4 ) ? $on_page : 5; $init_page_max = ( $on_page < $total_pages - 4 ) ? $on_page : $total_pages - 4; for($i = $init_page_min - 1; $i < $init_page_max + 2; $i++) { $page_string .= ($i == $on_page) ? '<b>' . $i . '</b>' : '<a href="' . mx_append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>'; if ( $i < $init_page_max + 1 ) { $page_string .= ', '; } } $page_string .= ( $on_page < $total_pages - 4 ) ? ' ... ' : ', '; } else { $page_string .= ' ... '; } for($i = $total_pages - 2; $i < $total_pages + 1; $i++) { $page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . mx_append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>'; if( $i < $total_pages ) { $page_string .= ", "; } } } } else { for($i = 1; $i < $total_pages + 1; $i++) { $page_string .= ( $i == $on_page ) ? '<b>' . $i . '</b>' : '<a href="' . mx_append_sid($base_url . "&start=" . ( ( $i - 1 ) * $per_page ) ) . '">' . $i . '</a>'; if ( $i < $total_pages ) { $page_string .= ', '; } } } if ( $add_prevnext_text ) { if ( $on_page > 1 ) { $page_string = ' <a href="' . mx_append_sid($base_url . "&start=" . ( ( $on_page - 2 ) * $per_page ) ) . '">' . $lang['Previous'] . '</a> ' . $page_string; } if ( $on_page < $total_pages ) { $page_string .= ' <a href="' . mx_append_sid($base_url . "&start=" . ( $on_page * $per_page ) ) . '">' . $lang['Next'] . '</a>'; } } $page_string = $lang['Goto_page'] . ' ' . $page_string; return $page_string; } // // This does exactly what preg_quote() does in PHP 4-ish // If you just need the 1-parameter preg_quote call, then don't bother using this. // function phpbb_preg_quote($str, $delimiter) { $text = preg_quote($str); $text = str_replace($delimiter, '\\' . $delimiter, $text); return $text; } // // Obtain list of naughty words and build preg style replacement arrays for use by the // calling script, note that the vars are passed as references this just makes it easier // to return both sets of arrays // function obtain_word_list(&$orig_word, &$replacement_word) { global $db; // // Define censored word matches // $sql = "SELECT word, replacement FROM " . WORDS_TABLE; if( !($result = $db->sql_query($sql)) ) { mx_message_die(GENERAL_ERROR, 'Could not get censored words from database', '', __LINE__, __FILE__, $sql); } if ( $row = $db->sql_fetchrow($result) ) { do { $orig_word[] = '#\b(' . str_replace('\*', '\w*?', preg_quote($row['word'], '#')) . ')\b#i'; $replacement_word[] = $row['replacement']; } while ( $row = $db->sql_fetchrow($result) ); } return true; } // // This is general replacement for die(), allows templated // output in users (or default) language, etc. // // $msg_code can be one of these constants: // // GENERAL_MESSAGE : Use for any simple text message, eg. results // of an operation, authorisation failures, etc. // // GENERAL ERROR : Use for any error which occurs _AFTER_ the // common.php include and session code, ie. most errors in // pages/functions // // CRITICAL_MESSAGE : Used when basic config data is available but // a session may not exist, eg. banned users // // CRITICAL_ERROR : Used when config data cannot be obtained, eg // no database connection. Should _not_ be used in 99.5% of cases // /* function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '') { global $db, $template, $board_config, $theme, $lang, $phpEx, $phpbb_root_path, $nav_links, $gen_simple_header, $images; global $userdata, $user_ip, $session_length; global $starttime; if(defined('HAS_DIED')) { die("mx_message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?"); } define('HAS_DIED', 1); $sql_store = $sql; // // Get SQL error if we are debugging. Do this as soon as possible to prevent // subsequent queries from overwriting the status of sql_error() // if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) { $sql_error = $db->sql_error(); $debug_text = ''; if ( $sql_error['message'] != '' ) { $debug_text .= '<br /><br />SQL Error : ' . $sql_error['code'] . ' ' . $sql_error['message']; } if ( $sql_store != '' ) { $debug_text .= "<br /><br />$sql_store"; } if ( $err_line != '' && $err_file != '' ) { $debug_text .= '<br /><br />Line : ' . $err_line . '<br />File : ' . basename($err_file); } } if( empty($userdata) && ( $msg_code == GENERAL_MESSAGE || $msg_code == GENERAL_ERROR ) ) { $userdata = session_pagestart($user_ip, PAGE_INDEX); init_userprefs($userdata); } // // If the header hasn't been output then do it // if ( !defined('HEADER_INC') && $msg_code != CRITICAL_ERROR ) { if ( empty($lang) ) { if ( !empty($board_config['default_lang']) ) { include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx); } else { include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx); } } if ( empty($template) || empty($theme) ) { $theme = setup_style($board_config['default_style']); } // // Load the Page Header // if ( !defined('IN_ADMIN') ) { include($phpbb_root_path . 'includes/page_header.'.$phpEx); } else { include($phpbb_root_path . 'admin/page_header_admin.'.$phpEx); } } switch($msg_code) { case GENERAL_MESSAGE: if ( $msg_title == '' ) { $msg_title = $lang['Information']; } break; case CRITICAL_MESSAGE: if ( $msg_title == '' ) { $msg_title = $lang['Critical_Information']; } break; case GENERAL_ERROR: if ( $msg_text == '' ) { $msg_text = $lang['An_error_occured']; } if ( $msg_title == '' ) { $msg_title = $lang['General_Error']; } break; case CRITICAL_ERROR: // // Critical errors mean we cannot rely on _ANY_ DB information being // available so we're going to dump out a simple echo'd statement // include($phpbb_root_path . 'language/lang_english/lang_main.'.$phpEx); if ( $msg_text == '' ) { $msg_text = $lang['A_critical_error']; } if ( $msg_title == '' ) { $msg_title = 'phpBB : <b>' . $lang['Critical_Error'] . '</b>'; } break; } // // Add on DEBUG info if we've enabled debug mode and this is an error. This // prevents debug info being output for general messages should DEBUG be // set TRUE by accident (preventing confusion for the end user!) // if ( DEBUG && ( $msg_code == GENERAL_ERROR || $msg_code == CRITICAL_ERROR ) ) { if ( $debug_text != '' ) { $msg_text = $msg_text . '<br /><br /><b><u>DEBUG MODE</u></b>' . $debug_text; } } if ( $msg_code != CRITICAL_ERROR ) { if ( !empty($lang[$msg_text]) ) { $msg_text = $lang[$msg_text]; } if ( !defined('IN_ADMIN') ) { $template->set_filenames(array( 'message_body' => 'message_body.tpl') ); } else { $template->set_filenames(array( 'message_body' => 'admin/admin_message_body.tpl') ); } $template->assign_vars(array( 'MESSAGE_TITLE' => $msg_title, 'MESSAGE_TEXT' => $msg_text) ); $template->pparse('message_body'); if ( !defined('IN_ADMIN') ) { include($phpbb_root_path . 'includes/page_tail.'.$phpEx); } else { include($phpbb_root_path . 'admin/page_footer_admin.'.$phpEx); } } else { echo "<html>\n<body>\n" . $msg_title . "\n<br /><br />\n" . $msg_text . "</body>\n</html>"; } exit; } */ // // This function is for compatibility with PHP 4.x's realpath() // function. In later versions of PHP, it needs to be called // to do checks with some functions. Older versions of PHP don't // seem to need this, so we'll just return the original value. // dougk_ff7 <October 5, 2002> function phpbb_realpath($path) { global $phpbb_root_path, $phpEx; return (!@function_exists('realpath') || !@realpath($phpbb_root_path . 'includes/functions.'.$phpEx)) ? $path : @realpath($path); } function redirect($url) { global $db, $board_config; if (!empty($db)) { $db->sql_close(); } if (strstr(urldecode($url), "\n") || strstr(urldecode($url), "\r") || strstr(urldecode($url), ';url')) { message_die(GENERAL_ERROR, 'Tried to redirect to potentially insecure url.'); } $server_protocol = ($board_config['cookie_secure']) ? 'https://' : 'http://'; $server_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['server_name'])); $server_port = ($board_config['server_port'] <> 80) ? ':' . trim($board_config['server_port']) : ''; $script_name = preg_replace('#^\/?(.*?)\/?$#', '\1', trim($board_config['script_path'])); $script_name = ($script_name == '') ? $script_name : '/' . $script_name; $url = preg_replace('#^\/?(.*?)\/?$#', '/\1', trim($url)); // Redirect via an HTML form for PITA webservers if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE'))) { header('Refresh: 0; URL=' . $server_protocol . $server_name . $server_port . $script_name . $url); echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><meta http-equiv="refresh" content="0; url=' . $server_protocol . $server_name . $server_port . $script_name . $url . '"><title>Redirect</title></head><body><div align="center">If your browser does not support meta redirection please click <a href="' . $server_protocol . $server_name . $server_port . $script_name . $url . '">HERE</a> to be redirected</div></body></html>'; exit; } // Behave as per HTTP/1.1 spec for others header('Location: ' . $server_protocol . $server_name . $server_port . $script_name . $url); exit; } } ?> |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:04:04
|
Update of /cvsroot/mxbb/mx_kb/kb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12430 Modified Files: kb_common.php Log Message: Updated, sync with phpBB2 standalone usage Index: kb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_kb/kb/kb_common.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** kb_common.php 13 Aug 2006 19:43:07 -0000 1.9 --- kb_common.php 15 Feb 2008 23:03:59 -0000 1.10 *************** *** 82,85 **** --- 82,110 ---- include_once( $module_root_path . 'kb/includes/functions_kb.' . $phpEx ); + // ********************************************************************** + // If phpBB mod read language definition + // ********************************************************************** + + if ( !MXBB_MODULE ) + { + if ( !file_exists( $module_root_path . 'pafiledb/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) + { + include( $module_root_path . 'pafiledb/language/lang_english/lang_main.' . $phpEx ); + } + else + { + include( $module_root_path . 'pafiledb/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); + } + } + + // + // We need XS templates, also when ran as a phpBB2 MOD + // + if ( !MXBB_MODULE ) + { + include_once( $module_root_path . 'pafiledb/includes/template.' . $phpEx ); // Include XS template + $template = new Template($module_root_path . 'templates/'. $theme['template_name']); + } + // =================================================== // Load classes |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:03:28
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12377 Modified Files: linkdb_common.php Log Message: Updated, sync with phpBB2 standalone usage Index: linkdb_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/linkdb_common.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** linkdb_common.php 13 Aug 2006 19:43:51 -0000 1.5 --- linkdb_common.php 15 Feb 2008 23:03:24 -0000 1.6 *************** *** 81,84 **** --- 81,109 ---- include_once( $module_root_path . 'linkdb/includes/functions_linkdb.' . $phpEx ); + // ********************************************************************** + // If phpBB mod read language definition + // ********************************************************************** + + if ( !MXBB_MODULE ) + { + if ( !file_exists( $module_root_path . 'pafiledb/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) + { + include( $module_root_path . 'pafiledb/language/lang_english/lang_main.' . $phpEx ); + } + else + { + include( $module_root_path . 'pafiledb/language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); + } + } + + // + // We need XS templates, also when ran as a phpBB2 MOD + // + if ( !MXBB_MODULE ) + { + include_once( $module_root_path . 'pafiledb/includes/template.' . $phpEx ); // Include XS template + $template = new Template($module_root_path . 'templates/'. $theme['template_name']); + } + // =================================================== // Load classes |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:03:27
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12377/modules Modified Files: link_category.php Log Message: Updated, sync with phpBB2 standalone usage Index: link_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_category.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** link_category.php 15 Feb 2008 22:28:25 -0000 1.15 --- link_category.php 15 Feb 2008 23:03:24 -0000 1.16 *************** *** 130,138 **** } - // - // assign var for naviagation - // - $this->generate_navigation( $cat_id ); - $template->assign_vars( array( 'U_LINK' => mx_append_sid( $this->this_mxurl() ), --- 130,133 ---- *************** *** 144,147 **** --- 139,147 ---- $filelist = false; + // + // assign var for navigation + // + $this->generate_navigation( $cat_id ); + if ( isset( $this->subcat_rowset[$cat_id] ) ) { |
|
From: Jon O. <jon...@us...> - 2008-02-15 23:02:36
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11943 Removed Files: template.php Log Message: removed, since not used for 2.9.x --- template.php DELETED --- |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:45:41
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4146/includes Modified Files: functions_mx.php Log Message: bad globals Index: functions_mx.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_mx.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** functions_mx.php 9 Sep 2007 20:16:18 -0000 1.8 --- functions_mx.php 15 Feb 2008 22:45:37 -0000 1.9 *************** *** 170,174 **** function mx_do_install_upgrade( $sql = '', $main_install = false ) { ! global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config, $HTTP_POST_VARS; $inst_error = false; --- 170,174 ---- function mx_do_install_upgrade( $sql = '', $main_install = false ) { ! global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config; $inst_error = false; |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:45:40
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4146/modules Modified Files: pa_post_comment.php Log Message: bad globals Index: pa_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/modules/pa_post_comment.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** pa_post_comment.php 15 Feb 2008 22:15:15 -0000 1.24 --- pa_post_comment.php 15 Feb 2008 22:45:37 -0000 1.25 *************** *** 145,149 **** $template->assign_block_vars( "tinyMCE_admin", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); --- 145,149 ---- $template->assign_block_vars( "tinyMCE_admin", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $_SERVER['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); *************** *** 153,157 **** $template->assign_block_vars( "tinyMCE", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); --- 153,157 ---- $template->assign_block_vars( "tinyMCE", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $_SERVER['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:45:28
|
Update of /cvsroot/mxbb/mx_pafiledb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4105 Modified Files: dload.php Log Message: bad globals Index: dload.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/dload.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** dload.php 15 Feb 2008 22:14:23 -0000 1.25 --- dload.php 15 Feb 2008 22:45:24 -0000 1.26 *************** *** 118,122 **** // End session management ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if ( empty( $block_id ) ) { --- 118,122 ---- // End session management ! $block_id = ( !empty( $_GET['block_id'] ) ) ? $_GET['block_id'] : $_POST['id']; if ( empty( $block_id ) ) { |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:45:28
|
Update of /cvsroot/mxbb/mx_pafiledb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4105/admin Modified Files: mx_module_defs.php Log Message: bad globals Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/admin/mx_module_defs.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mx_module_defs.php 9 Sep 2007 20:15:46 -0000 1.10 --- mx_module_defs.php 15 Feb 2008 22:45:24 -0000 1.11 *************** *** 61,67 **** function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $mx_blockcp, $mx_root_path, $phpEx; ! $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_id']]; $parameter_opt = ''; --- 61,67 ---- function submit_module_parameters( $parameter_data, $block_id ) { ! global $db, $board_config, $mx_blockcp, $mx_root_path, $phpEx; ! $parameter_value = $_POST[$parameter_data['parameter_id']]; $parameter_opt = ''; *************** *** 152,156 **** { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; ! global $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $userdata, $mx_request_vars; --- 152,156 ---- { global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; ! global $userdata, $mx_request_vars; *************** *** 351,355 **** function _do_insert( $id ) { ! global $template, $lang, $db, $board_config, $theme, $phpEx, $HTTP_GET_VARS, $HTTP_POST_VARS, $userdata, $mx_request_vars, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) --- 351,355 ---- function _do_insert( $id ) { ! global $template, $lang, $db, $board_config, $theme, $phpEx, $userdata, $mx_request_vars, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) *************** *** 363,367 **** // Append mapping // ! $pa_mapping_list[] = array( 'map_cat_id' => intval( $HTTP_POST_VARS['map_cat_id'] ), 'map_dyn_id' => intval( $HTTP_POST_VARS['map_dyn_id'] ) ); $pa_mapping_data = addslashes( serialize( $pa_mapping_list )); --- 363,367 ---- // Append mapping // ! $pa_mapping_list[] = array( 'map_cat_id' => intval( $_POST['map_cat_id'] ), 'map_dyn_id' => intval( $_POST['map_dyn_id'] ) ); $pa_mapping_data = addslashes( serialize( $pa_mapping_list )); *************** *** 390,394 **** function _do_update( $id ) { ! global $template, $lang, $db, $board_config, $theme, $phpEx, $HTTP_GET_VARS, $HTTP_POST_VARS, $userdata, $mx_request_vars, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) --- 390,394 ---- function _do_update( $id ) { ! global $template, $lang, $db, $board_config, $theme, $phpEx, $userdata, $mx_request_vars, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) *************** *** 401,405 **** $pa_dyn_key = 'map_dyn_id_' . $i; ! $pa_mapping_list[$i] = array( 'map_cat_id' => intval( $HTTP_POST_VARS[$pa_cat_key] ), 'map_dyn_id' => intval( $HTTP_POST_VARS[$pa_dyn_key] ) ); } --- 401,405 ---- $pa_dyn_key = 'map_dyn_id_' . $i; ! $pa_mapping_list[$i] = array( 'map_cat_id' => intval( $_POST[$pa_cat_key] ), 'map_dyn_id' => intval( $_POST[$pa_dyn_key] ) ); } *************** *** 427,431 **** function _do_delete( $id ) { ! global $template, $lang, $db, $board_config, $theme, $phpEx, $HTTP_GET_VARS, $HTTP_POST_VARS, $mx_request_vars, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) --- 427,431 ---- function _do_delete( $id ) { ! global $template, $lang, $db, $board_config, $theme, $phpEx, $mx_request_vars, $block_id, $mx_blockcp; if ( !MX_PANEL_DEBUG ) *************** *** 437,441 **** for ( $i = 0; $i < count($pa_mapping_list); $i++ ) { ! if ( $i != intval( $HTTP_GET_VARS['delete_id'] ) ) { $pa_mapping_list_tmp[] = $pa_mapping_list[$i]; --- 437,441 ---- for ( $i = 0; $i < count($pa_mapping_list); $i++ ) { ! if ( $i != intval( $_GET['delete_id'] ) ) { $pa_mapping_list_tmp[] = $pa_mapping_list[$i]; |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:44:59
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3597/includes Modified Files: functions.php functions_mx.php Log Message: bad globals Index: functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions.php,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** functions.php 15 Feb 2008 22:13:02 -0000 1.22 --- functions.php 15 Feb 2008 22:44:55 -0000 1.23 *************** *** 238,245 **** { global $linkdb_config, $lang, $userdata, $images, $action; ! global $linkdb, $HTTP_GET_VARS; global $template, $db, $theme, $gen_simple_header, $starttime, $phpEx, $board_config, $user_ip, $phpbb_root_path; global $admin_level, $level_prior, $tree, $do_gzip_compress; ! global $mx_root_path, $module_root_path, $is_block, $phpEx, $title; // --- 238,245 ---- { global $linkdb_config, $lang, $userdata, $images, $action; ! global $linkdb; global $template, $db, $theme, $gen_simple_header, $starttime, $phpEx, $board_config, $user_ip, $phpbb_root_path; global $admin_level, $level_prior, $tree, $do_gzip_compress; ! global $mx_root_path, $module_root_path, $is_block, $title; // Index: functions_mx.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/includes/functions_mx.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** functions_mx.php 9 Sep 2007 20:09:02 -0000 1.2 --- functions_mx.php 15 Feb 2008 22:44:55 -0000 1.3 *************** *** 166,170 **** function mx_do_install_upgrade( $sql = '', $main_install = false ) { ! global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config, $HTTP_POST_VARS; $inst_error = false; --- 166,170 ---- function mx_do_install_upgrade( $sql = '', $main_install = false ) { ! global $table_prefix, $mx_table_prefix, $userdata, $phpEx, $template, $lang, $db, $board_config; $inst_error = false; |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:44:59
|
Update of /cvsroot/mxbb/mx_linkdb/linkdb/modules In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3597/modules Modified Files: link_post_comment.php Log Message: bad globals Index: link_post_comment.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb/modules/link_post_comment.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** link_post_comment.php 15 Feb 2008 22:28:25 -0000 1.6 --- link_post_comment.php 15 Feb 2008 22:44:55 -0000 1.7 *************** *** 145,149 **** $template->assign_block_vars( "tinyMCE_admin", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); --- 145,149 ---- $template->assign_block_vars( "tinyMCE_admin", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $_SERVER['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); *************** *** 153,157 **** $template->assign_block_vars( "tinyMCE", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $HTTP_SERVER_VARS['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); --- 153,157 ---- $template->assign_block_vars( "tinyMCE", array( 'PATH' => $mx_root_path, ! 'LANG' => !empty($langcode) ? $langcode : $_SERVER['HTTP_ACCEPT_LANGUAGE'], 'TEMPLATE' => $mx_root_path . 'templates/'. $theme['template_name'] . '/' . $theme['head_stylesheet'] )); |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:44:38
|
Update of /cvsroot/mxbb/mx_linkdb/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3547/admin Modified Files: mx_module_defs.php Log Message: bad globals Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/admin/mx_module_defs.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** mx_module_defs.php 13 Aug 2006 19:43:50 -0000 1.2 --- mx_module_defs.php 15 Feb 2008 22:44:32 -0000 1.3 *************** *** 60,66 **** function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $mx_blockcp, $mx_root_path, $phpEx; ! $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_id']]; $parameter_opt = ''; --- 60,66 ---- function submit_module_parameters( $parameter_data, $block_id ) { ! global $db, $board_config, $mx_blockcp, $mx_root_path, $phpEx; ! $parameter_value = $_POST[$parameter_data['parameter_id']]; $parameter_opt = ''; |
|
From: Jon O. <jon...@us...> - 2008-02-15 22:44:37
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv3547 Modified Files: linkdb.php Log Message: bad globals Index: linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** linkdb.php 15 Feb 2008 22:12:22 -0000 1.14 --- linkdb.php 15 Feb 2008 22:44:32 -0000 1.15 *************** *** 118,122 **** // End session management ! $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if ( empty( $block_id ) ) { --- 118,122 ---- // End session management ! $block_id = ( !empty( $_GET['block_id'] ) ) ? $_GET['block_id'] : $_POST['id']; if ( empty( $block_id ) ) { |