Move file securitycore.lib.php into blockedlog directory.
This commit is contained in:
parent
f7c70cf7fb
commit
83d1720ef8
7 changed files with 7 additions and 7 deletions
|
|
@ -195,7 +195,7 @@ if ($action == 'export' && $user->hasRight('blockedlog', 'read')) { // read is
|
|||
// Refuse and cancel any trigger event if we are running a certified version without forcing https.
|
||||
// This is a security requirement for certification. We do this check before any other to avoid any risk of logging an event that should be blocked because of non respect of certification rules.
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/securitycore.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/securitycore.lib.php';
|
||||
|
||||
$isqualified = isALNERunningVersion(1);
|
||||
if ($isqualified && (defined('CERTIF_LNE') && (int) constant('CERTIF_LNE') == 1) && !isHTTPS() && !in_array($action, array('DOC_PREVIEW', 'DOC_DOWNLOAD'))) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
*/
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/versionmod.inc.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/securitycore.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/securitycore.lib.php';
|
||||
|
||||
|
||||
/**
|
||||
|
|
@ -2397,7 +2397,7 @@ class BlockedLog
|
|||
public function canBeEnabled()
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/blockedlog.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/securitycore.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/securitycore.lib.php';
|
||||
|
||||
$isqualified = isALNEQualifiedVersion(0, 1);
|
||||
|
||||
|
|
|
|||
|
|
@ -1508,7 +1508,7 @@ function sanitizeVal($out = '', $check = 'alphanohtml', $filter = null, $options
|
|||
*/
|
||||
function dolSetCookie(string $cookiename, string $cookievalue, int $expire = -1)
|
||||
{
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/securitycore.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/securitycore.lib.php';
|
||||
|
||||
global $dolibarr_main_force_https;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@
|
|||
* because it is used at low code level.
|
||||
*/
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/securitycore.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/securitycore.lib.php';
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ if (empty(DOL_DOCUMENT_ROOT) || !file_exists(DOL_DOCUMENT_ROOT."/core/lib/functi
|
|||
// Included by default (must be before the CSRF check so wa can use the dol_syslog)
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/functions.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/security.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/securitycore.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/securitycore.lib.php';
|
||||
//print memory_get_usage();
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ require_once 'filefunc.inc.php';
|
|||
* @var ?string $dolibarr_main_demo
|
||||
*/
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/core/lib/securitycore.lib.php';
|
||||
include_once DOL_DOCUMENT_ROOT.'/blockedlog/lib/securitycore.lib.php';
|
||||
|
||||
// If there is a POST parameter to tell to save automatically some POST parameters into cookies, we do it.
|
||||
// This is used for example by form of boxes to save personalization of some options.
|
||||
|
|
|
|||
Loading…
Reference in a new issue