From e17d87009444da92c0adff093b3ce97dba514ed4 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Mon, 7 Nov 2016 19:49:16 +0100 Subject: [PATCH] management of unauthorized pages --- public_html/index.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/public_html/index.php b/public_html/index.php index 0f63c20..57dd5f8 100755 --- a/public_html/index.php +++ b/public_html/index.php @@ -7,9 +7,6 @@ use \api\core\ModuleResponse; use \manager\ManagerError; - //var_dump($_POST); - //exit(); - /*******************************************/ /* DEBUGGER */ @@ -39,8 +36,8 @@ /* [3] Any other URL -> homepage =========================================================*/ - $R->get('.+', function(){ header(__REDIRECT__); }); - $R->post('.+', function(){ header(__REDIRECT__); }); + $R->get('.+', function(){ http_response_code(417); exit(); }); + $R->post('.+', function(){ http_response_code(417); exit(); }); /* [8] Launch Router