proper status code when gsearch is deactivated
This commit is contained in:
parent
d9e7463978
commit
e616b19304
1 changed files with 6 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue