]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
proper status code when gsearch is deactivated
authorChristian Weiske <cweiske@cweiske.de>
Sat, 14 May 2011 08:18:46 +0000 (10:18 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sat, 14 May 2011 08:18:46 +0000 (10:18 +0200)
www/gsearch/index.php

index 70be05e961eb393d306c81d4d88c3ae8ef536c51..12e72335510f812e9a028aeac0ee10d0792da8ca 100644 (file)
@@ -1,8 +1,11 @@
 <?php require_once '../www-header.php';
 
-if($GLOBALS['enableGoogleCustomSearch']==false) {
-    echo "Google Custom Search disabled. You can enable it into the config.php file.";
-    die;
+if ($GLOBALS['enableGoogleCustomSearch'] == false) {
+    header('HTTP/1.0 403 Forbidden');
+    header('Content-Type: text/plain; charset=utf-8');
+    echo "Google Custom Search disabled."
+        . " You can enable it into the config.php file.\n";
+    die();
 }
 
 ?>