die();	
}

if(isset($_POST["ProxyPacCacheTime"])){settings_save();exit;}
if(isset($_GET["settings-js"])){settings_js();exit;}
if(isset($_GET["settings-popup"])){settings_popup();exit;}
if(isset($_POST["EmptyCache"])){EmptyCache();exit;}
if(isset($_GET["tabs"])){tabs();exit;}
if(isset($_GET["help"])){help();exit;}

if(isset($_GET["events"])){events();exit;}
if(isset($_GET["events-search"])){events_search();exit;}
if(isset($_GET["events-script"])){events_script_js();exit;}
if(isset($_GET["events-script-popup"])){events_script_popup();exit;}
if(isset($_GET["events-script-tester-js"])){events_script_tester_js();exit;}
if(isset($_GET["events-script-tester-popup"])){events_script_tester_popup();exit;}
if(isset($_POST["TESTER-URL"])){events_script_tester_perform();exit;}


if(isset($_POST["rebuild-tables"])){rebuild_tables();exit;}
if(isset($_GET["rules"])){rules();exit;}
if(isset($_GET["rules-search"])){rules_search();exit;}
if(isset($_GET["rule-js"])){rules_js();exit;}
if(isset($_GET["rules-tabs"])){rules_tabs();exit;}
if(isset($_POST["rule-enable"])){rules_enable();exit;}
if(isset($_POST["rule-delete"])){rules_delete();exit;}


if(isset($_GET["rules-sources"])){rules_sources();exit;}
if(isset($_GET["rules-sources-search"])){rules_sources_search();exit;}
if(isset($_GET["rules-options"])){rules_options();exit;}
    exit;
}
if (isset($_GET["events-script"])) {
    events_script_js();
    exit;
}
if (isset($_GET["events-script-popup"])) {
    events_script_popup();
    exit;
}
if (isset($_GET["events-script-tester-js"])) {
    events_script_tester_js();
    exit;
}
if (isset($_GET["events-script-tester-popup"])) {
    events_script_tester_popup();
    exit;
}
if (isset($_POST["TESTER-URL"])) {
    events_script_tester_perform();
    exit;
}
if (isset($_POST["rebuild-tables"])) {
    rebuild_tables();
    exit;
}
if (isset($_GET["rules"])) {
    rules();
    exit;
}
if (isset($_GET["rules-search"])) {