]> git.wh0rd.org - tt-rss.git/blobdiff - public.php
implement tiny-OOP routing
[tt-rss.git] / public.php
index c2de2185fd0cd6c91861cf5c278ef5c18d6849c8..3b0d064b6c093ecc5c6311cc7b42ef65cd00b786 100644 (file)
@@ -1,4 +1,6 @@
 <?php
+       set_include_path(get_include_path() . PATH_SEPARATOR . "include");
+
        /* remove ill effects of magic quotes */
 
        if (get_magic_quotes_gpc()) {
@@ -18,7 +20,6 @@
 
        require_once "functions.php";
        if ($op != "share") require_once "sessions.php";
-       require_once "modules/backend-rpc.php";
        require_once "sanity_check.php";
        require_once "config.php";
        require_once "db.php";
@@ -42,7 +43,7 @@
 
        init_connection($link);
 
-       $subop = $_REQUEST["subop"];
+       $method = $_REQUEST["method"];
        $mode = $_REQUEST["mode"];
 
        if ((!$op || $op == "rss" || $op == "dlg") && !$_REQUEST["noxml"]) {