management of unauthorized pages

This commit is contained in:
xdrm-brackets 2016-11-07 19:49:16 +01:00
parent 359d5412d5
commit e17d870094
1 changed files with 2 additions and 5 deletions

View File

@ -7,9 +7,6 @@
use \api\core\ModuleResponse; use \api\core\ModuleResponse;
use \manager\ManagerError; use \manager\ManagerError;
//var_dump($_POST);
//exit();
/*******************************************/ /*******************************************/
/* DEBUGGER */ /* DEBUGGER */
@ -39,8 +36,8 @@
/* [3] Any other URL -> homepage /* [3] Any other URL -> homepage
=========================================================*/ =========================================================*/
$R->get('.+', function(){ header(__REDIRECT__); }); $R->get('.+', function(){ http_response_code(417); exit(); });
$R->post('.+', function(){ header(__REDIRECT__); }); $R->post('.+', function(){ http_response_code(417); exit(); });
/* [8] Launch Router /* [8] Launch Router