X-Git-Url: https://fpunktk.de/gitweb/?p=consearch.git;a=blobdiff_plain;f=index.php;h=58c1fc686b0ee736756e7bf815d1f315800f64a4;hp=847dbcc818926086e4f1b3c4b600e71f01c6ee5d;hb=d0609b1cf61314997123c8acdd52882948e52fc3;hpb=1f7f929392cf15e6bcb20a4d66d4b706f0a98f4e diff --git a/index.php b/index.php index 847dbcc..58c1fc6 100644 --- a/index.php +++ b/index.php @@ -15,6 +15,10 @@ $dse = ""; if ( isset($_GET['dse']) and preg_match('/^[0-9a-z]{1,5}$/', $_GET['dse']) === 1 ) { // TODO: prevent injection, check whether dse is a valid searchengine $dse = $_GET['dse']; } +$browserintegration = ""; +if ( isset($_GET['include']) and $_GET['include'] == "browserintegration" ) { + $browserintegration = "true"; +} if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) { header('Content-Type: text/xml'); @@ -26,10 +30,10 @@ if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) { conveniently use different searchengines consearch consearch @ f p u n k t k . de - -https://www.fpunktk.de/consearch/consearch.png +https://fpunktk.de/consearch/consearch.png '; exit; @@ -42,10 +46,11 @@ if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) { + consearch +' . "\n"; +} +?> +
@@ -232,11 +256,27 @@ please enable javascript

-add to browser +add to browser +

+ + + +

+Now add consearch to your browser. In firefox this is done via the searchbar. If this does not work then consearch can be added via the following form, but this would send all queries to the server :-(

+
' . "\n"; + if ( $dse ) { echo '' . "\n"; } + echo ' +
+'; +} +?> +

-about +about | contact