|
From: Jon O. <jon...@us...> - 2005-10-22 10:51:36
|
Update of /cvsroot/mxbb/core/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14247/modules/mx_textblocks/admin Modified Files: mx_module_defs.php Removed Files: admin_edit.php mx_textblock_edit.php Log Message: massive update, for mxBB 2.8.1 rc1 - most "easy to solve" bugs reported are fixed - optimized adminCP - mod_rewrite - Page IP filter - optimized blockCP - removed old files --- admin_edit.php DELETED --- Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_textblocks/admin/mx_module_defs.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** mx_module_defs.php 1 Oct 2005 14:10:46 -0000 1.7 --- mx_module_defs.php 22 Oct 2005 10:51:03 -0000 1.8 *************** *** 21,28 **** /********************************************************************************\ | Class: mx_module_defs ! | The mx_module_defs object define extra module block parameters, added to the standard core parameters. ! | ! | Usage examples: ! | \********************************************************************************/ --- 21,25 ---- /********************************************************************************\ | Class: mx_module_defs ! | The mx_module_defs object provides additional module block parameters... \********************************************************************************/ *************** *** 58,62 **** function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $html_entities_match, $html_entities_replace, $mx_cache; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_name']]; --- 55,60 ---- function submit_module_parameters( $parameter_data, $block_id ) { ! global $HTTP_POST_VARS, $db, $board_config, $mx_cache, $mx_blockcp, $mx_root_path, $phpEx; ! global $html_entities_match, $html_entities_replace; $parameter_value = $HTTP_POST_VARS[$parameter_data['parameter_name']]; *************** *** 138,142 **** function display_edit_phpBBTextBlock( $block_id, $parameter_id, $parameter_data ) { ! global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $HTTP_POST_VARS; $parameter_value = isset($HTTP_POST_VARS['preview']) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS[$parameter_data['parameter_name']]))) : $parameter_data['parameter_value']; --- 136,141 ---- function display_edit_phpBBTextBlock( $block_id, $parameter_id, $parameter_data ) { ! global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; ! global $HTTP_POST_VARS; $parameter_value = isset($HTTP_POST_VARS['preview']) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS[$parameter_data['parameter_name']]))) : $parameter_data['parameter_value']; *************** *** 164,178 **** $smilies_status = ( $smilies_on ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; - if (file_exists($mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl')) - { - $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl'; - } - else - { - $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/subSilver' . '/admin/mx_module_parameters.tpl'; - } - $template->set_filenames(array( ! 'parameter' => $module_template_file) ); --- 163,168 ---- $smilies_status = ( $smilies_on ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; $template->set_filenames(array( ! 'parameter' => 'admin/mx_module_parameters.tpl') ); *************** *** 253,257 **** function display_edit_CustomizedTextBlock( $block_id, $parameter_id, $parameter_data ) { ! global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $HTTP_POST_VARS; $parameter_value = isset($HTTP_POST_VARS['preview']) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS[$parameter_data['parameter_name']]))) : $parameter_data['parameter_value']; --- 243,248 ---- function display_edit_CustomizedTextBlock( $block_id, $parameter_id, $parameter_data ) { ! global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; ! global $HTTP_POST_VARS; $parameter_value = isset($HTTP_POST_VARS['preview']) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS[$parameter_data['parameter_name']]))) : $parameter_data['parameter_value']; *************** *** 281,295 **** $smilies_status = ( $smilies_on ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; - if (file_exists($mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl')) - { - $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl'; - } - else - { - $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/subSilver' . '/admin/mx_module_parameters.tpl'; - } - $template->set_filenames(array( ! 'parameter' => $module_template_file) ); --- 272,277 ---- $smilies_status = ( $smilies_on ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; $template->set_filenames(array( ! 'parameter' => 'admin/mx_module_parameters.tpl') ); *************** *** 369,373 **** function display_edit_WysiwygTextBlock( $block_id, $parameter_id, $parameter_data ) { ! global $template, $board_config, $db, $theme, $mx_root_path, $lang, $mx_blockcp, $mx_root_path, $HTTP_POST_VARS; $parameter_value = $parameter_data['parameter_value']; --- 351,356 ---- function display_edit_WysiwygTextBlock( $block_id, $parameter_id, $parameter_data ) { ! global $template, $board_config, $db, $theme, $lang, $images, $mx_blockcp, $mx_root_path, $phpEx, $mx_table_prefix, $table_prefix; ! global $HTTP_POST_VARS; $parameter_value = $parameter_data['parameter_value']; *************** *** 380,394 **** $smilies_status = ( false ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; - if (file_exists($mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl')) - { - $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/'. $theme['template_name'] . '/admin/mx_module_parameters.tpl'; - } - else - { - $module_template_file = $mx_root_path . $mx_blockcp->module_root_path . 'templates/subSilver' . '/admin/mx_module_parameters.tpl'; - } - $template->set_filenames(array( ! 'parameter' => $module_template_file) ); --- 363,368 ---- $smilies_status = ( false ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; $template->set_filenames(array( ! 'parameter' => 'admin/mx_module_parameters.tpl') ); --- mx_textblock_edit.php DELETED --- |