From a2375349cde8876ab03038b6c6ba98b25fb222d4 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 27 Mar 2009 10:40:54 +0000 Subject: [PATCH] - New index page with integrated setup SVN:code[10] --- index.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 index.php 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"); +} +?>