Update check.php

$arrayphpminversionwarning = array(5, 6, 0);
This commit is contained in:
UT from dolibit 2021-01-05 18:09:59 +01:00 committed by Laurent Destailleur
parent 9764f086d3
commit a370ba1bbc

View File

@ -77,7 +77,7 @@ if (!empty($useragent))
// Check PHP version // Check PHP version
$arrayphpminversionerror = array(5, 5, 0); $arrayphpminversionerror = array(5, 5, 0);
$arrayphpminversionwarning = array(5, 5, 0); $arrayphpminversionwarning = array(5, 6, 0);
if (versioncompare(versionphparray(), $arrayphpminversionerror) < 0) // Minimum to use (error if lower) if (versioncompare(versionphparray(), $arrayphpminversionerror) < 0) // Minimum to use (error if lower)
{ {
print '<img src="../theme/eldy/img/error.png" alt="Error"> '.$langs->trans("ErrorPHPVersionTooLow", versiontostring($arrayphpminversionerror)); print '<img src="../theme/eldy/img/error.png" alt="Error"> '.$langs->trans("ErrorPHPVersionTooLow", versiontostring($arrayphpminversionerror));
@ -105,7 +105,7 @@ if (!isset($_GET["testget"]) && !isset($_POST["testpost"])) // We must keep $_GE
} }
// Check if sessions enabled // Check if session_id is enabled
if (!function_exists("session_id")) if (!function_exists("session_id"))
{ {
print '<img src="../theme/eldy/img/error.png" alt="Error"> '.$langs->trans("ErrorPHPDoesNotSupportSessions")."<br>\n"; print '<img src="../theme/eldy/img/error.png" alt="Error"> '.$langs->trans("ErrorPHPDoesNotSupportSessions")."<br>\n";
@ -115,7 +115,7 @@ if (!function_exists("session_id"))
} }
// Check if GD supported (we need GD for image conversion) // Check if GD is supported (we need GD for image conversion)
if (!function_exists("imagecreate")) if (!function_exists("imagecreate"))
{ {
$langs->load("errors"); $langs->load("errors");
@ -126,7 +126,7 @@ if (!function_exists("imagecreate"))
} }
// Check if Curl supported // Check if Curl is supported
if (!function_exists("curl_init")) if (!function_exists("curl_init"))
{ {
$langs->load("errors"); $langs->load("errors");
@ -145,7 +145,7 @@ if (!function_exists("easter_date"))
} }
// Check if UTF8 supported // Check if UTF8 is supported
if (!function_exists("utf8_encode")) if (!function_exists("utf8_encode"))
{ {
$langs->load("errors"); $langs->load("errors");
@ -201,7 +201,7 @@ if ($memmaxorig != '')
} }
// If config file present and filled // If that config file is present and filled
clearstatcache(); clearstatcache();
if (is_readable($conffile) && filesize($conffile) > 8) if (is_readable($conffile) && filesize($conffile) > 8)
{ {