if(isset($_GET["rules-destination-table"])){rules_destination();exit;}
if(isset($_GET["rules-destination-search"])){rules_destination_search();exit;}
if(isset($_GET["rules-destination-js"])){rules_destination_js();exit;}
if(isset($_GET["rules-destination-popup"])){rules_destination_popup();exit;}
if(isset($_GET["rules-destination-form2"])){rules_destination_form2();exit;}
if(isset($_POST["rules-destination-add"])){rules_destination_create();exit;}
if(isset($_POST["rules-destination-edit"])){rules_destination_edit();exit;}
if(isset($_POST["rules-destination-move"])){rules_destination_move();exit;}
if(isset($_POST["rules-destination-delete"])){rules_destination_delete();exit;}

if(isset($_POST["new-rule"])){rules_create();exit;}
if(isset($_POST["rules-move"])){rules_move();exit;}
if(isset($_POST["rulename"])){rewrite_rule_settings_save();exit;}
if(isset($_GET["debug"])){debug_page();exit;}
if(isset($_GET["debug-search"])){debug_search();exit;}
if(isset($_GET["enable-disable-debug-js"])){debug_disable_js();exit;}
if(isset($_POST["ProxyPacDynamicDebug"])){ProxyPacDynamicDebug();exit;}
if(isset($_POST["empty-debug"])){debug_empty();exit;}
if(isset($_GET["download-debug"])){debug_download();exit;}

popup();




function tabs(){
	popup();
}


function help(){
    exit;
}
if (isset($_POST["rulename"])) {
    rewrite_rule_settings_save();
    exit;
}
if (isset($_GET["debug"])) {
    debug_page();
    exit;
}
if (isset($_GET["debug-search"])) {
    debug_search();
    exit;
}
if (isset($_GET["enable-disable-debug-js"])) {
    debug_disable_js();
    exit;
}
if (isset($_POST["ProxyPacDynamicDebug"])) {
    ProxyPacDynamicDebug();
    exit;
}
if (isset($_POST["empty-debug"])) {
    debug_empty();
    exit;
}
if (isset($_GET["download-debug"])) {
    debug_download();
    exit;
}
popup();