make it possible to generate the opensearchdescription xml dynamically
authorfpunktk <git@fpunktk.de>
Thu, 28 May 2015 17:39:51 +0000 (19:39 +0200)
committerfpunktk <git@fpunktk.de>
Thu, 28 May 2015 17:39:51 +0000 (19:39 +0200)
index.php
opensearchdescription-consearch.xml [deleted file]
opensearchdescription-consearch.xml.php [new file with mode: 0644]

index e8a3756420937ae649e20b43a3ad77d14643a2b9..e20e4a9e3f8b39044bcd0e6e4e3a635bec132bca 100644 (file)
--- a/index.php
+++ b/index.php
@@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License along with thi
 
 <title>consearch</title>
 <link rel="icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAACMuuz63rNKAAAAK0lEQVQI12P4/58BiM4cZ9gdDUVnboNE/n8Hoc6JDLvLGLrLGF4DyWlAcQBYKBgvsgbJOAAAAABJRU5ErkJggg==" type="image/png">
-<link rel="search" type="application/opensearchdescription+xml" href="opensearchdescription-consearch.xml" title="consearch">
+<link rel="search" type="application/opensearchdescription+xml" href="opensearchdescription-consearch.xml.php" title="consearch">
 
 <style type="text/css">
 * {
diff --git a/opensearchdescription-consearch.xml b/opensearchdescription-consearch.xml
deleted file mode 100644 (file)
index f12eb44..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
-<ShortName>consearch</ShortName>
-<Description>conveniently use different searchengines</Description>
-<Tags>consearch</Tags>
-<Contact>consearch @ f p u n k t k . de</Contact>
-<Url type="text/html" template="https://www.fpunktk.de/consearch/index.php#{searchTerms}" />
-<Image height="16" width="16" type="image/png">https://www.fpunktk.de/consearch/consearch.png</Image>
-</OpenSearchDescription>
diff --git a/opensearchdescription-consearch.xml.php b/opensearchdescription-consearch.xml.php
new file mode 100644 (file)
index 0000000..f12eb44
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
+<ShortName>consearch</ShortName>
+<Description>conveniently use different searchengines</Description>
+<Tags>consearch</Tags>
+<Contact>consearch @ f p u n k t k . de</Contact>
+<Url type="text/html" template="https://www.fpunktk.de/consearch/index.php#{searchTerms}" />
+<Image height="16" width="16" type="image/png">https://www.fpunktk.de/consearch/consearch.png</Image>
+</OpenSearchDescription>