exit;
}
if (isset($_GET["quota-destination-list"])) {
    quota_destination_list();
    exit;
}
if (isset($_GET["quota-params-destination"])) {
    quota_destination();
    exit;
}
if (isset($_GET["quota-params-notification"])) {
    quota_notification();
    exit;
}
if (isset($_GET["ID"])) {
    quota_rule();
    exit;
}
if (isset($_GET["explain-ident"])) {
    explain_ident();
    exit;
}
if (isset($_POST["ID"])) {
    quota_rule_save();
    exit;
}
if (isset($_GET["quota-params"])) {
    quota_params_js();
    exit;
}
if (isset($_GET["quota-params-popup"])) {
if(isset($_GET["list-items"])){list_items();exit;}
if(isset($_GET["new-quota-rule"])){new_quota_rule_js();exit;}
if(isset($_GET["get-quota-rule"])){quota_rule_js();exit;}
if(isset($_GET["service-cmds"])){service_cmds_js();exit;}
if(isset($_GET["service-cmds-popup"])){service_cmds_popup();exit;}
if(isset($_GET["service-cmds-perform"])){service_cmds_perform();exit;}
	
if(isset($_POST["EnableDisable"])){EnableDisable();exit;}

if(isset($_GET["ID-TAB"])){quota_tab();exit;}
if(isset($_GET["quota-params-members"])){quota_rule();exit;}
if(isset($_GET["quota-destination-list"])){quota_destination_list();exit;}
if(isset($_GET["quota-params-destination"])){quota_destination();exit;}
if(isset($_GET["quota-params-notification"])){quota_notification();exit;}

if(isset($_GET["ID"])){quota_rule();exit;}
if(isset($_GET["explain-ident"])){explain_ident();exit;}
if(isset($_POST["ID"])){quota_rule_save();exit;}
if(isset($_GET["quota-params"])){quota_params_js();exit;}
if(isset($_GET["quota-params-popup"])){quota_params_popup();exit;}
if(isset($_POST["TEMPLATE"])){quota_params_save();exit;}
if(isset($_POST["delete"])){quota_delete();exit;}
page();

function quota_params_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->javascript_parse_text("{squidquota}::{parameters}");
	echo "YahooWin2('650','$page?quota-params-popup=yes&t={$_GET["t"]}','$title')";	
}