aboutsummaryrefslogtreecommitdiffhomepage
path: root/application
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-11-13 19:32:35 +0100
committerArthurHoaro <arthur@hoa.ro>2015-11-17 20:19:44 +0100
commit8f8113b94beb46f5deb84e393a95237f59969bbb (patch)
tree7c25239ad5bfa817c26d514785c83796e36b53c7 /application
parent44d60adc5e2fa547bc49620f7e647794f0cad631 (diff)
downloadShaarli-8f8113b94beb46f5deb84e393a95237f59969bbb.tar.gz
Shaarli-8f8113b94beb46f5deb84e393a95237f59969bbb.tar.zst
Shaarli-8f8113b94beb46f5deb84e393a95237f59969bbb.zip
Fixes #176 - Add opensearch functionality
* add a new page in Router: do=opensearch which displays the opensearch plugin * using base64 compressed image to avoid issue encountered with HTTPS
Diffstat (limited to 'application')
-rw-r--r--application/Router.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/application/Router.php b/application/Router.php
index 82b2b858..1e6a3983 100644
--- a/application/Router.php
+++ b/application/Router.php
@@ -29,6 +29,8 @@ class Router
29 29
30 public static $PAGE_IMPORT = 'import'; 30 public static $PAGE_IMPORT = 'import';
31 31
32 public static $PAGE_OPENSEARCH = 'opensearch';
33
32 public static $PAGE_LINKLIST = 'linklist'; 34 public static $PAGE_LINKLIST = 'linklist';
33 35
34 /** 36 /**
@@ -63,6 +65,10 @@ class Router
63 return self::$PAGE_TAGCLOUD; 65 return self::$PAGE_TAGCLOUD;
64 } 66 }
65 67
68 if (startswith($query, 'do='. self::$PAGE_OPENSEARCH)) {
69 return self::$PAGE_OPENSEARCH;
70 }
71
66 // At this point, only loggedin pages. 72 // At this point, only loggedin pages.
67 if (!$loggedIn) { 73 if (!$loggedIn) {
68 return self::$PAGE_LINKLIST; 74 return self::$PAGE_LINKLIST;