aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2011-05-14 10:18:46 +0200
committerChristian Weiske <cweiske@cweiske.de>2011-05-14 10:18:46 +0200
commite616b19304d63b59e943dbf8c90b2f131d465dea (patch)
tree334934f343f64f688bd17b288348927f388c5d8a /www
parentd9e74639787ae02dc5b0165e40fc2c75a74d084e (diff)
downloadsemanticscuttle-e616b19304d63b59e943dbf8c90b2f131d465dea.tar.gz
semanticscuttle-e616b19304d63b59e943dbf8c90b2f131d465dea.tar.bz2
proper status code when gsearch is deactivated
Diffstat (limited to 'www')
-rw-r--r--www/gsearch/index.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/www/gsearch/index.php b/www/gsearch/index.php
index 70be05e..12e7233 100644
--- a/www/gsearch/index.php
+++ b/www/gsearch/index.php
@@ -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();
}
?>