| @@ -14,36 +14,36 @@ | ||
| 14 | 14 | use Alpha\View\View; | 
| 15 | 15 | |
| 16 | 16 |  try {
 | 
| 17 | - $config = ConfigProvider::getInstance(); | |
| 17 | + $config = ConfigProvider::getInstance(); | |
| 18 | 18 | |
| 19 | -	set_exception_handler('Alpha\Util\ErrorHandlers::catchException');
 | |
| 20 | -	set_error_handler('Alpha\Util\ErrorHandlers::catchError', $config->get('php.error.log.level'));
 | |
| 19 | +    set_exception_handler('Alpha\Util\ErrorHandlers::catchException');
 | |
| 20 | +    set_error_handler('Alpha\Util\ErrorHandlers::catchError', $config->get('php.error.log.level'));
 | |
| 21 | 21 | |
| 22 | - $front = new FrontController(); | |
| 22 | + $front = new FrontController(); | |
| 23 | 23 | |
| 24 | -	if ($config->get('security.client.blacklist.filter.enabled')) {
 | |
| 25 | - $front->registerFilter(new ClientBlacklistFilter()); | |
| 26 | - } | |
| 24 | +    if ($config->get('security.client.blacklist.filter.enabled')) {
 | |
| 25 | + $front->registerFilter(new ClientBlacklistFilter()); | |
| 26 | + } | |
| 27 | 27 | |
| 28 | -	if ($config->get('security.ip.blacklist.filter.enabled')) {
 | |
| 29 | - $front->registerFilter(new IPBlacklistFilter()); | |
| 30 | - } | |
| 28 | +    if ($config->get('security.ip.blacklist.filter.enabled')) {
 | |
| 29 | + $front->registerFilter(new IPBlacklistFilter()); | |
| 30 | + } | |
| 31 | 31 | |
| 32 | -	if ($config->get('security.client.temp.blacklist.filter.enabled')) {
 | |
| 33 | - $front->registerFilter(new ClientTempBlacklistFilter()); | |
| 34 | - } | |
| 32 | +    if ($config->get('security.client.temp.blacklist.filter.enabled')) {
 | |
| 33 | + $front->registerFilter(new ClientTempBlacklistFilter()); | |
| 34 | + } | |
| 35 | 35 | |
| 36 | - $request = new Request(); | |
| 37 | - $response = $front->process($request); | |
| 36 | + $request = new Request(); | |
| 37 | + $response = $front->process($request); | |
| 38 | 38 | |
| 39 | 39 |  } catch (ResourceNotFoundException $rnfe) {
 | 
| 40 | -	$response = new Response(404, View::renderErrorPage(404, $rnfe->getMessage(), array('Content-Type' => 'text/html')));
 | |
| 40 | +    $response = new Response(404, View::renderErrorPage(404, $rnfe->getMessage(), array('Content-Type' => 'text/html')));
 | |
| 41 | 41 |  } catch (ResourceNotAllowedException $rnae) {
 | 
| 42 | -	$response = new Response(403, View::renderErrorPage(403, $rnae->getMessage(), array('Content-Type' => 'text/html')));
 | |
| 42 | +    $response = new Response(403, View::renderErrorPage(403, $rnae->getMessage(), array('Content-Type' => 'text/html')));
 | |
| 43 | 43 | } | 
| 44 | 44 | |
| 45 | 45 |  if ($config->get('security.http.header.x.frame.options') != '') {
 | 
| 46 | -	$response->setHeader('X-Frame-Options', $config->get('security.http.header.x.frame.options'));
 | |
| 46 | +    $response->setHeader('X-Frame-Options', $config->get('security.http.header.x.frame.options'));
 | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | echo $response->send(); |