Fix include
This commit is contained in:
parent
8978367505
commit
4d319bc2e1
3 changed files with 7 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
|
|
@ -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<!-- NO JS CODE TO ENABLE the registration. Not a LNE qualified version -->\n";
|
||||
} elseif (!isRegistrationDataSaved()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue