enabled) { $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff")); echo $msg->msg_html_all(); 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)) { $msg->raise("INFO", "admin", _("The requested account has been deleted. It is now denied.")); } } if ($newlogin) { // Add an account if ($dom->add_slave_account($newlogin,$newpass)) { $msg->raise("INFO", "admin", _("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)) { $msg->raise("INFO", "admin", _("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)) { $msg->raise("INFO", "admin", _("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"); $c=$admin->listPasswordPolicies(); $passwd_classcount = $c['adm']['classcount']; ?>