foo foo desc bar bar desc */ if (!is_array($config['installedpackages']['dspam']['config'][0]['bmta'])) { $config['installedpackages']['dspam']['config'][0]['bmta'] = array(); } $t_bmtas = &$config['installedpackages']['dspam']['config'][0]['bmta']; /* ID is only set if the user wants to edit an existing entry */ $id = $_GET['id']; $sectionid = $_GET['sectionid']; if (isset($_POST['id'])) $id = $_POST['id']; if (isset($_POST['sectionid'])) $sectionid = $_POST['sectionid']; if (isset($id) && $t_bmtas[$id]) { $pconfig['name'] = $t_bmtas[$id]['name']; $pconfig['descr'] = $t_bmtas[$id]['descr']; } else { $pconfig['name'] = $_GET['oname']; $pconfig['descr'] = $_GET['descr']; } if ($_POST) { unset($input_errors); $pconfig = $_POST; /* input validation */ $reqdfields = explode(" ", "oname"); $reqdfieldsn = explode(",", "Broken MTA Option Name"); do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); /* check for overlaps */ foreach ($t_bmtas as $bmta) { if (isset($id) && ($t_bmtas[$id]) && ($t_bmtas[$id] === $bmta)) { continue; } if ($bmta['name'] == $_POST['oname']) { $input_errors[] = gettext("This option name already exists."); break; } } /* if this is an AJAX caller then handle via JSON */ if(isAjax() && is_array($input_errors)) { input_errors2Ajax($input_errors); exit; } if (!$input_errors) { $bmta = array(); $bmta['name'] = $_POST['oname']; $bmta['descr'] = $_POST['descr']; if (isset($id) && $t_bmtas[$id]) $t_bmtas[$id] = $bmta; else $t_bmtas[] = $bmta; write_config(); $retval = 0; config_lock(); $retval = dspam_configure(); config_unlock(); $savemsg = get_std_save_message($retval); isset($sectionid) ? $header = "dspam-settings.php?sectionid={$sectionid}" : $header = "dspam-settings.php"; pfSenseHeader($header); exit; } } /* if ajax is calling, give them an update message */ if(isAjax()) print_info_box_np($savemsg); include("head.inc"); /* put your custom HTML head content here */ /* using some of the $pfSenseHead function calls */ echo $pfSenseHead->getHTML(); ?>

  "> " onclick="history.back()">
getHTML(); ?>
Access denied for: