From 69e65e95c6d6f91d8bf03cc9a0d5fdbbfad33c44 Mon Sep 17 00:00:00 2001 From: mattpass Date: Sat, 11 Jul 2020 09:59:15 +0100 Subject: [PATCH] iceLoc prefixed asset paths, check data dir, tweak create/read message --- lib/requirements.php | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/lib/requirements.php b/lib/requirements.php index 6fe853d..de65460 100644 --- a/lib/requirements.php +++ b/lib/requirements.php @@ -37,9 +37,9 @@ if (false === $reqsPassed) { - - - + + + @@ -47,7 +47,7 @@ if (false === $reqsPassed) {
- ICEcoder + ICEcoder
v versionNo;?>
@@ -57,11 +57,20 @@ if (false === $reqsPassed) { if (true === in_array("phpVersion", $reqsFailures)) { echo "Your PHP version is " . phpversion() . "
and needs 7.0 or above

"; } + if (true === in_array("phpDataDirDoesntExist", $reqsFailures)) { + echo "You don't seem to have a:
data dir
Please check and possibly
reinstall ICEcoder

"; + } + if (true === in_array("phpDataDirNotReadable", $reqsFailures)) { + echo "You don't seem to be able
to read the data dir

"; + } + if (true === in_array("phpDataDirNotWritable", $reqsFailures)) { + echo "You don't seem to be able
to write to the data dir

"; + } if (true === in_array("phpSession", $reqsFailures)) { echo "You don't appear to have a
working PHP session

"; } if (true === in_array("phpCreateConfig", $reqsFailures)) { - echo "Cannot create config file:
data/" . $settingsClass->getConfigGlobalFileDetails()['fileName'] . "
Please check write permissions
on data dir and reload page

"; + echo "Cannot create config or read file:
data/" . $settingsClass->getConfigGlobalFileDetails()['fileName'] . "
Please check write permissions
on data dir and reload page

"; } if (true === in_array("phpFileExists", $reqsFailures)) { echo "You don't seem to have
the config file

";