projects
/
consearch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix php in xml
[consearch.git]
/
opensearchdescription-consearch.xml.php
diff --git
a/opensearchdescription-consearch.xml.php
b/opensearchdescription-consearch.xml.php
index f12eb443b156110b8ab0aba885b3e476674a6f6d..88ee840373f7ada2af6a72d80093e49e254995a6 100644
(file)
--- a/
opensearchdescription-consearch.xml.php
+++ b/
opensearchdescription-consearch.xml.php
@@
-1,9
+1,15
@@
-<?xml version="1.0" encoding="UTF-8"?>
+<?php
+echo '<?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>
<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}" />
+<Url type="text/html" template="https://www.fpunktk.de/consearch/index.php';
+if ( isset($_GET['dse']) and preg_match('/^[0-9a-z]{1,5}$/', $_GET['dse']) === 1 ) {
+ echo '?dse=' . $_GET['dse'];
+}
+echo '#{searchTerms}" />
<Image height="16" width="16" type="image/png">https://www.fpunktk.de/consearch/consearch.png</Image>
<Image height="16" width="16" type="image/png">https://www.fpunktk.de/consearch/consearch.png</Image>
-</OpenSearchDescription>
+</OpenSearchDescription>';
+?>