enabled) { __("This page is restricted to authorized staff"); exit(); } if($_POST["action"] == "add") { $type = $_POST['type']; if($quota->addtype($type)) { $error=_("Account type"). " \"$type\" "._("added"); } else { $error=_("Account type"). " \"$type\" "._("could not be added"); } include("adm_defquotas.php"); } else if($_POST["action"] == "delete") { if($_POST["del_confirm"] == "y"){ if($_POST['type']) { if($quota->deltype($_POST['type'])) { $error=_("Account type"). " \"$type\" "._("deleted"); } else { $error=_("Account type"). " \"$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"); } ?>