forked from extern/egroupware
added check for required php version 4.3+
This commit is contained in:
parent
8ff737cd08
commit
6100a04ecf
@ -54,6 +54,12 @@
|
||||
}
|
||||
}
|
||||
$checks = array(
|
||||
'phpversion' => array(
|
||||
'func' => 'php_version',
|
||||
'value' => 4.3,
|
||||
'verbose_value' => '4.3+',
|
||||
'recommended' => '5.0',
|
||||
),
|
||||
'safe_mode' => array(
|
||||
'func' => 'php_ini_check',
|
||||
'value' => 0,
|
||||
@ -177,6 +183,17 @@
|
||||
{
|
||||
define('PHP_SHLIB_PREFIX',PHP_SHLIB_SUFFIX == 'dll' ? 'php_' : '');
|
||||
}
|
||||
|
||||
function php_version($name,$args)
|
||||
{
|
||||
global $passed_icon, $error_icon;
|
||||
|
||||
$version_ok = (float) phpversion() >= $args['value'];
|
||||
|
||||
echo '<div>'.($version_ok ? $passed_icon : $error_icon).' <span'.($version_ok ? '' : ' class="setup_error"').'>'.
|
||||
lang('Checking required PHP version %1 (recommended %2)',$args['verbose_value'],$args['recommended']).': '.
|
||||
phpversion().' ==> '.($version_ok ? lang('True') : lang('False'))."</span></div>\n";
|
||||
}
|
||||
|
||||
function pear_check($package,$args)
|
||||
{
|
||||
|
@ -90,6 +90,7 @@ checking file-permissions of %1 for %2 %3: %4 setup de
|
||||
checking for gd support... setup de Überprüfe die GD Unterstützung...
|
||||
checking pear%1 is installed setup de Überprüfe ob PEAR%1 installiert ist
|
||||
checking php.ini setup de Überprüfe die php.ini Datei
|
||||
checking required php version %1 (recommended %2) setup de Überprüfe benötigte PHP Version %1 (empfohlen %2)
|
||||
checking the egroupware installation setup de Überprüfe die eGroupWare-Installation
|
||||
click <a href="index.php">here</a> to return to setup. setup de <a href="index.php">Hier klicken</a> um zu Setup zurück zu kehren.
|
||||
click here setup de Hier klicken
|
||||
|
@ -90,6 +90,7 @@ checking file-permissions of %1 for %2 %3: %4 setup en Checking file-permissions
|
||||
checking for gd support... setup en Checking for GD support...
|
||||
checking pear%1 is installed setup en Checking PEAR%1 is installed
|
||||
checking php.ini setup en Checking php.ini
|
||||
checking required php version %1 (recommended %2) setup en Checking required PHP version %1 (recommended %2)
|
||||
checking the egroupware installation setup en Checking the eGroupWare Installation
|
||||
click <a href="index.php">here</a> to return to setup. setup en click <a href="index.php">here</a> to return to setup.
|
||||
click here setup en Click Here
|
||||
|
Loading…
Reference in New Issue
Block a user