Now reporting the remote address in app_dev.php and config.php
Signed-off-by: Gergely POLONKAI (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
parent
5ce2567994
commit
1e5c34015b
@ -11,7 +11,7 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
|
|||||||
'::1',
|
'::1',
|
||||||
))) {
|
))) {
|
||||||
header('HTTP/1.0 403 Forbidden');
|
header('HTTP/1.0 403 Forbidden');
|
||||||
exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
exit('You (' . @$_SERVER['REMOTE_ADDR'] . ') are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once __DIR__.'/../app/bootstrap.php.cache';
|
require_once __DIR__.'/../app/bootstrap.php.cache';
|
||||||
|
@ -9,7 +9,7 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
|
|||||||
'::1',
|
'::1',
|
||||||
))) {
|
))) {
|
||||||
header('HTTP/1.0 403 Forbidden');
|
header('HTTP/1.0 403 Forbidden');
|
||||||
exit('This script is only accessible from localhost.');
|
exit('You (' . @$_SERVER['REMOTE_ADDR'] . ') are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$majorProblems = array();
|
$majorProblems = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user