aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
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 /index.php
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 'index.php')
-rw-r--r--index.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index b06dd50c..01816947 100644
--- a/index.php
+++ b/index.php
@@ -1204,6 +1204,14 @@ function renderPage()
1204 exit; 1204 exit;
1205 } 1205 }
1206 1206
1207 // Display openseach plugin (XML)
1208 if ($targetPage == Router::$PAGE_OPENSEARCH) {
1209 header('Content-Type: application/xml; charset=utf-8');
1210 $PAGE->assign('serverurl', index_url($_SERVER));
1211 $PAGE->renderPage('opensearch');
1212 exit;
1213 }
1214
1207 // -------- User clicks on a tag in a link: The tag is added to the list of searched tags (searchtags=...) 1215 // -------- User clicks on a tag in a link: The tag is added to the list of searched tags (searchtags=...)
1208 if (isset($_GET['addtag'])) 1216 if (isset($_GET['addtag']))
1209 { 1217 {