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');
46require
'../../main.inc.php';
47require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
56$action =
GETPOST(
'action',
'aZ09');
57$hash_unique_id =
GETPOST(
'hash_unique_id',
'alpha');
58$hash_algo =
GETPOST(
'hash_algo',
'alpha');
80print
'<!-- Ajax page called with url '.dol_escape_htmltag($_SERVER[
"PHP_SELF"]).
'?'.
dol_escape_htmltag($_SERVER[
"QUERY_STRING"]).
' -->'.
"\n";
83if ($action ==
'MAIN_FIRST_PING_OK_DATE') {
89 print
'First ping OK saved for entity '.$conf->entity;
90} elseif ($action ==
'MAIN_LAST_PING_KO_DATE') {
94 print
'First ping KO saved for entity '.$conf->entity;
95} elseif ($action ==
'MAIN_FIRST_REGISTRATION_OK_DATE') {
101 print
'First ping OK saved for entity '.$conf->entity;
102} elseif ($action ==
'MAIN_LAST_REGISTRATION_KO_DATE') {
106 print
'First ping KO saved for entity '.$conf->entity;
108 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).
dol_now($mode='gmt')
Return date for now.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=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)
Returns text escaped for inclusion in HTML alt or title or value tags, or into values of HTML input f...
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.