[Fusionforge-commits] r10084 - trunk/src/www/admin

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Thu Jun 17 20:19:06 CEST 2010


Author: aljeux
Date: 2010-06-17 20:19:05 +0200 (Thu, 17 Jun 2010)
New Revision: 10084

Modified:
   trunk/src/www/admin/admin_utils.php
Log:
Add a warning if php < 5.1 (for admin user)

Modified: trunk/src/www/admin/admin_utils.php
===================================================================
--- trunk/src/www/admin/admin_utils.php	2010-06-17 17:24:17 UTC (rev 10083)
+++ trunk/src/www/admin/admin_utils.php	2010-06-17 18:19:05 UTC (rev 10084)
@@ -24,6 +24,9 @@
 function site_admin_header($params) {
 	session_require_global_perm ('forge_admin');
 
+	if (version_compare(PHP_VERSION, '5.1.0', '<')) {
+		$GLOBALS['warning_msg'] = 'WARNING: Your php version must not be lower than 5.1.0, please upgrade';
+	}
 	if (get_magic_quotes_gpc()) {
 		$GLOBALS['warning_msg'] = 'WARNING: Your installation is running with php magic_quotes_gpc ON, please change to OFF';
 	}




More information about the Fusionforge-commits mailing list