|
From: Jon O. <jon...@us...> - 2005-12-17 13:10:40
|
Update of /cvsroot/mxbb/core/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20870/modules/mx_textblocks/admin Modified Files: mx_module_defs.php Log Message: further fixes for new parameter field - updated paks Index: mx_module_defs.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_textblocks/admin/mx_module_defs.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** mx_module_defs.php 16 Dec 2005 18:58:45 -0000 1.11 --- mx_module_defs.php 17 Dec 2005 13:10:28 -0000 1.12 *************** *** 75,85 **** break; case 'CustomizedTextBlock': ! $bbcode_on = $parameter_opt['allow_bbcode'] ? true : true; ! $html_on = $parameter_opt['allow_html'] ? true : true; ! $smilies_on = $parameter_opt['allow_smilies'] ? true : true; ! ! // Remove allowed html tags ! $html_entities_match = array(); ! $html_entities_replace = array(); if( $bbcode_on ) --- 75,85 ---- break; case 'CustomizedTextBlock': ! // ! // "Hasty" code to find text format settings. Could be wrong... ! // ! $bbcode_on = isset($HTTP_POST_VARS[$mx_blockcp->block_parameters['allow_bbcode']['parameter_id']]) ? $HTTP_POST_VARS[$mx_blockcp->block_parameters['allow_bbcode']['parameter_id']] == 'TRUE' : $mx_blockcp->block_parameters['allow_bbcode']['parameter_value'] == 'TRUE'; ! $html_on = isset($HTTP_POST_VARS[$mx_blockcp->block_parameters['allow_html']['parameter_id']]) ? $HTTP_POST_VARS[$mx_blockcp->block_parameters['allow_html']['parameter_id']] == 'TRUE' : $mx_blockcp->block_parameters['allow_html']['parameter_value'] == 'TRUE'; ! $smilies_on = isset($HTTP_POST_VARS[$mx_blockcp->block_parameters['allow_smilies']['parameter_id']]) ? $HTTP_POST_VARS[$mx_blockcp->block_parameters['allow_smilies']['parameter_id']] == 'TRUE' : $mx_blockcp->block_parameters['allow_smilies']['parameter_value'] == 'TRUE'; ! $board_config['allow_html_tags'] = isset($HTTP_POST_VARS[$mx_blockcp->block_parameters['html_tags']['parameter_id']]) ? $HTTP_POST_VARS[$mx_blockcp->block_parameters['html_tags']['parameter_id']] : $mx_blockcp->block_parameters['html_tags']['parameter_value']; if( $bbcode_on ) |