diff options
Diffstat (limited to 'www/gsearch/index.php')
-rw-r--r-- | www/gsearch/index.php | 9 |
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(); } ?> |