diff options
Diffstat (limited to 'application/Router.php')
-rw-r--r-- | application/Router.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/application/Router.php b/application/Router.php index 4df0387c..beb3165b 100644 --- a/application/Router.php +++ b/application/Router.php | |||
@@ -7,6 +7,8 @@ | |||
7 | */ | 7 | */ |
8 | class Router | 8 | class Router |
9 | { | 9 | { |
10 | public static $AJAX_THUMB_UPDATE = 'ajax_thumb_update'; | ||
11 | |||
10 | public static $PAGE_LOGIN = 'login'; | 12 | public static $PAGE_LOGIN = 'login'; |
11 | 13 | ||
12 | public static $PAGE_PICWALL = 'picwall'; | 14 | public static $PAGE_PICWALL = 'picwall'; |
@@ -35,6 +37,8 @@ class Router | |||
35 | 37 | ||
36 | public static $PAGE_DELETELINK = 'delete_link'; | 38 | public static $PAGE_DELETELINK = 'delete_link'; |
37 | 39 | ||
40 | public static $PAGE_PINLINK = 'pin'; | ||
41 | |||
38 | public static $PAGE_EXPORT = 'export'; | 42 | public static $PAGE_EXPORT = 'export'; |
39 | 43 | ||
40 | public static $PAGE_IMPORT = 'import'; | 44 | public static $PAGE_IMPORT = 'import'; |
@@ -47,6 +51,8 @@ class Router | |||
47 | 51 | ||
48 | public static $PAGE_SAVE_PLUGINSADMIN = 'save_pluginadmin'; | 52 | public static $PAGE_SAVE_PLUGINSADMIN = 'save_pluginadmin'; |
49 | 53 | ||
54 | public static $PAGE_THUMBS_UPDATE = 'thumbs_update'; | ||
55 | |||
50 | public static $GET_TOKEN = 'token'; | 56 | public static $GET_TOKEN = 'token'; |
51 | 57 | ||
52 | /** | 58 | /** |
@@ -101,6 +107,14 @@ class Router | |||
101 | return self::$PAGE_FEED_RSS; | 107 | return self::$PAGE_FEED_RSS; |
102 | } | 108 | } |
103 | 109 | ||
110 | if (startsWith($query, 'do='. self::$PAGE_THUMBS_UPDATE)) { | ||
111 | return self::$PAGE_THUMBS_UPDATE; | ||
112 | } | ||
113 | |||
114 | if (startsWith($query, 'do='. self::$AJAX_THUMB_UPDATE)) { | ||
115 | return self::$AJAX_THUMB_UPDATE; | ||
116 | } | ||
117 | |||
104 | // At this point, only loggedin pages. | 118 | // At this point, only loggedin pages. |
105 | if (!$loggedIn) { | 119 | if (!$loggedIn) { |
106 | return self::$PAGE_LINKLIST; | 120 | return self::$PAGE_LINKLIST; |
@@ -134,6 +148,10 @@ class Router | |||
134 | return self::$PAGE_DELETELINK; | 148 | return self::$PAGE_DELETELINK; |
135 | } | 149 | } |
136 | 150 | ||
151 | if (startsWith($query, 'do='. self::$PAGE_PINLINK)) { | ||
152 | return self::$PAGE_PINLINK; | ||
153 | } | ||
154 | |||
137 | if (startsWith($query, 'do='. self::$PAGE_EXPORT)) { | 155 | if (startsWith($query, 'do='. self::$PAGE_EXPORT)) { |
138 | return self::$PAGE_EXPORT; | 156 | return self::$PAGE_EXPORT; |
139 | } | 157 | } |