X-Git-Url: https://fpunktk.de/gitweb/?p=consearch.git;a=blobdiff_plain;f=index.php;h=8b70309f0f48f2f0d18908a534e3c3457bdf3a52;hp=fd5297ffdaee8d2601f1c45d60fecd39ce7efd0c;hb=e3e1d5623b25a95560748991a1f0664171175835;hpb=1f749771c755f02265ebd1938955e3ee7bce1845 diff --git a/index.php b/index.php index fd5297f..8b70309 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,5 @@ - - - +*/ - +$browserintegration = ""; +if ( isset($_GET['include']) and $_GET['include'] == "browserintegration" ) { + $browserintegration = "true"; +} + +if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) { + header('Content-Type: text/xml'); + 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 +48,20 @@ if ( isset($_GET['dse']) and preg_match('/^[0-9a-z]{1,5}$/', $_GET['dse']) === 1 consearch -" title="consearch"> +'; + echo "\n"; +} +?>