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;}
if(isset($_POST["isResolvable"])){rules_options_save();exit;}

if(isset($_POST["rules-sources-link"])){rules_sources_link();exit;}
if(isset($_POST["rules-sources-unlink"])){rules_sources_unlink();exit;}
if(isset($_POST["rules-sources-negation"])){rules_sources_negation();exit;}
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;}
    exit;
}
if (isset($_GET["rules-sources-search"])) {
    rules_sources_search();
    exit;
}
if (isset($_GET["rules-options"])) {
    rules_options();
    exit;
}
if (isset($_POST["isResolvable"])) {
    rules_options_save();
    exit;
}
if (isset($_POST["rules-sources-link"])) {
    rules_sources_link();
    exit;
}
if (isset($_POST["rules-sources-unlink"])) {
    rules_sources_unlink();
    exit;
}
if (isset($_POST["rules-sources-negation"])) {
    rules_sources_negation();
    exit;
}
if (isset($_GET["rules-sources-order-js"])) {
    rules_sources_link_order_js();
    exit;
}
if (isset($_POST["rules-sources-order"])) {