Moved IP checking code to check_ip.php
This commit is contained in:
@@ -4,13 +4,7 @@ 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'], array(
|
||||
'127.0.0.1',
|
||||
'::1',
|
||||
))) {
|
||||
header('HTTP/1.0 403 Forbidden');
|
||||
exit('You (' . @$_SERVER['REMOTE_ADDR'] . ') are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
||||
}
|
||||
require_once __DIR__.'/check_ip.php';
|
||||
|
||||
$majorProblems = array();
|
||||
$minorProblems = array();
|
||||
|
Reference in New Issue
Block a user