enabled) { __("This page is restricted to authorized staff"); 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)) { $error=_("Account type"). " \"".htmlentities($type)."\" "._("added"); } else { $error=_("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)) { $error=_("Account type"). " \"".htmlentities($type)."\" "._("deleted"); } else { $error=_("Account type"). " \"".htmlentities($type)."\" "._("could not be deleted"); } } include("adm_defquotas.php"); }else{ include("head.php"); ?>