proper status code when gsearch is deactivated

This commit is contained in:
Christian Weiske 2011-05-14 10:18:46 +02:00
parent d9e7463978
commit e616b19304

View 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;
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();
}
?>