diff --git a/lib/requirements.php b/lib/requirements.php index 81bf127..b02951f 100644 --- a/lib/requirements.php +++ b/lib/requirements.php @@ -26,6 +26,12 @@ if (file_exists(dirname(__FILE__)."/../data/config-settings.php")) { } } +// Check we have allow_url_fopen enabled +if (!ini_get('allow_url_fopen')) { + $reqsPassed = false; + array_push($reqsFailures, "phpAllowURLFOpen"); +} + // If any of these failed, show requirements problem info screen if (!$reqsPassed) { // $t = $text['reqsIssue']; @@ -61,6 +67,9 @@ if (!$reqsPassed) { if (in_array("phpReadFile", $reqsFailures)) { echo "You don't seem to be able
to read the config file

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

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

"; }