aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Router.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2019-07-27 12:34:30 +0200
committerArthurHoaro <arthur@hoa.ro>2019-07-27 12:34:30 +0200
commit38672ba0d1c722e5d6d33a58255ceb55e9410e46 (patch)
treedae4c7c47532380eac3ae641db99122fc77c93dc /application/Router.php
parent83faedadff76c5bdca036f39f13943f63b27e164 (diff)
parent1e77e0448bbd25675d8c0fe4a73206ad9048904b (diff)
downloadShaarli-38672ba0d1c722e5d6d33a58255ceb55e9410e46.tar.gz
Shaarli-38672ba0d1c722e5d6d33a58255ceb55e9410e46.tar.zst
Shaarli-38672ba0d1c722e5d6d33a58255ceb55e9410e46.zip
Merge tag 'v0.10.4' into stable
Release v0.10.4
Diffstat (limited to 'application/Router.php')
-rw-r--r--application/Router.php18
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 */
8class Router 8class 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 }