|
From: Jon O. <jon...@us...> - 2005-10-23 18:52:21
|
Update of /cvsroot/mxbb/mx_quotations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22417/modules/mx_quotations Modified Files: mx_last_quotations.php mx_quotations.php mx_random_quotation.php Log Message: Updated all blocks to use the new $mx_block->get_parameters() api, instead of old red_block_config() function Index: mx_last_quotations.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/mx_last_quotations.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** mx_last_quotations.php 1 Oct 2005 14:16:59 -0000 1.4 --- mx_last_quotations.php 23 Oct 2005 18:52:11 -0000 1.5 *************** *** 28,40 **** define ( 'IN_PHPBB', true ); ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; // Get all data --- 28,40 ---- define ( 'IN_PHPBB', true ); ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt" ); } ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; // Get all data Index: mx_random_quotation.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/mx_random_quotation.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mx_random_quotation.php 1 Oct 2005 14:16:59 -0000 1.3 --- mx_random_quotation.php 23 Oct 2005 18:52:11 -0000 1.4 *************** *** 24,36 **** define ( 'IN_PHPBB', true ); ! if ( !defined( 'IN_PORTAL' ) ) { die( "Hacking attempt" ); } ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; // Get all data --- 24,36 ---- define ( 'IN_PHPBB', true ); ! if ( !defined( 'IN_PORTAL' ) || !is_object($mx_block) ) { die( "Hacking attempt" ); } ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; // Get all data Index: mx_quotations.php =================================================================== RCS file: /cvsroot/mxbb/mx_quotations/mx_quotations.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** mx_quotations.php 1 Oct 2005 14:16:59 -0000 1.7 --- mx_quotations.php 23 Oct 2005 18:52:11 -0000 1.8 *************** *** 27,37 **** include( $mx_root_path . 'common.' . $phpEx ); ! // Start session management ! $userdata = session_pagestart( $user_ip, PAGE_INDEX ); mx_init_userprefs( $userdata ); ! // End session management $is_block = false; --- 27,38 ---- include( $mx_root_path . 'common.' . $phpEx ); ! // // Start session management ! // $userdata = session_pagestart( $user_ip, PAGE_INDEX ); mx_init_userprefs( $userdata ); ! // // End session management + // $is_block = false; *************** *** 40,53 **** else { ! ! // Read block Configuration ! ! $block_config = read_block_config( $block_id ); ! $title = $block_config[$block_id]['block_title']; $is_block = true; } // Check board language ! if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { --- 41,54 ---- else { ! // ! // Read Block Settings ! // ! $title = $mx_block->block_info['block_title']; $is_block = true; } + // // Check board language ! // if ( !file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { |