noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 08/73: Warning if PHPVERSION < 7.2


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 08/73: Warning if PHPVERSION < 7.2
Date: Fri, 28 May 2021 05:26:16 -0400 (EDT)

sparkyx pushed a commit to branch master
in repository noalyss.

commit 07bd46a0bb5e8f0aeba31709fe12e77fd631bbaf
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Apr 5 18:20:14 2021 +0200

    Warning if PHPVERSION  < 7.2
---
 html/install.php | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/html/install.php b/html/install.php
index 308ae27..4f1ca1c 100644
--- a/html/install.php
+++ b/html/install.php
@@ -358,11 +358,13 @@ if (!defined('PHP_VERSION_ID')) {
 
    define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + 
$version[2]));
 }
-if ( PHP_VERSION_ID < 70033)  {
-    echo $g_failed. " ".phpversion." ". _("Version PHP trop basse , minimum 
7.0.33");
-    
+if ( PHP_VERSION_ID < 70200)  {
+    echo $g_failed. " ".phpversion()." ". _("Version PHP trop basse , minimum 
7.2");
+    echo '<p style="color:grey;margin-left:20px">';
+    printf(_("Il est déconseillé de travailler avec une version < 7.2"));
+    echo '</p>';
 } else {
-    echo $g_succeed. " ".phpversion();
+    echo $g_succeed. " Version PHP ".phpversion();
 }
 //ini_set("memory_limit","200M");
 echo "<ul style=\"list-style-type: square;\">";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]