diff options
Diffstat (limited to 'application/Router.php')
-rw-r--r-- | application/Router.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/application/Router.php b/application/Router.php index 6185f08e..d98312b5 100644 --- a/application/Router.php +++ b/application/Router.php | |||
@@ -15,6 +15,10 @@ class Router | |||
15 | 15 | ||
16 | public static $PAGE_DAILY = 'daily'; | 16 | public static $PAGE_DAILY = 'daily'; |
17 | 17 | ||
18 | public static $PAGE_FEED_ATOM = 'atom'; | ||
19 | |||
20 | public static $PAGE_FEED_RSS = 'rss'; | ||
21 | |||
18 | public static $PAGE_TOOLS = 'tools'; | 22 | public static $PAGE_TOOLS = 'tools'; |
19 | 23 | ||
20 | public static $PAGE_CHANGEPASSWORD = 'changepasswd'; | 24 | public static $PAGE_CHANGEPASSWORD = 'changepasswd'; |
@@ -79,6 +83,14 @@ class Router | |||
79 | return self::$PAGE_DAILY; | 83 | return self::$PAGE_DAILY; |
80 | } | 84 | } |
81 | 85 | ||
86 | if (startsWith($query, 'do='. self::$PAGE_FEED_ATOM)) { | ||
87 | return self::$PAGE_FEED_ATOM; | ||
88 | } | ||
89 | |||
90 | if (startsWith($query, 'do='. self::$PAGE_FEED_RSS)) { | ||
91 | return self::$PAGE_FEED_RSS; | ||
92 | } | ||
93 | |||
82 | // At this point, only loggedin pages. | 94 | // At this point, only loggedin pages. |
83 | if (!$loggedIn) { | 95 | if (!$loggedIn) { |
84 | return self::$PAGE_LINKLIST; | 96 | return self::$PAGE_LINKLIST; |