diff --git a/bureau/admin/adm_variables.php b/bureau/admin/adm_variables.php index 7559e5cb..9e40812a 100644 --- a/bureau/admin/adm_variables.php +++ b/bureau/admin/adm_variables.php @@ -33,11 +33,13 @@ if (!$admin->enabled) { __("This page is restricted to authorized staff"); exit(); } -$fields = array ( - "member_id" => array ("post", "integer", null), - "fqdn_id" => array ("post", "integer", null), -); -getFields($fields); + +$conf = variable_init(); +foreach ($conf as $name => $val) { + if (isset($GLOBALS['_POST'][$name])) { + variable_set($name, $GLOBALS['_POST'][$name]); + } +} include_once ("head.php"); @@ -50,110 +52,20 @@ include_once ("head.php");
-