fix php in xml
authorFelix Kästner <git@fpunktk.de>
Thu, 28 May 2015 19:01:51 +0000 (21:01 +0200)
committerFelix Kästner <git@fpunktk.de>
Thu, 28 May 2015 19:01:51 +0000 (21:01 +0200)
opensearchdescription-consearch.xml.php

index e4ee2b7d8984608ef17ccc9a52218704e32ed586..88ee840373f7ada2af6a72d80093e49e254995a6 100644 (file)
@@ -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>
-<Url type="text/html" template="https://www.fpunktk.de/consearch/index.php<?php if ( isset($_GET['dse']) and preg_match('/^[0-9a-z]{1,5}$/', $_GET['dse']) === 1 ) { echo "?dse=" . $_GET['dse']; } ?>#{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>
-</OpenSearchDescription>
+</OpenSearchDescription>';
+?>