mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°2249 - Supportability - Updater module (Allow to run setup in case of failure)
This commit is contained in:
15
index.php
15
index.php
@@ -17,9 +17,18 @@ if (file_exists(dirname(__FILE__).'/'.$sConfigFile))
|
||||
}
|
||||
else if (is_writable($sConfigFile))
|
||||
{
|
||||
echo "<p><b>Security Warning</b>: the configuration file '$sConfigFile' should be read-only.</p>";
|
||||
echo "<p>Please modify the access rights to this file.</p>";
|
||||
echo "<p>Click <a href=\"$sStartPage\">here</a> to ignore this warning and continue to run iTop.</p>";
|
||||
require_once (APPROOT.'setup/setuputils.class.inc.php');
|
||||
if (SetupUtils::IsInReadOnlyMode())
|
||||
{
|
||||
echo "<p><b>Warning</b>: the application is currently in maintenance, please wait.</p>";
|
||||
echo "<p>Click <a href=\"$sStartPage\">here</a> to ignore this warning and continue to run iTop in read-only mode.</p>";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<p><b>Security Warning</b>: the configuration file '$sConfigFile' should be read-only.</p>";
|
||||
echo "<p>Please modify the access rights to this file.</p>";
|
||||
echo "<p>Click <a href=\"$sStartPage\">here</a> to ignore this warning and continue to run iTop.</p>";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user