|
From: Jon O. <jon...@us...> - 2005-05-26 21:54:21
|
Update of /cvsroot/mxbb/core27x/modules/mx_textblocks/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/core27x/modules/mx_textblocks/admin Modified Files: admin_edit.php mx_textblock_edit.php Log Message: massive commit, for 2.7.7 http://www.mx-system.com/forum/viewtopic.php?t=6902 Index: admin_edit.php =================================================================== RCS file: /cvsroot/mxbb/core27x/modules/mx_textblocks/admin/admin_edit.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_edit.php 6 May 2005 06:48:10 -0000 1.1 --- admin_edit.php 26 May 2005 21:54:09 -0000 1.2 *************** *** 1,32 **** <?php ! /*************************************************************************** ! * mx_block_edit.php ! * ------------------- ! * begin : December, 2002 ! * copyright : (C) 2002 MX-System ! * email : su...@mx... ! * ! * $Id$ ! * ! ***************************************************************************/ $no_page_header = TRUE; ! if( !empty($setmodules) ) { ! return; } ! define('IN_PORTAL', 1); ! $mx_root_path = '../../../'; // ! // Security and page header // ! require( $mx_root_path . 'admin/pagestart.php'); ! mx_message_die(GENERAL_MESSAGE, 'Sorry, but this block is NOT designed to be configured in the AdminCP <br /> - please use the EDIT feature in normal portal mode instead.'); ! include_once($mx_root_path . 'admin/page_footer_admin.'.$phpEx); ?> \ No newline at end of file --- 1,619 ---- <?php ! /** ------------------------------------------------------------------------ ! * subject : mx-portal, CMS & portal ! * begin : june, 2002 ! * copyright : (C) 2002-2005 MX-System ! * email : jon...@ho... ! * project site : www.mx-system.com ! * ! * description : ! * ------------------------------------------------------------------------- ! * $Id$ ! */ ! ! /** ! * 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. ! */ ! ! define('IN_PORTAL', 1); ! $mx_root_path = './../../../'; ! $module_root_path = './../'; $no_page_header = TRUE; + include_once($mx_root_path . 'extension.inc'); + include_once($mx_root_path . 'common.'.$phpEx); + include_once($phpbb_root_path . 'includes/functions_post.'.$phpEx); ! // ! // Start session management ! // ! $userdata = session_pagestart($user_ip, PAGE_INDEX); ! mx_init_userprefs($userdata); ! // ! // End session management ! // ! ! // ! // Mode setting ! // ! if( isset($HTTP_POST_VARS['mode']) || isset($HTTP_GET_VARS['mode']) ) { ! $mode = ( isset($HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode']; ! $mode = htmlspecialchars($mode); ! } ! else ! { ! $mode = ''; } ! // ! // Initial vars ! // ! $block_id = isset($HTTP_GET_VARS['block_id']) ? intval($HTTP_GET_VARS['block_id']) : intval($HTTP_POST_VARS['block_id']); ! $portalpage = isset($HTTP_GET_VARS['portalpage']) ? intval($HTTP_GET_VARS['portalpage'] ) : intval($HTTP_POST_VARS['portalpage']); ! $block_mode = isset($HTTP_GET_VARS['block_mode']) ? $HTTP_GET_VARS['block_mode'] : $HTTP_POST_VARS['block_mode']; ! ! ! $s_hidden_fields = '<input type="hidden" name="sid" value="' . $userdata['session_id'] . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="block_id" value="' . $block_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="portalpage" value="' . $portalpage . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="sub_id" value="' . $sub_id . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="u" value="' . $blog_u . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="blog_mode" value="' . $blog_mode . '" />'; // ! // Setup config parameters // ! $block_config = read_block_config( $block_id ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if( !file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) ! { ! include($module_root_path . 'language/lang_english/lang_main.' . $phpEx); ! } ! else ! { ! include($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! } ! // ! // Parameters ! // ! $submit = ( isset($HTTP_POST_VARS['post']) ) ? true : false; ! $cancel = ( isset($HTTP_POST_VARS['cancel']) ) ? true : false; ! $preview = ( isset($HTTP_POST_VARS['preview']) ) ? true : false; ! $refresh = $preview || $submit_search; ! ! // ! // Cancel ! // ! if( $cancel ) ! { ! $header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: '; ! header($header_location . append_sid(PORTAL_URL . "index.$phpEx?page=" . $portalpage, true)); ! exit; ! } ! ! $error = false; ! ! // ! // Define all config data ! // ! ! // ! // Main parameters ! // ! if( isset($block_config[$block_id]['Html']['parameter_value']) ) ! { ! // ! // Html Textblock ! // ! $block_text_par = 'Html'; ! $mode = 'edithtml'; ! $bbcode_on = false; ! $html_on = true; ! $smilies_on = false; ! ! $html_entities_match = array(); ! $html_entities_replace = array(); ! ! // ! // This switch is for enabling the wysiwyg html editor addon "tiny mce". to disable this feature ! // either remove this section or delete the modules/tinymce folder ! // ! if ( file_exists( $mx_root_path . 'modules/tinymce/jscripts/tiny_mce/blank.htm' ) ) ! { ! $template->assign_block_vars( "tinyMCE", array() ); ! } ! ! } ! else if( isset($block_config[$block_id]['Text']['parameter_value']) ) ! { ! // ! // Multi, phpBB, Blog Textblock ! // ! $block_text_par = isset( $block_config[$block_id]['Blog']['parameter_value'] ) ? "Blog" : "Text"; ! $mode = isset( $block_config[$block_id]['Blog']['parameter_value'] ) ? "editblog" : "edit"; ! ! if ($block_mode == 'bbcode') ! { ! $bbcode_on = true; ! $html_on = false; ! $smilies_on = true; ! } ! else ! { ! $bbcode_on = $board_config['allow_bbcode'] ? true : false; ! $html_on = $board_config['allow_html'] ? true : false; ! $smilies_on = $board_config['allow_smilies'] ? true : false; ! } ! } ! else ! { ! $block_text_par = ''; ! $mode = 'edit'; ! } ! ! // ! // Main parameters ! // ! $block_title_par = 'block_title'; ! $block_desc_par = 'block_desc'; ! ! // ! // Style parameters ! // ! $block_style_par = 'block_style'; ! $text_style_par = 'text_style'; ! $title_style_par = 'title_style'; ! ! $text_style_options = array(); ! $text_style_options = array('none', 'gen', 'gensmall', 'genmed', 'genlarge', 'postbody'); ! ! $new_vars = array(); ! $new_vars = array($block_text_par, $block_style_par, $text_style_par, $title_style_par); ! ! $new = array(); ! ! // ! // Extract info - main loop ! // ! for( $j = 0; $j < count( $new_vars ); $j++ ) ! { ! $new[$new_vars[$j]] = ( isset($HTTP_POST_VARS[$new_vars[$j]]) ) ? $HTTP_POST_VARS[$new_vars[$j]] : $block_config[$block_id][$new_vars[$j]]['parameter_value']; ! $parameter_id = $block_config[$block_id][$new_vars[$j]]['parameter_id']; ! ! if( $submit ) ! { ! if( empty($new[$new_vars[$j]]) || ( $new_vars[$j] == $blog_id_par && $sub_id > 0 ) ) ! { ! $error = true; ! } ! else ! { ! if( $new_vars[$j] == $block_text_par ) ! { ! if( $bbcode_on ) ! { ! $bbcode_uid = make_bbcode_uid(); ! } ! //Format the input: ! $new[$new_vars[$j]] = prepare_message(trim($new[$new_vars[$j]]), $html_on, $bbcode_on, $smilies_on, $bbcode_uid); ! } ! ! if( $block_config[$block_id][$new_vars[$j]]['sub_id'] == $sub_id ) ! { ! // ! // Note: is str_replace really needed here ?? ! // ! $sql = "UPDATE " . BLOCK_SYSTEM_PARAMETER_TABLE . " ! SET parameter_value = '" . str_replace("\'", "''", $new[$new_vars[$j]]) . "', ! bbcode_uid = '$bbcode_uid' ! WHERE block_id = '$block_id' ! AND parameter_id = '$parameter_id'"; ! ! if( !($db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, "Could not update textblock information.", "", __LINE__, __FILE__, $sql); ! } ! ! } ! else ! { ! $sql = "INSERT INTO " . BLOCK_SYSTEM_PARAMETER_TABLE . "(block_id, parameter_id, parameter_value, bbcode_uid) ! VALUES('$block_id','$parameter_id','" . str_replace("\'", "''", $new[$new_vars[$j]]) . "','$bbcode_uid')"; ! if( !($db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, 'Couldnt insert comments', '', __LINE__, __FILE__, $sql); ! } ! } ! ! } ! } ! } ! ! // ! // For title, cache and submit ! // ! if( $submit ) ! { ! if( $sub_id == 0 ) ! { ! $block_title = ( isset($HTTP_POST_VARS['block_title']) ) ? htmlspecialchars(trim($HTTP_POST_VARS['block_title'])) : $block_config[$block_id]['block_title']; ! $block_desc = htmlspecialchars(trim($HTTP_POST_VARS['block_desc'])); ! ! $sql = "UPDATE " . BLOCK_TABLE . " ! SET block_title = '" . str_replace("\'", "''", $block_title) . "', ! block_desc = '" . str_replace("\'", "''", $block_desc) . "' ! WHERE block_id = $block_id"; ! ! if( !($result = $db->sql_query($sql, BEGIN_TRANSACTION)) ) ! { ! mx_message_die(GENERAL_ERROR, "Could not update block title information.", "", __LINE__, __FILE__, $sql); ! } ! } ! ! // ! // Update cache ! // ! update_session_cache($block_id); ! ! $template->assign_vars(array( ! 'META' => '<meta http-equiv="refresh" content="3;url=' . append_sid(PORTAL_URL . "index.$phpEx?page=" . $portalpage) . '">') ! ); ! ! if( !empty($portalpage) ) ! { ! $page_title = $lang['Block_admin']; ! $blog_return = $blog_u > 0 ? "&u=" . $blog_u : ( $sub_id > 0 ? "&g=" . $sub_id : '' ); ! $msg = $lang['Block_Config_updated'] . '<br /><br />' . sprintf( $lang['Click_return_index'], '<a href="' . append_sid(PORTAL_URL . "index.$phpEx?page=" . $portalpage . $blog_return) . '">', '</a>'); ! } ! else ! { ! $msg = $lang['Block_Config_updated'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid(PORTAL_URL . "admin/admin_mx_block.php") . '">', '</a>'); ! } ! mx_message_die(GENERAL_MESSAGE, $msg); ! } ! ! // ! // Main ------------------------------------- ! // ! ! // ! // First (re)declare basic variables ! // ! $block_title = ( isset($HTTP_POST_VARS[$block_title_par]) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS[$block_title_par]))) : $block_config[$block_id][$block_title_par]; ! $block_desc = ( isset($HTTP_POST_VARS[$block_desc_par]) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS[$block_desc_par]))) : $block_config[$block_id][$block_desc_par]; ! $block_text = ( isset($HTTP_POST_VARS[$block_text_par]) ) ? htmlspecialchars(trim(stripslashes($HTTP_POST_VARS[$block_text_par]))) : $block_config[$block_id][$block_text_par]['parameter_value']; ! ! $blog_id = trim(stripslashes($new[$blog_id_par])); ! ! // ! // Style parameters ! // ! $block_style_yes = ( $new[$block_style_par] == 'TRUE' ) ? 'checked="checked"' : ''; ! $block_style_no = ( !( $new[$block_style_par] == 'TRUE' ) ) ? 'checked="checked"' : ''; ! ! $text_style_list = '<select name="text_style">'; ! for( $j = 0; $j < count($text_style_options); $j++ ) ! { ! $selected = ( $new[$text_style_par] == $text_style_options[$j] ) ? ' selected="selected"' : ''; ! $text_style_list .= '<option value="' . $text_style_options[$j] . '"' . $selected . '>' . $text_style_options[$j] . "</option>\n"; ! } ! $text_style_list .= '</select>'; ! ! $text_style_yes = ( $new[$text_style_par] == 'TRUE' ) ? 'checked="checked"' : ''; ! $text_style_no = ( !( $new[$text_style_par] == 'TRUE' ) ) ? 'checked="checked"' : ''; ! ! $title_style_yes = ( $new[$title_style_par] == 'TRUE' ) ? 'checked="checked"' : ''; ! $title_style_no = ( !( $new[$title_style_par] == 'TRUE' ) ) ? 'checked="checked"' : ''; ! ! ! // ! // Main parameters ! // ! $show_block = ( isset($HTTP_POST_VARS[$show_block_par]) ) ? intval($HTTP_POST_VARS[$show_block_par]) : $block_config[$block_id][$show_block_par]['parameter_value']; ! $show_title = ( isset($HTTP_POST_VARS[$show_title_par]) ) ? intval($HTTP_POST_VARS[$show_title_par]) : $block_config[$block_id][$show_title_par]['parameter_value']; ! $show_stats = ( isset($HTTP_POST_VARS[$show_stats_par]) ) ? intval($HTTP_POST_VARS[$show_stats_par]) : $block_config[$block_id][$show_stats_par]['parameter_value']; ! ! $show_title_yes = ( $show_title == 1 ) ? 'checked="checked"' : ''; ! $show_title_no = ( $show_title == 0 ) ? 'checked="checked"' : ''; ! ! $show_block_yes = ( $show_block == 1 ) ? 'checked="checked"' : ''; ! $show_block_no = ( $show_block == 0 ) ? 'checked="checked"' : ''; ! ! $show_stats_yes = ( $show_stats == 1 ) ? 'checked="checked"' : ''; ! $show_stats_no = ( $show_stats == 0 ) ? 'checked="checked"' : ''; ! ! // ! // Start output, first preview, then errors then post form ! // ! $page_title = $block_title; ! ! $template->assign_block_vars('switch_view', array()); ! ! if( !empty($portalpage) ) ! { ! $page_title = $lang['Block_admin']; ! include_once($mx_root_path . 'includes/page_header.' . $phpEx); ! } ! else ! { ! include_once($mx_root_path . 'admin/page_header_admin.' . $phpEx); ! } ! ! // -------------------------------------------------------- ! // Previews Layout ! // -------------------------------------------------------- ! if( $preview && !$error ) ! { ! $preview_title = $block_title; ! $preview_text = $block_text; ! ! $orig_word = array(); ! $replacement_word = array(); ! obtain_word_list($orig_word, $replacement_word); ! ! $bbcode_uid = ( $bbcode_on ) ? make_bbcode_uid() : ''; ! $preview_text = stripslashes(prepare_message(addslashes(unprepare_message($preview_text)), $html_on, $bbcode_on, $smilies_on, $bbcode_uid)); ! ! if( $bbcode_on ) ! { ! $preview_text = bbencode_second_pass($preview_text, $bbcode_uid); ! } ! ! if( count($orig_word) ) ! { ! $preview_title = preg_replace($orig_word, $replacement_word, $preview_title); ! $preview_text = preg_replace($orig_word, $replacement_word, $preview_text); ! } ! ! if( $smilies_on ) ! { ! $preview_text = mx_smilies_pass($preview_text); ! } ! ! $preview_text = make_clickable($preview_text); ! ! $preview_text = str_replace("\n", '<br />', $preview_text); ! ! $s_hidden_fields .= '<input type="hidden" name="mode" value="' . $mode . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="portalpage" value="' . $portalpage . '" />'; ! $s_hidden_fields .= '<input type="hidden" name="sub_id" value="' . $sub_id . '" />'; ! ! $template->set_filenames(array( ! 'preview' => 'mx_textblock_preview.tpl') ! ); ! ! $template->assign_vars(array( ! 'BLOCK_TITLE' => $preview_title, ! 'BLOCK_INFO' => $preview_text, ! ! 'S_HIDDEN_FIELDS' => $s_hidden_fields, ! ! 'L_BLOCK_TITLE' => $lang['Block_Title'], ! 'L_PREVIEW' => $lang['Preview'] ! )); ! ! $template->assign_var_from_handle('POST_PREVIEW_BOX', 'preview'); ! } ! else ! { ! $bbcode_uid = $block_config[$block_id][$block_text_par]['bbcode_uid']; ! ! if( $bbcode_uid != '' ) ! { ! $block_text = preg_replace('/\:(([a-z0-9]:)?)' . $bbcode_uid . '/s', '', $block_text); ! } ! ! $block_text = str_replace('<', '<', $block_text); ! $block_text = str_replace('>', '>', $block_text); ! $block_text = str_replace('<br />', "\n", $block_text); ! } ! ! // -------------------------------------------------------- ! // Default Layout ! // -------------------------------------------------------- ! $template->set_filenames(array( ! 'body' => ( $mode == 'editblog' ? 'mx_textblock_editblog.tpl' : 'mx_textblock_edit.tpl' )) ! ); ! ! // ! // HTML, BBCode & Smilies toggle selection ! // ! $html_status = ( $html_on ) ? $lang['HTML_is_ON'] : $lang['HTML_is_OFF']; ! $bbcode_status = ( $bbcode_on ) ? $lang['BBCode_is_ON'] : $lang['BBCode_is_OFF']; ! $smilies_status = ( $smilies_on ) ? $lang['Smilies_are_ON'] : $lang['Smilies_are_OFF']; ! ! // ! // Send smilies to template ! // ! if( $smilies_on ) ! { ! mx_generate_smilies('inline', PAGE_INDEX); ! } ! ! if( $mode == 'edit' ) ! { ! $POST_ACTION = $module_root_path . "admin/mx_textblock_edit.$phpEx?mode=edit"; ! } ! elseif( $mode == 'edithtml' ) ! { ! $POST_ACTION = $module_root_path . "admin/mx_textblock_edit.$phpEx?mode=edithtml"; ! } ! elseif( $mode == 'editblog' ) ! { ! $POST_ACTION = $module_root_path . "admin/mx_textblock_edit.$phpEx?mode=editblog"; ! } ! else ! { ! $POST_ACTION = $module_root_path . "admin/mx_textblock_edit.$phpEx"; ! } ! ! if( $bbcode_on ) ! { ! $template->assign_block_vars('switch_bbcodes', array()); ! } ! ! if( $sub_id == 0 ) ! { ! $template->assign_block_vars('titles_row', array()); ! } ! ! // ! // For Multi block ! // ! if( !empty($new[$text_style_par]) ) ! { ! $template->assign_block_vars('switch_text_style', array()); ! $template->assign_block_vars('switch_block_style', array()); ! $template->assign_block_vars('switch_title_style', array()); ! } ! ! $template->assign_vars(array( ! 'L_TITLE' => $lang['Block_admin'], ! 'L_EXPLAIN' => $lang['Block_admin_explain'], ! //'BLOCK_TITLE' => $block_title, ! ! 'HTML_STATUS' => $html_status, ! 'BBCODE_STATUS' => $bbcode_status, ! 'SMILIES_STATUS' => $smilies_status, ! ! 'BLOCK_TEXT_NAME' => $block_text_par, ! ! 'L_BLOCK_STYLE' => $lang['Block_Style'], ! 'L_TEXT_STYLE' => $lang['Text_Style'], ! 'L_TITLE_STYLE' => $lang['Title_Style'], ! ! 'L_ALLOW_SMILIES' => $lang['Allow_smilies'], ! 'L_ALLOW_HTML' => $lang['Allow_HTML'], ! 'L_ALLOW_BBCODE' => $lang['Allow_BBCode'], ! 'L_HTML_TAGS' => $lang['Allowed_tags'], ! ! 'L_YES' => $lang['Yes'], ! 'L_NO' => $lang['No'], ! ! 'L_BLOCK_STYLE_EXPLAIN' => $lang['Block_Style_Explain'], ! 'L_TEXT_STYLE_EXPLAIN' => $lang['Text_Style_Explain'], ! 'L_TITLE_STYLE_EXPLAIN' => $lang['Title_Style_Explain'], ! ! 'L_BLOCK_TITLE' => $lang['Block_Title'], ! 'L_BLOCK_INFO' => $lang['Block_Info'], ! 'L_OPTIONS' => $lang['Options'], ! 'L_PREVIEW' => $lang['Preview'], ! 'L_SUBMIT' => $lang['Submit'], ! 'L_CANCEL' => $lang['Cancel'], ! 'L_DISABLE_HTML' => $lang['Disable_HTML_pm'], ! 'L_DISABLE_BBCODE' => $lang['Disable_BBCode_pm'], ! 'L_DISABLE_SMILIES' => $lang['Disable_Smilies_pm'], ! 'L_ATTACH_SIGNATURE' => $lang['Attach_signature'], ! ! 'L_BLOG_ID' => $lang['Blog_id'], ! 'BLOG_ID' => $blog_id, ! ! 'L_BBCODE_B_HELP' => $lang['bbcode_b_help'], ! 'L_BBCODE_I_HELP' => $lang['bbcode_i_help'], ! 'L_BBCODE_U_HELP' => $lang['bbcode_u_help'], ! 'L_BBCODE_Q_HELP' => $lang['bbcode_q_help'], ! 'L_BBCODE_C_HELP' => $lang['bbcode_c_help'], ! 'L_BBCODE_L_HELP' => $lang['bbcode_l_help'], ! 'L_BBCODE_O_HELP' => $lang['bbcode_o_help'], ! 'L_BBCODE_P_HELP' => $lang['bbcode_p_help'], ! 'L_BBCODE_W_HELP' => $lang['bbcode_w_help'], ! 'L_BBCODE_A_HELP' => $lang['bbcode_a_help'], ! 'L_BBCODE_S_HELP' => $lang['bbcode_s_help'], ! 'L_BBCODE_F_HELP' => $lang['bbcode_f_help'], ! 'L_EMPTY_MESSAGE' => $lang['Empty_message'], ! ! 'L_FONT_COLOR' => $lang['Font_color'], ! 'L_COLOR_DEFAULT' => $lang['color_default'], ! 'L_COLOR_DARK_RED' => $lang['color_dark_red'], ! 'L_COLOR_RED' => $lang['color_red'], ! 'L_COLOR_ORANGE' => $lang['color_orange'], ! 'L_COLOR_BROWN' => $lang['color_brown'], ! 'L_COLOR_YELLOW' => $lang['color_yellow'], ! 'L_COLOR_GREEN' => $lang['color_green'], ! 'L_COLOR_OLIVE' => $lang['color_olive'], ! 'L_COLOR_CYAN' => $lang['color_cyan'], ! 'L_COLOR_BLUE' => $lang['color_blue'], ! 'L_COLOR_DARK_BLUE' => $lang['color_dark_blue'], ! 'L_COLOR_INDIGO' => $lang['color_indigo'], ! 'L_COLOR_VIOLET' => $lang['color_violet'], ! 'L_COLOR_WHITE' => $lang['color_white'], ! 'L_COLOR_BLACK' => $lang['color_black'], ! ! 'L_FONT_SIZE' => $lang['Font_size'], ! 'L_FONT_TINY' => $lang['font_tiny'], ! 'L_FONT_SMALL' => $lang['font_small'], ! 'L_FONT_NORMAL' => $lang['font_normal'], ! 'L_FONT_LARGE' => $lang['font_large'], ! 'L_FONT_HUGE' => $lang['font_huge'], ! ! 'L_BBCODE_CLOSE_TAGS' => $lang['Close_Tags'], ! 'L_STYLES_TIP' => $lang['Styles_tip'], ! ! 'S_HTML_CHECKED' => ( !$html_on ) ? ' checked="checked"' : '', ! 'S_BBCODE_CHECKED' => ( !$bbcode_on ) ? ' checked="checked"' : '', ! 'S_SMILIES_CHECKED' => ( !$smilies_on ) ? ' checked="checked"' : '', ! 'S_HIDDEN_FORM_FIELDS' => $s_hidden_fields, ! 'S_POST_ACTION' => append_sid( "$POST_ACTION" ), ! ! 'S_BLOCK_STYLE_YES' => $block_style_yes, ! 'S_BLOCK_STYLE_NO' => $block_style_no, ! ! 'S_TEXT_STYLE' => $text_style_list, ! ! 'S_TITLE_STYLE_YES' => $title_style_yes, ! 'S_TITLE_STYLE_NO' => $title_style_no, ! ! 'S_ALLOW_BBCODE_YES' => $allow_bbcode_yes, ! 'S_ALLOW_BBCODE_NO' => $allow_bbcode_no, ! ! 'S_ALLOW_HTML_YES' => $allow_html_yes, ! 'S_ALLOW_HTML_NO' => $allow_html_no, ! ! 'S_ALLOW_SMILIES_YES' => $allow_smilies_yes, ! 'S_ALLOW_SMILIES_NO' => $allow_smilies_no, ! ! 'S_HTML_TAGS' => $textblock_allowed_html_tags, ! ! 'L_BLOCK_TITLE' => $lang['Block_title'], ! 'L_BLOCK_DESC' => $lang['Block_desc'], ! 'L_SHOW_BLOCK' => $lang['Show_block'], ! 'L_SHOW_TITLE' => $lang['Show_title'], ! 'L_SHOW_STATS' => $lang['Show_stats'], ! ! 'E_BLOCK_TITLE' => $block_title, ! 'E_BLOCK_DESC' => $block_desc, ! 'BLOCK_INFO' => $block_text, ! ! 'S_SHOW_BLOCK_YES' => $show_block_yes, ! 'S_SHOW_BLOCK_NO' => $show_block_no, ! ! 'S_SHOW_TITLE_YES' => $show_title_yes, ! 'S_SHOW_TITLE_NO' => $show_title_no, ! ! 'S_SHOW_STATS_YES' => $show_stats_yes, ! 'S_SHOW_STATS_NO' => $show_stats_no, ! ! 'U_PHPBB_ROOT_PATH' => PHPBB_URL ! )); ! ! $template->pparse('body'); ! ! if( !empty($portalpage) ) ! { ! $page_title = $lang['Block_admin']; ! include($mx_root_path . 'includes/page_tail.' . $phpEx); ! } ! else ! { ! include_once($mx_root_path . 'admin/page_footer_admin.' . $phpEx); ! } ?> \ No newline at end of file Index: mx_textblock_edit.php =================================================================== RCS file: /cvsroot/mxbb/core27x/modules/mx_textblocks/admin/mx_textblock_edit.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_textblock_edit.php 6 May 2005 06:48:10 -0000 1.1 --- mx_textblock_edit.php 26 May 2005 21:54:09 -0000 1.2 *************** *** 1,18 **** <?php ! /*************************************************************************** ! * mx_textblocks_edit.php ! * ------------------- ! * begin : Monday, Mar 31, 2003 ! * copyright : (C) 2001 The phpBB Group ! * email : su...@ph... ! * ! * $Id$ ! * [...1089 lines suppressed...] ! 'S_SHOW_STATS_YES' => $show_stats_yes, ! 'S_SHOW_STATS_NO' => $show_stats_no, ! 'U_PHPBB_ROOT_PATH' => PHPBB_URL ! )); ! ! $template->pparse('body'); ! ! if( !empty($portalpage) ) ! { ! $page_title = $lang['Block_admin']; ! include($mx_root_path . 'includes/page_tail.' . $phpEx); ! } ! else ! { ! include_once($mx_root_path . 'admin/page_footer_admin.' . $phpEx); ! } ?> \ No newline at end of file |