|
@@ -1,14 +1,14 @@
|
1
|
1
|
<?php
|
2
|
2
|
|
3
|
|
-//// this check prevents access to debug front controllers that are deployed by accident to production servers.
|
4
|
|
-//// feel free to remove this, extend it, or make something more sophisticated.
|
5
|
|
-//if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
|
6
|
|
-// '127.0.0.1',
|
7
|
|
-// '::1',
|
8
|
|
-//))) {
|
9
|
|
-// header('HTTP/1.0 403 Forbidden');
|
10
|
|
-// exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
11
|
|
-//}
|
|
3
|
+// this check prevents access to debug front controllers that are deployed by accident to production servers.
|
|
4
|
+// feel free to remove this, extend it, or make something more sophisticated.
|
|
5
|
+if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
|
|
6
|
+ '127.0.0.1',
|
|
7
|
+ '::1',
|
|
8
|
+))) {
|
|
9
|
+ header('HTTP/1.0 403 Forbidden');
|
|
10
|
+ //exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
|
|
11
|
+}
|
12
|
12
|
|
13
|
13
|
require_once __DIR__.'/../app/bootstrap.php.cache';
|
14
|
14
|
require_once __DIR__.'/../app/AppKernel.php';
|