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('Ok', "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('Ok', "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"); ?>

:

" />   " 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)) { $msg->raise('Ok', "admin", _("Default quotas successfully changed")); } else { $msg->raise('Error', "admin", _("Default quotas could not be set.")); } include("adm_panel.php"); } ?>