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"); ?>

:

" />   " onclick="document.location='adm_defquotas.php';" />
$val) { if($key == "action") continue; list($type, $q) = explode(":", $key, 2); $c[$type][$q] = abs(floatval($val)); } if($quota->setdefaults($c)) { $error=_("Default quotas successfully changed"); } else { $error=_("Default quotas could not be set."); } include("adm_panel.php"); } ?>