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;}
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;}

    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"])) {