Update of /cvsroot/mxbb/mx_sitestats In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22488/modules/mx_sitestats Modified Files: adminstats.php collector.php counter.php fastestusers.php monthlyposts.php monthlytopics.php monthlyusers.php mostintopics.php sitestaff.php topavatars.php topposters.php topposters_tiny.php topreferers.php topsmilies.php topstarters.php toptopics.php topwords.php usersranks.php Log Message: Updated all blocks to use the new $mx_block->get_parameters() api, instead of old red_block_config() function Index: topwords.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topwords.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** topwords.php 15 Oct 2005 22:18:27 -0000 1.1 --- topwords.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: usersranks.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/usersranks.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** usersranks.php 15 Oct 2005 22:18:27 -0000 1.1 --- usersranks.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: topstarters.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topstarters.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** topstarters.php 15 Oct 2005 22:18:27 -0000 1.1 --- topstarters.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: topavatars.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topavatars.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** topavatars.php 15 Oct 2005 22:18:27 -0000 1.1 --- topavatars.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: collector.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/collector.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** collector.php 15 Oct 2005 22:18:27 -0000 1.1 --- collector.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 21,25 **** // Security check... ! if ( !defined( 'IN_PORTAL' ) && !defined( 'IN_PHPBB' ) ) { die( "Hacking attempt !!!" ); --- 21,25 ---- // Security check... ! if ( !defined( 'IN_PORTAL' ) && !defined( 'IN_PHPBB' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 33,39 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; $module_root_path = $module_root_save; --- 33,40 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; $module_root_path = $module_root_save; Index: topsmilies.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topsmilies.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** topsmilies.php 15 Oct 2005 22:18:27 -0000 1.1 --- topsmilies.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: monthlytopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/monthlytopics.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** monthlytopics.php 15 Oct 2005 22:18:27 -0000 1.1 --- monthlytopics.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: topposters_tiny.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topposters_tiny.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** topposters_tiny.php 15 Oct 2005 22:18:27 -0000 1.1 --- topposters_tiny.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 22,26 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 22,26 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 31,37 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 31,38 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: fastestusers.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/fastestusers.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** fastestusers.php 15 Oct 2005 22:18:27 -0000 1.1 --- fastestusers.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: topposters.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topposters.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** topposters.php 15 Oct 2005 22:18:27 -0000 1.1 --- topposters.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: sitestaff.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/sitestaff.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** sitestaff.php 15 Oct 2005 22:18:27 -0000 1.1 --- sitestaff.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,39 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; ! if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: monthlyposts.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/monthlyposts.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** monthlyposts.php 15 Oct 2005 22:18:27 -0000 1.1 --- monthlyposts.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: adminstats.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/adminstats.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** adminstats.php 15 Oct 2005 22:18:27 -0000 1.1 --- adminstats.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: topreferers.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/topreferers.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** topreferers.php 15 Oct 2005 22:18:27 -0000 1.1 --- topreferers.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 22,26 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 22,26 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 31,37 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; // -------------------------------------------------------------------------------- --- 31,38 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; // -------------------------------------------------------------------------------- Index: counter.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/counter.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** counter.php 15 Oct 2005 22:18:27 -0000 1.1 --- counter.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 22,26 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 22,26 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,39 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; ! if ( !isset( $sitestats_counter ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $sitestats_counter ) ) Index: mostintopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/mostintopics.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mostintopics.php 15 Oct 2005 22:18:27 -0000 1.1 --- mostintopics.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: toptopics.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/toptopics.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** toptopics.php 15 Oct 2005 22:18:27 -0000 1.1 --- toptopics.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) Index: monthlyusers.php =================================================================== RCS file: /cvsroot/mxbb/mx_sitestats/monthlyusers.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** monthlyusers.php 15 Oct 2005 22:18:27 -0000 1.1 --- monthlyusers.php 23 Oct 2005 18:52:36 -0000 1.2 *************** *** 23,27 **** // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt !!!" ); --- 23,27 ---- // Block Initialization // -------------------------------------------------------------------------------- ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt !!!" ); *************** *** 32,38 **** include_once( $module_root_path . 'includes/common.' . $phpEx ); ! $block_config = read_block_config( $block_id ); ! ! $title = !empty($lang[$block_config[$block_id]['block_title']]) ? $lang[$block_config[$block_id]['block_title']] : $block_config[$block_id]['block_title']; if ( !isset( $ss_phpbb ) ) --- 32,39 ---- include_once( $module_root_path . 'includes/common.' . $phpEx ); ! // ! // Read Block Settings ! // ! $title = !empty($lang[$mx_block->block_info['block_title']]) ? $lang[$mx_block->block_info['block_title']] : $mx_block->block_info['block_title']; if ( !isset( $ss_phpbb ) ) |