From 11e670da55d18a999773374563390c4b378e5e41 Mon Sep 17 00:00:00 2001 From: alecpl Date: Thu, 27 Aug 2009 13:38:26 +0000 Subject: - Don't require date.timezone setting in installer (#1485989) --- installer/check.php | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) (limited to 'installer/check.php') diff --git a/installer/check.php b/installer/check.php index 694455a60..9bdb41ba5 100644 --- a/installer/check.php +++ b/installer/check.php @@ -17,7 +17,9 @@ $supported_dbs = array('MySQL' => 'mysql', 'MySQLi' => 'mysqli', $ini_checks = array('file_uploads' => 1, 'session.auto_start' => 0, 'zend.ze1_compatibility_mode' => 0, 'mbstring.func_overload' => 0, - 'suhosin.session.encrypt' => 0, 'date.timezone' => '-NOTEMPTY-'); + 'suhosin.session.encrypt' => 0); + +$optional_checks = array('date.timezone' => '-NOTEMPTY-'); $source_urls = array( 'Sockets' => 'http://www.php.net/manual/en/ref.sockets.php', @@ -68,7 +70,7 @@ foreach ($required_php_exts AS $name => $ext) { ?> -

The next couple of extensions are optional but recommended to get the best performance:

+

The next couple of extensions are optional and recommended to get the best performance:

$ext) { @@ -127,6 +129,7 @@ foreach ($required_libs as $classname => $file) { ?>

Checking php.ini/.htaccess settings

+

The following settings are required to run RoundCube:

$val) { if (empty($status)) { $RCI->fail($var, "cannot be empty and needs to be set"); } else { - switch ($var) { - case 'date.timezone': - if (date_default_timezone_set($status) === false) { - $RCI->fail($var, "is '$status', but the settings is wrong"); - echo '
'; - continue; - } - break; - } $RCI->pass($var); } echo '
'; @@ -159,6 +153,30 @@ foreach ($ini_checks as $var => $val) { } ?> +

The following settings are optional and recommended:

+ + $val) { + $status = ini_get($var); + if ($val === '-NOTEMPTY-') { + if (empty($status)) { + $RCI->optfail($var, "Could be set"); + } else { + $RCI->pass($var); + } + echo '
'; + continue; + } + if ($status == $val) { + $RCI->pass($var); + } else { + $RCI->optfail($var, "is '$status', could be '$val'"); + } + echo '
'; +} +?> + failures) { -- cgit v1.2.3