29 if (!defined(
'NOTOKENRENEWAL')) define(
'NOTOKENRENEWAL', 1);
30 if (!defined(
'NOREQUIREMENU')) define(
'NOREQUIREMENU',
'1');
31 if (!defined(
'NOREQUIREHTML')) define(
'NOREQUIREHTML',
'1');
33 $res = require
'../../master.inc.php';
35 require_once DOL_DOCUMENT_ROOT.
'/blockedlog/class/blockedlog.class.php';
36 require_once DOL_DOCUMENT_ROOT.
'/blockedlog/class/authority.class.php';
38 $user =
new User($db);
47 if ($auth->fetch(0, $signature) <= 0) {
48 $auth->signature = $signature;
54 echo $auth->checkBlockchain($hash) ?
'hashisok' :
'hashisjunk';
55 } elseif (!empty($newblock)) {
56 if ($auth->checkBlock($newblock)) {
57 $auth->addBlock($newblock);
62 echo
'blockalreadyadded';
65 echo
'idontunderstandwhatihavetodo';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Class to manage certif authority.
Class to manage Dolibarr users.