From 7af18d10dc23084ae8390241c2e9951d530248f7 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Tue, 25 Jan 2011 05:20:28 -0500 Subject: archive some more dead packages --- config/dspam/www/dspam-settings-spwd.php | 197 ------------------------------- 1 file changed, 197 deletions(-) delete mode 100644 config/dspam/www/dspam-settings-spwd.php (limited to 'config/dspam/www/dspam-settings-spwd.php') diff --git a/config/dspam/www/dspam-settings-spwd.php b/config/dspam/www/dspam-settings-spwd.php deleted file mode 100644 index 7912b0f6..00000000 --- a/config/dspam/www/dspam-settings-spwd.php +++ /dev/null @@ -1,197 +0,0 @@ - - foo - foo desc - - - bar - bar desc - -*/ - -if (!is_array($config['installedpackages']['dspam']['config'][0]['server-pwd'])) { - $config['installedpackages']['dspam']['config'][0]['server-pwd'] = array(); -} - -$t_spwds = &$config['installedpackages']['dspam']['config'][0]['server-pwd']; - -/* 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_spwds[$id]) { - $pconfig['value'] = $t_spwds[$id]['value']; - $pconfig['descr'] = $t_spwds[$id]['descr']; -} else { - $pconfig['value'] = $_GET['pwdvalue']; - $pconfig['descr'] = $_GET['descr']; -} - -if ($_POST) { - - unset($input_errors); - $pconfig = $_POST; - - /* input validation */ - $reqdfields = explode(" ", "pwdvalue"); - $reqdfieldsn = explode(",", "Server Password Value"); - - do_input_validation($_POST, $reqdfields, $reqdfieldsn, &$input_errors); - - /* check for overlaps */ - foreach ($t_spwds as $spwd) { - if (isset($id) && ($t_spwds[$id]) && ($t_spwds[$id] === $spwd)) { - continue; - } - if ($spwd['value'] == $_POST['pwdvalue']) { - $input_errors[] = gettext("This password value 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) { - $pwd = array(); - $pwd['value'] = $_POST['pwdvalue']; - $pwd['descr'] = $_POST['descr']; - - if (isset($id) && $t_spwds[$id]) - $t_spwds[$id] = $pwd; - else - $t_spwds[] = $pwd; - - 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:
- - - - -- cgit v1.2.3