From bab4c7311008f2083613f3b4cea4804742911f0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20K=C3=A4stner?= Date: Thu, 28 May 2015 21:50:39 +0200 Subject: [PATCH] move opensearchdescription xml to index.php and fix missing default keyword in description --- index.php | 31 +++++++++++++++++++------ opensearchdescription-consearch.xml.php | 15 ------------ 2 files changed, 24 insertions(+), 22 deletions(-) delete mode 100644 opensearchdescription-consearch.xml.php diff --git a/index.php b/index.php index fd5297f..c87d144 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,5 @@ - - - +*/ - +if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) { + echo ' + +consearch'; + if ( $dse ) { echo " ($dse)"; } + echo ' +conveniently use different searchengines +consearch +consearch @ f p u n k t k . de + +https://www.fpunktk.de/consearch/consearch.png +'; + + exit; +} + +?> + @@ -26,7 +43,7 @@ if ( isset($_GET['dse']) and preg_match('/^[0-9a-z]{1,5}$/', $_GET['dse']) === 1 consearch -" title="consearch"> +" title="consearch">