summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-01-17 18:56:24 +0100
committerandi <andi@splitbrain.org>2005-01-17 18:56:24 +0100
commit49022a38de6b3289acdc911643fcc1a43154b809 (patch)
tree2adf29ea75559aaa17e4c4864f14831bf91a3077 /inc
parent95ced01f953ccd5397adc3c99b8b7f82a44c9203 (diff)
downloadrpg-49022a38de6b3289acdc911643fcc1a43154b809.tar.gz
rpg-49022a38de6b3289acdc911643fcc1a43154b809.tar.bz2
PHP version check
darcs-hash:20050117175624-9977f-ab994982de0366e96e1066212e6ff3c53808fbbf.gz
Diffstat (limited to 'inc')
-rw-r--r--inc/common.php8
1 files changed, 8 insertions, 0 deletions
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{