29 if (!defined(
'NOTOKENRENEWAL')) {
30 define(
'NOTOKENRENEWAL', 1);
32 if (!defined(
'NOREQUIREMENU')) {
33 define(
'NOREQUIREMENU',
'1');
35 if (!defined(
'NOREQUIREHTML')) {
36 define(
'NOREQUIREHTML',
'1');
39 $res = require
'../../master.inc.php';
41 require_once DOL_DOCUMENT_ROOT.
'/blockedlog/class/blockedlog.class.php';
42 require_once DOL_DOCUMENT_ROOT.
'/blockedlog/class/authority.class.php';
44 $user =
new User($db);
53 if ($auth->fetch(0, $signature) <= 0) {
54 $auth->signature = $signature;
60 echo $auth->checkBlockchain($hash) ?
'hashisok' :
'hashisjunk';
61 } elseif (!empty($newblock)) {
62 if ($auth->checkBlock($newblock)) {
63 $auth->addBlock($newblock);
68 echo
'blockalreadyadded';
71 echo
'idontunderstandwhatihavetodo';