enabled) { __("This page is restricted to authorized staff"); exit(); } $fields = array ( "delaccount" => array ("request", "string", ""), "newlogin" => array ("post", "string", ""), "newpass" => array ("post", "string", ""), "delip" => array ("request", "string", ""), "newip" => array ("post", "string", ""), "newclass" => array ("post", "string", "32"), ); getFields($fields); if ($delaccount) { // Delete an account if ($dom->del_slave_account($delaccount)) { $error=_("The requested account has been deleted. It is now denied."); } } if ($newlogin) { // Add an account if ($dom->add_slave_account($newlogin,$newpass)) { $error=_("The requested account address has been created. It is now allowed."); unset($newlogin); unset($newpass); } } if ($delip) { // Delete an ip address/class if ($dom->del_slave_ip($delip)) { $error=_("The requested ip address has been deleted. It will be denied in one hour."); } } if ($newip) { // Add an ip address/class if ($dom->add_slave_ip($newip,$newclass)) { $error=_("The requested ip address has been added to the list. It will be allowed in one hour."); unset($newip); unset($newclass); } } include_once("head.php"); if (!empty($error)) { echo "
$error
"; } ?>