X-Git-Url: https://fpunktk.de/gitweb/?p=consearch.git;a=blobdiff_plain;f=index.php;h=87c83d6e179a5fe808b463fe39b8b7e63beb6150;hp=e8a3756420937ae649e20b43a3ad77d14643a2b9;hb=def69a21e3937c7e43040b4405f641fc1d328dcf;hpb=b287bcef8164367079832d61cff27e270d58939a diff --git a/index.php b/index.php index e8a3756..87c83d6 100644 --- a/index.php +++ b/index.php @@ -1,11 +1,5 @@ - - -
- - - - - +*/ +$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']; +} + +if ( isset($_GET['get']) and $_GET['get'] === "opensearchdescription" ) { + echo ' +