From 79b862862dcf1862f91f8a55ee5f45f6c0d515fc Mon Sep 17 00:00:00 2001 From: mattpass Date: Thu, 28 May 2020 07:15:43 +0100 Subject: [PATCH] Formatting 2 x files --- lib/requirements.php | 37 +++++++++++++++++++------------------ lib/session-active-ping.php | 4 ++-- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/lib/requirements.php b/lib/requirements.php index cfafea6..5f90c73 100644 --- a/lib/requirements.php +++ b/lib/requirements.php @@ -1,5 +1,5 @@ @@ -42,11 +42,12 @@ if (!$reqsPassed) { + - +
@@ -58,31 +59,31 @@ if (!$reqsPassed) { Requirements problem!



Sorry, but ICEcoder has a problem
running on your server:



and needs 7.0 or above

"; + if (true === in_array("phpVersion", $reqsFailures)) { + echo "Your PHP version is " . phpversion() . "
and needs 7.0 or above

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

"; } - if (in_array("phpReadFile", $reqsFailures)) { + if (true === in_array("phpReadFile", $reqsFailures)) { echo "You don't seem to be able
to read the config file

"; } - if (in_array("phpAllowURLFOpen", $reqsFailures)) { + if (true === in_array("phpAllowURLFOpen", $reqsFailures)) { echo "You don't seem to have
allow_url_fopen enabled

"; } - if (in_array("phpCreateConfig", $reqsFailures)) { + if (true === in_array("phpCreateConfig", $reqsFailures)) { echo "Cannot update config file:
data/".$configSettings."
Please check write permissions
on data dir and reload page

"; } - if (in_array("phpCreateSettings", $reqsFailures)) { + if (true === in_array("phpCreateSettings", $reqsFailures)) { echo "Couldn't create:
data/$settingsFile
Maybe you need write
permissions on the data dir?

"; } - if (in_array("phpUpdateSettings", $reqsFailures)) { + if (true === in_array("phpUpdateSettings", $reqsFailures)) { echo "Can't update config file:
data/".$settingsFile."
Please check write permissions
on data dir and reload page

"; } - if (in_array("phpCreateSettingsFileAddr", $reqsFailures)) { + if (true === in_array("phpCreateSettingsFileAddr", $reqsFailures)) { echo "Couldn't create:
data/$settingsFileAddr
Maybe you need write
permissions on the data dir?

"; } - if (in_array("systemIPRestriction", $reqsFailures)) { + if (true === in_array("systemIPRestriction", $reqsFailures)) { echo "Not in permitted IPs list

"; } ?> diff --git a/lib/session-active-ping.php b/lib/session-active-ping.php index f0b08be..383e60c 100644 --- a/lib/session-active-ping.php +++ b/lib/session-active-ping.php @@ -1,5 +1,5 @@