Reverted changes to config.php

This commit is contained in:
Polonkai Gergely 2012-09-15 13:16:28 +02:00
parent 3f5d817f38
commit 4a61f0a1f1

View File

@ -1,12 +1,13 @@
<?php
require 'dev-ips.php';
if (!isset($_SERVER['HTTP_HOST'])) {
exit('This script cannot be run from the CLI. Run it from a browser.');
}
if (!in_array(@$_SERVER['REMOTE_ADDR'], $dev_ips)) {
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))) {
header('HTTP/1.0 403 Forbidden');
exit('This script is only accessible from localhost.');
}