From d81f562b712f2387fa02290bf2ca86392ab356f2 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Wed, 11 Oct 2006 20:21:25 +0000 Subject: Aktualisierung auf Version 1.8.1 --- opensearch_desc.php | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 opensearch_desc.php (limited to 'opensearch_desc.php') diff --git a/opensearch_desc.php b/opensearch_desc.php new file mode 100644 index 00000000..59d61eee --- /dev/null +++ b/opensearch_desc.php @@ -0,0 +1,41 @@ +escapeFullURL( 'search={searchTerms}' ); + +$response = $wgRequest->response(); +$response->header( 'Content-type: application/opensearchdescription+xml' ); + +# Set an Expires header so that squid can cache it for a short time +# Short enough so that the sysadmin barely notices when $wgSitename is changed +$expiryTime = 300; # 5 minutes +$response->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expiryTime ) . ' GMT' ); + +echo << + +$shortName +$siteName +$favicon + + +EOT; + + +?> -- cgit v1.2.3-54-g00ecf