diff --git a/e107_plugins/newforumposts_main/admin_config.php b/e107_plugins/newforumposts_main/admin_config.php index 560109e3c..94a166c42 100644 --- a/e107_plugins/newforumposts_main/admin_config.php +++ b/e107_plugins/newforumposts_main/admin_config.php @@ -6,8 +6,6 @@ * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * - * $URL$ - * $Id$ */ require_once ('../../class2.php'); @@ -21,73 +19,57 @@ require_once (e_HANDLER.'userclass_class.php'); include_lan(e_PLUGIN.'newforumposts_main/languages/'.e_LANGUAGE.'.php'); require_once (e_ADMIN.'auth.php'); -require_once (e_HANDLER.'message_handler.php'); - $frm = e107::getForm(); -$mes = e107::getMessage(); +$mes = e107::getMessage(); if(isset($_POST['updatesettings'])) { - $pref['nfp_display'] = $_POST['nfp_display']; - $pref['nfp_caption'] = $_POST['nfp_caption']; - $pref['nfp_amount'] = $_POST['nfp_amount']; - $pref['nfp_layer'] = vartrue($_POST['nfp_layer']); - $pref['nfp_posts'] = vartrue($_POST['nfp_posts']); - $pref['nfp_layer_height'] = ($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200); + $pref['nfp_display'] = intval($_POST['nfp_display']); + $pref['nfp_caption'] = $tp->toDB($_POST['nfp_caption']); + $pref['nfp_amount'] = intval($_POST['nfp_amount']); + $pref['nfp_layer'] = intval(vartrue($_POST['nfp_layer'])); + $pref['nfp_posts'] = intval(vartrue($_POST['nfp_posts'])); + $pref['nfp_layer_height'] = intval(($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200)); save_prefs(); - //$message = "".NFPM_L13.""; } -/* -if(vartrue($message)) -{ - $ns->tablerender("", "