} if (stristr($_POST['news_normal_display_width'], '%')) { $buffer = substr($_POST['news_normal_display_width'], 0, strlen($_POST['news_normal_display_width']) - 1); if (!is_numeric($buffer) || $buffer > 100) { $_POST['news_normal_display_width'] = NEWS_DISPLAY_WIDTH; } } else { if (!is_numeric($_POST['news_normal_display_width'])) { $_POST['news_normal_display_width'] = NEWS_DISPLAY_WIDTH; } } if (!is_numeric($_POST['news_normal_preview_maxlen'])) { $_POST['news_normal_preview_maxlen'] = NEWS_PREVIEW_MAXLEN; } # Save the configuration $glob_obj->saveConfigArray($_POST, $filter, $numeric, '', $addslash); # Loop back to self to get the newly stored values header("location:{$thisfile}" . URL_REDIRECT_APPEND . "&save_ok=1"); exit; # Else get current global data } else { $glob_obj->getConfig('news_%'); } # Start Smarty templating here /** * LOAD Smarty */ # Note: it is advisable to load this after the inc_front_chain_lang.php so # that the smarty script can use the user configured template theme require_once $root_path . 'gui/smarty_template/smarty_care.class.php'; $smarty = new smarty_care('system_admin');