26if (!defined(
'NOTOKENRENEWAL')) {
27 define(
'NOTOKENRENEWAL',
'1');
29if (!defined(
'NOREQUIREMENU')) {
30 define(
'NOREQUIREMENU',
'1');
32if (!defined(
'NOREQUIREHTML')) {
33 define(
'NOREQUIREHTML',
'1');
35if (!defined(
'NOREQUIREAJAX')) {
36 define(
'NOREQUIREAJAX',
'1');
38if (!defined(
'NOREQUIRESOC')) {
39 define(
'NOREQUIRESOC',
'1');
41if (!defined(
'NOREQUIRETRAN')) {
42 define(
'NOREQUIRETRAN',
'1');
44if (!defined(
'CSRFCHECK_WITH_TOKEN')) {
45 define(
'CSRFCHECK_WITH_TOKEN',
'1');
49require
'../../main.inc.php';
50require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
51require_once DOL_DOCUMENT_ROOT.
'/blockedlog/lib/blockedlog.lib.php';
60$action =
GETPOST(
'action',
'aZ09');
86print
'<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER[
"PHP_SELF"]).
'?'.
dol_escape_htmltag($_SERVER[
"QUERY_STRING"]).
' -->'.
"\n";
89if ($action ==
'MAIN_FIRST_PING_OK_DATE') {
93 dolibarr_set_const($db,
'MAIN_FIRST_PING_OK_ID', $hash_unique_id.
' - '.DOL_VERSION,
'chaine', 0,
'',
$conf->entity);
95 print
'First ping OK saved for entity '.$conf->entity;
96} elseif ($action ==
'MAIN_LAST_PING_KO_DATE') {
100 print
'First ping KO saved for entity '.$conf->entity;
101} elseif ($action ==
'MAIN_FIRST_REGISTRATION_OK_DATE') {
105 dolibarr_set_const($db,
'MAIN_FIRST_REGISTRATION_OK_ID', $hash_unique_id.
' - '.DOL_VERSION,
'chaine', 0,
'',
$conf->entity);
107 print
'First ping OK saved for entity '.$conf->entity;
108} elseif ($action ==
'MAIN_LAST_REGISTRATION_KO_DATE') {
112 print
'First ping KO saved for entity '.$conf->entity;
114 print
'Error action='.$action.
' not supported';
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
getHashUniqueIdOfRegistration($algo='sha256')
Return a hash unique identifier of the registration (used to identify the registration of instance wi...
dol_now($mode='gmt')
Return date for now.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0, $nodefault=0)
Return value of a param into GET or POST supervariable.
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs=null, $encodetooutput=false, $decorate=0)
Output date in a string format according to outputlangs (or langs if not defined).
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0, $cleanalsojavascript=0)
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.