diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-11-13 19:32:35 +0100 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-11-17 20:19:44 +0100 |
commit | 8f8113b94beb46f5deb84e393a95237f59969bbb (patch) | |
tree | 7c25239ad5bfa817c26d514785c83796e36b53c7 /index.php | |
parent | 44d60adc5e2fa547bc49620f7e647794f0cad631 (diff) | |
download | Shaarli-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.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 | { |