From 49022a38de6b3289acdc911643fcc1a43154b809 Mon Sep 17 00:00:00 2001 From: andi Date: Mon, 17 Jan 2005 18:56:24 +0100 Subject: PHP version check darcs-hash:20050117175624-9977f-ab994982de0366e96e1066212e6ff3c53808fbbf.gz --- inc/common.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'inc') diff --git a/inc/common.php b/inc/common.php index 5098b76de..c17310d7e 100644 --- a/inc/common.php +++ b/inc/common.php @@ -884,6 +884,14 @@ function check(){ global $conf; global $INFO; + if(version_compare(phpversion(),'4.3.0','<')){ + msg('Your PHP version is too old ('.phpversion().' vs. 4.3.+ recommended)',-1); + }elseif(version_compare(phpversion(),'4.3.10','<')){ + msg('Consider upgrading PHP to 4.3.10 or higher for security reasons (your version: '.phpversion().')',0); + }else{ + msg('PHP version '.phpversion(),1); + } + if(is_writable($conf['changelog'])){ msg('Changelog is writable',1); }else{ -- cgit v1.2.3