diff --git a/htdocs/core/lib/functions2.lib.php b/htdocs/core/lib/functions2.lib.php index 00f7e6d3ecb..94cb81306af 100644 --- a/htdocs/core/lib/functions2.lib.php +++ b/htdocs/core/lib/functions2.lib.php @@ -3129,6 +3129,8 @@ function printCodeForPing($constanttosavelastko, $constanttosavefirstok, $arrayo global $dolibarr_distrib; global $db, $conf; + require_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php'; + $algo = 'sha256'; $hash_unique_id = getHashUniqueIdOfRegistration($algo); diff --git a/htdocs/install/step2.php b/htdocs/install/step2.php index f485650eabb..a1a00e61d64 100644 --- a/htdocs/install/step2.php +++ b/htdocs/install/step2.php @@ -39,6 +39,7 @@ include 'inc.php'; * @var string $dolibarr_main_instance_unique_id */ +require_once $dolibarr_main_document_root.'/blockedlog/lib/blockedlog.lib.php'; require_once $dolibarr_main_document_root.'/core/class/conf.class.php'; require_once $dolibarr_main_document_root.'/core/lib/admin.lib.php'; require_once $dolibarr_main_document_root.'/core/lib/security.lib.php'; diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 867dceb8306..c058ea06af2 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -3765,6 +3765,8 @@ if (!function_exists("llxFooter")) { $forceping = GETPOSTINT('forceping'); if (($_SERVER["PHP_SELF"] == DOL_URL_ROOT.'/index.php') || $forceping) { + require_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php'; + $hash_unique_id_ping = getHashUniqueIdOfRegistration('sha256'); $constanttosavelastko = 'MAIN_LAST_PING_KO_DATE'; $constanttosavefirstok = 'MAIN_FIRST_PING_OK_DATE'; @@ -3802,7 +3804,8 @@ if (!function_exists("llxFooter")) { $forceregistration = GETPOSTINT('forceregistration'); if (isModEnabled('blockedlog') && (($_SERVER["PHP_SELF"] == DOL_URL_ROOT.'/index.php') || $forceregistration)) { - include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php'; + require_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php'; + if (!isALNEQualifiedVersion()) { print "\n\n"; } elseif (!isRegistrationDataSaved()) {