From 04f52a5e0496ab4f31eb739c05fef284e62c217a Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Tue, 8 Nov 2016 10:49:23 +0100 Subject: [PATCH] Dbug --- build/api/core/Authentification.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/build/api/core/Authentification.php b/build/api/core/Authentification.php index f7c36e3..5f04126 100644 --- a/build/api/core/Authentification.php +++ b/build/api/core/Authentification.php @@ -82,8 +82,6 @@ if( is_null($GLOBALS['TOKEN']) ) return false; - echo 'a'; - /* [2] Vérification du système =========================================================*/ /* (1) Fetch cyclic-hashing-system -> check file */ @@ -91,14 +89,13 @@ if( !is_file($fn) ) return false; - echo 'b'; /* (2) Read file -> check content */ - $fc = file_get_contents($fn); + $fc = trim( file_get_contents($fn) ); if( strlen($fc) !== 64 ) return false; - echo 'c'; + echo 'XXX'; /* [3] Hash comparison =========================================================*/