This commit is contained in:
xdrm-brackets 2016-11-08 10:49:23 +01:00
parent fbc25483eb
commit 04f52a5e04
1 changed files with 2 additions and 5 deletions

View File

@ -82,8 +82,6 @@
if( is_null($GLOBALS['TOKEN']) ) if( is_null($GLOBALS['TOKEN']) )
return false; return false;
echo 'a';
/* [2] Vérification du système /* [2] Vérification du système
=========================================================*/ =========================================================*/
/* (1) Fetch cyclic-hashing-system -> check file */ /* (1) Fetch cyclic-hashing-system -> check file */
@ -91,14 +89,13 @@
if( !is_file($fn) ) if( !is_file($fn) )
return false; return false;
echo 'b';
/* (2) Read file -> check content */ /* (2) Read file -> check content */
$fc = file_get_contents($fn); $fc = trim( file_get_contents($fn) );
if( strlen($fc) !== 64 ) if( strlen($fc) !== 64 )
return false; return false;
echo 'c'; echo 'XXX';
/* [3] Hash comparison /* [3] Hash comparison
=========================================================*/ =========================================================*/