From 1e5c34015b34953e2752c2ee5966d951cb1f6e8e Mon Sep 17 00:00:00 2001 From: Polonkai Gergely Date: Fri, 13 Apr 2012 19:28:47 +0000 Subject: [PATCH] Now reporting the remote address in app_dev.php and config.php Signed-off-by: Gergely POLONKAI (W00d5t0ck) --- web/app_dev.php | 2 +- web/config.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app_dev.php b/web/app_dev.php index 00d78ac..0ba2029 100644 --- a/web/app_dev.php +++ b/web/app_dev.php @@ -11,7 +11,7 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], array( '::1', ))) { 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'; diff --git a/web/config.php b/web/config.php index 4ad46b9..8bb72e4 100644 --- a/web/config.php +++ b/web/config.php @@ -9,7 +9,7 @@ if (!in_array(@$_SERVER['REMOTE_ADDR'], array( '::1', ))) { 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();