X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=application%2FRouter.php;h=6185f08e932c742806135767792d6f3c2cf8e7bc;hb=7c873f1cd0ffe17d7b29125b2d5ee17ce908a52a;hp=1e6a3983231f9a9eff01abb1e88b8dd63a4717b9;hpb=98348200e397864396cfea7db6b9fca698b033e1;p=github%2Fshaarli%2FShaarli.git diff --git a/application/Router.php b/application/Router.php index 1e6a3983..6185f08e 100644 --- a/application/Router.php +++ b/application/Router.php @@ -13,6 +13,8 @@ class Router public static $PAGE_TAGCLOUD = 'tagcloud'; + public static $PAGE_DAILY = 'daily'; + public static $PAGE_TOOLS = 'tools'; public static $PAGE_CHANGEPASSWORD = 'changepasswd'; @@ -33,6 +35,10 @@ class Router public static $PAGE_LINKLIST = 'linklist'; + public static $PAGE_PLUGINSADMIN = 'pluginadmin'; + + public static $PAGE_SAVE_PLUGINSADMIN = 'save_pluginadmin'; + /** * Reproducing renderPage() if hell, to avoid regression. * @@ -69,6 +75,10 @@ class Router return self::$PAGE_OPENSEARCH; } + if (startsWith($query, 'do='. self::$PAGE_DAILY)) { + return self::$PAGE_DAILY; + } + // At this point, only loggedin pages. if (!$loggedIn) { return self::$PAGE_LINKLIST; @@ -106,6 +116,14 @@ class Router return self::$PAGE_IMPORT; } + if (startswith($query, 'do='. self::$PAGE_PLUGINSADMIN)) { + return self::$PAGE_PLUGINSADMIN; + } + + if (startswith($query, 'do='. self::$PAGE_SAVE_PLUGINSADMIN)) { + return self::$PAGE_SAVE_PLUGINSADMIN; + } + return self::$PAGE_LINKLIST; } } \ No newline at end of file