diff --git a/index.php b/index.php new file mode 100644 index 000000000..21ce9f3d3 --- /dev/null +++ b/index.php @@ -0,0 +1,32 @@ +Error: Unable to read the configuration file: '$sConfigFile'. Please check the access rights on this file.

"; + } + else if (is_writable($sConfigFile)) + { + echo "

Security Warning: the configuration file '$sConfigFile' should be read-only.

"; + echo "

Please modify the access rights to this file.

"; + echo "

Click here to ignore this warning and continue to run iTop.

"; + } + else + { + header("Location: $sStartPage"); + } +} +else +{ + // Config file does not exist, need to run the setup wizard to create it + header("Location: $sSetupPage"); +} +?>