diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-28 21:28:12 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-28 21:28:12 +0100 |
commit | 589dce52c63219d917498d2fdf18e5d7ebe5bf92 (patch) | |
tree | 195cd403e5df686904c299c16b975daa4c99c293 | |
parent | 38ba7ed9721ef2fefc0cf76d37bfbb93eb6b5c76 (diff) | |
download | wallabag-589dce52c63219d917498d2fdf18e5d7ebe5bf92.tar.gz wallabag-589dce52c63219d917498d2fdf18e5d7ebe5bf92.tar.zst wallabag-589dce52c63219d917498d2fdf18e5d7ebe5bf92.zip |
disable dev environment
-rw-r--r-- | web/app_dev.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/web/app_dev.php b/web/app_dev.php index d3e3b473..e0279c2a 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. |
12 | //if (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'; |
21 | Debug::enable(); | 21 | Debug::enable(); |