enabled) { __("This page is restricted to authorized staff"); exit(); } if($_POST["action"] == "add") { $type = $_POST['type']; $quota->addtype($type); $error=_("Account type"). " \"$type\" "._("added"); } else if($_POST["action"] == "delete") { $quota->deltype($_POST['type']); $error=_("Account type"). " \"$type\" "._("deleted"); } else if($_POST["action"] == "modify") { reset($_POST); $c=array(); foreach($_POST as $key => $val) { if($key == "action") continue; list($type, $q) = explode(":", $key, 2); $c[$type][$q] = $val; } $quota->setdefaults($c); $error=_("Default quotas successfully changed"); } include("adm_panel.php"); exit; ?>