mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
added check for required php version 4.3+
This commit is contained in:
parent
8ff737cd08
commit
6100a04ecf
@ -54,6 +54,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$checks = array(
|
$checks = array(
|
||||||
|
'phpversion' => array(
|
||||||
|
'func' => 'php_version',
|
||||||
|
'value' => 4.3,
|
||||||
|
'verbose_value' => '4.3+',
|
||||||
|
'recommended' => '5.0',
|
||||||
|
),
|
||||||
'safe_mode' => array(
|
'safe_mode' => array(
|
||||||
'func' => 'php_ini_check',
|
'func' => 'php_ini_check',
|
||||||
'value' => 0,
|
'value' => 0,
|
||||||
@ -178,6 +184,17 @@
|
|||||||
define('PHP_SHLIB_PREFIX',PHP_SHLIB_SUFFIX == 'dll' ? 'php_' : '');
|
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)
|
function pear_check($package,$args)
|
||||||
{
|
{
|
||||||
global $passed_icon, $warning_icon;
|
global $passed_icon, $warning_icon;
|
||||||
|
@ -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 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 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 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
|
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 <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
|
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 for gd support... setup en Checking for GD support...
|
||||||
checking pear%1 is installed setup en Checking PEAR%1 is installed
|
checking pear%1 is installed setup en Checking PEAR%1 is installed
|
||||||
checking php.ini setup en Checking php.ini
|
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
|
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 <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
|
click here setup en Click Here
|
||||||
|
Loading…
Reference in New Issue
Block a user