enabled) { $msg->raise("ERROR", "admin", _("This page is restricted to authorized staff")); echo $msg->msg_html_all(); exit(); } $fields = array ( "action" => array ("post", "string", ""), "type" => array ("post", "string", ""), "del_confirm" => array ("post", "string", ""), ); getFields($fields); if($action == "add") { if($quota->addtype($type)) { $msg->raise("INFO", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("added")); } else { $msg->raise("ERROR", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("could not be added")); } include("adm_defquotas.php"); } else if($action == "delete") { if($del_confirm == "y"){ if(!empty($type)) { if($quota->deltype($type)) { $msg->raise("INFO", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("deleted")); } else { $msg->raise("ERROR", "admin", _("Account type"). " \"".htmlentities($type)."\" "._("could not be deleted")); } } include("adm_defquotas.php"); }else{ include("head.php"); ?>