This commit is contained in:
Laurent Destailleur 2022-11-22 23:53:00 +01:00
parent 427a785fb3
commit 5ba80117ec
3 changed files with 4 additions and 4 deletions

View File

@ -106,8 +106,8 @@ if (!empty($conf->global->MAIN_MOTD)) {
* Show security warnings * Show security warnings
*/ */
// Security warning repertoire install existe (si utilisateur admin) // Security warning if install.lock file is missing or if conf file is writable
if ($user->admin && empty($conf->global->MAIN_REMOVE_INSTALL_WARNING)) { if (empty($conf->global->MAIN_REMOVE_INSTALL_WARNING)) {
$message = ''; $message = '';
// Check if install lock file is present // Check if install lock file is present

View File

@ -297,7 +297,7 @@ if ($action == "set" || empty($action) || preg_match('/upgrade/i', $action)) {
} }
dolibarr_install_syslog('step5: remove MAIN_NOT_INSTALLED const'); dolibarr_install_syslog('step5: remove MAIN_NOT_INSTALLED const');
$resql = $db->query("DELETE FROM ".MAIN_DB_PREFIX."const WHERE ".$db->decrypt('name')."='MAIN_NOT_INSTALLED'"); $resql = $db->query("DELETE FROM ".MAIN_DB_PREFIX."const WHERE ".$db->decrypt('name')." = 'MAIN_NOT_INSTALLED'");
if (!$resql) { if (!$resql) {
dol_print_error($db, 'Error in setup program'); dol_print_error($db, 'Error in setup program');
} }

View File

@ -314,7 +314,7 @@ WarningConfFileMustBeReadOnly=Warning, your config file (<b>htdocs/conf/conf.php
WarningsOnXLines=Warnings on <b>%s</b> source record(s) WarningsOnXLines=Warnings on <b>%s</b> source record(s)
WarningNoDocumentModelActivated=No model, for document generation, has been activated. A model will be chosen by default until you check your module setup. WarningNoDocumentModelActivated=No model, for document generation, has been activated. A model will be chosen by default until you check your module setup.
WarningLockFileDoesNotExists=Warning, once setup is finished, you must disable the installation/migration tools by adding a file <b>install.lock</b> into directory <b>%s</b>. Omitting the creation of this file is a grave security risk. WarningLockFileDoesNotExists=Warning, once setup is finished, you must disable the installation/migration tools by adding a file <b>install.lock</b> into directory <b>%s</b>. Omitting the creation of this file is a grave security risk.
WarningUntilDirRemoved=All security warnings (visible by admin users only) will remain active as long as the vulnerability is present (or that constant MAIN_REMOVE_INSTALL_WARNING is added in Setup->Other Setup). WarningUntilDirRemoved=This security warning will remain active as long as the vulnerability is present.
WarningCloseAlways=Warning, closing is done even if amount differs between source and target elements. Enable this feature with caution. WarningCloseAlways=Warning, closing is done even if amount differs between source and target elements. Enable this feature with caution.
WarningUsingThisBoxSlowDown=Warning, using this box slow down seriously all pages showing the box. WarningUsingThisBoxSlowDown=Warning, using this box slow down seriously all pages showing the box.
WarningClickToDialUserSetupNotComplete=Setup of ClickToDial information for your user are not complete (see tab ClickToDial onto your user card). WarningClickToDialUserSetupNotComplete=Setup of ClickToDial information for your user are not complete (see tab ClickToDial onto your user card).