if(isset($_GET["rules-sources-order-js"])){rules_sources_link_order_js();exit;}
if(isset($_POST["rules-sources-order"])){rules_sources_link_order();exit;}
if(isset($_GET["rules-whitelisted"])){rules_whitelisted();exit;}
if(isset($_GET["rules-whitelisted-search"])){rules_whitelisted_search();exit;}
if(isset($_POST["rules-whitelisted-link"])){rules_whitelisted_link();exit;}
if(isset($_POST["rules-whitelisted-unlink"])){rules_whitelisted_unlink();exit;}
if(isset($_POST["rules-whitelisted-negation"])){rules_whitelisted_negation();exit;}


if(isset($_GET["rules-proxies"])){rules_proxies();exit;}
if(isset($_GET["rules-proxies-search"])){rules_proxies_search();exit;}
if(isset($_GET["rules-proxies-js"])){rules_proxies_js();exit;}
if(isset($_GET["rules-proxies-popup"])){rules_proxies_popup();exit;}
if(isset($_POST["rules-proxies-hostname"])){rules_proxies_add();exit;}
if(isset($_POST["rules-proxies-move"])){rules_proxies_move();exit;}
if(isset($_POST["rules-proxy-unlink"])){rules_proxies_unlink();exit;}

if(isset($_GET["rules-destination"])){rules_destination_section();exit;}
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;}
    exit;
}
if (isset($_GET["rules-proxies-popup"])) {
    rules_proxies_popup();
    exit;
}
if (isset($_POST["rules-proxies-hostname"])) {
    rules_proxies_add();
    exit;
}
if (isset($_POST["rules-proxies-move"])) {
    rules_proxies_move();
    exit;
}
if (isset($_POST["rules-proxy-unlink"])) {
    rules_proxies_unlink();
    exit;
}
if (isset($_GET["rules-destination"])) {
    rules_destination_section();
    exit;
}
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"])) {