aboutsummaryrefslogtreecommitdiffhomepage
path: root/web
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 10:14:37 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-22 10:14:37 +0100
commit2b9fe72b397a239c40f8c66d83506e0e2e8d5854 (patch)
treeb6d4284ae6dfe6b2ed12ec7fe4fa6438efe8b081 /web
parent93fd4692f6eb753cae16358131c8049d84cfbb41 (diff)
downloadwallabag-2b9fe72b397a239c40f8c66d83506e0e2e8d5854.tar.gz
wallabag-2b9fe72b397a239c40f8c66d83506e0e2e8d5854.tar.zst
wallabag-2b9fe72b397a239c40f8c66d83506e0e2e8d5854.zip
remove foo test
Diffstat (limited to 'web')
-rw-r--r--web/app_dev.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/web/app_dev.php b/web/app_dev.php
index e0279c2a..d3e3b473 100644
--- a/web/app_dev.php
+++ b/web/app_dev.php
@@ -9,13 +9,13 @@ use Symfony\Component\Debug\Debug;
9 9
10// This check prevents access to debug front controllers that are deployed by accident to production servers. 10// This check prevents access to debug front controllers that are deployed by accident to production servers.
11// Feel free to remove this, extend it, or make something more sophisticated. 11// Feel free to remove this, extend it, or make something more sophisticated.
12if (isset($_SERVER['HTTP_CLIENT_IP']) 12//if (isset($_SERVER['HTTP_CLIENT_IP'])
13 || isset($_SERVER['HTTP_X_FORWARDED_FOR']) 13// || isset($_SERVER['HTTP_X_FORWARDED_FOR'])
14 || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server') 14// || !(in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', 'fe80::1', '::1')) || php_sapi_name() === 'cli-server')
15) { 15//) {
16 header('HTTP/1.0 403 Forbidden'); 16// header('HTTP/1.0 403 Forbidden');
17 exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); 17// exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
18} 18//}
19 19
20$loader = require_once __DIR__.'/../app/bootstrap.php.cache'; 20$loader = require_once __DIR__.'/../app/bootstrap.php.cache';
21Debug::enable(); 21Debug::enable();