|
@@ -241,14 +241,41 @@ print '<br>';
|
|
|
print '<br>';
|
|
|
|
|
|
$installlock = DOL_DATA_ROOT.'/install.lock';
|
|
|
+$upgradeunlock = DOL_DATA_ROOT.'/upgrade.unlock';
|
|
|
+$installmoduleslock = DOL_DATA_ROOT.'/installmodules.lock';
|
|
|
+
|
|
|
+// Is install (upgrade) locked
|
|
|
print '<strong>'.$langs->trans("DolibarrSetup").'</strong>: ';
|
|
|
if (file_exists($installlock)) {
|
|
|
- print img_picto('', 'tick').' '.$langs->trans("InstallAndUpgradeLockedBy", $installlock);
|
|
|
+ if (file_exists($upgradeunlock)) {
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("InstallLockedBy", $installlock);
|
|
|
+ } else {
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("InstallAndUpgradeLockedBy", $installlock);
|
|
|
+ }
|
|
|
} else {
|
|
|
print img_warning().' '.$langs->trans("WarningLockFileDoesNotExists", DOL_DATA_ROOT);
|
|
|
}
|
|
|
print '<br>';
|
|
|
|
|
|
+// Is upgrade unlocked
|
|
|
+if (file_exists($installlock)) { // If install not locked, no need to show this.
|
|
|
+ if (file_exists($upgradeunlock)) {
|
|
|
+ print '<strong>'.$langs->trans("DolibarrUpgrade").'</strong>: ';
|
|
|
+ print img_warning().' '.$langs->trans("UpgradeHasBeenUnlocked", $upgradeunlock);
|
|
|
+ print '<br>';
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// Is addon install locked ?
|
|
|
+print '<strong>'.$langs->trans("DolibarrAddonInstall").'</strong>: ';
|
|
|
+if (file_exists($installmoduleslock)) {
|
|
|
+ print img_picto('', 'tick').' '.$langs->trans("InstallAndUpgradeLockedBy", $installmoduleslock);
|
|
|
+} else {
|
|
|
+ print $langs->trans("InstallOfAddonIsNotBlocked", DOL_DATA_ROOT);
|
|
|
+}
|
|
|
+print '<br>';
|
|
|
+
|
|
|
+
|
|
|
|
|
|
// File conf.php
|
|
|
|