From b7a00e1ed4d934703d64fd5b8db0a978f8f7f0c5 Mon Sep 17 00:00:00 2001 From: thomasb Date: Mon, 25 Feb 2008 23:03:54 +0000 Subject: More installer stuff git-svn-id: https://svn.roundcube.net/trunk@1139 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/installer/check.php | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'roundcubemail/installer/check.php') diff --git a/roundcubemail/installer/check.php b/roundcubemail/installer/check.php index 33264a0e2..9f54d8f8f 100644 --- a/roundcubemail/installer/check.php +++ b/roundcubemail/installer/check.php @@ -1,9 +1,5 @@ 'pcre', 'Session' => 'session', 'Sockets' => 'sockets'); $optional_php_exts = array('FileInfo' => 'fileinfo', 'Libiconv' => 'iconv', 'Multibyte' => 'mbstring', 'OpenSSL' => 'openssl'); @@ -14,6 +10,10 @@ $required_libs = array('PEAR' => 'PEAR.php', 'DB' => 'DB.php', 'MDB2' => 'MDB2.p $supported_dbs = array('MySQL' => 'mysql', 'MySQLi' => 'mysqli', 'PostgreSQL' => 'pgsql', 'SQLite (v2)' => 'sqlite'); +$ini_checks = array('file_uploads' => 1, 'session.auto_start' => 0, + 'magic_quotes_gpc' => 0, 'magic_quotes_sybase' => 0, + 'zlib.output_compression' => 0); + $source_urls = array( 'Sockets' => 'http://www.php.net/manual/en/ref.sockets.php', 'Session' => 'http://www.php.net/manual/en/ref.session.php', @@ -122,6 +122,27 @@ foreach ($required_libs as $classname => $file) { echo "
"; } + +?> + +

Checking php.ini/.htaccess settings

+ + $val) { + $status = ini_get($var); + if ($status == $val) { + $RCI->pass($var); + } + else { + $RCI->fail($var, "is '$status', should be '$val'"); + } + echo '
'; +} +?> + +failures) echo '

Sorry but your webserver does not meet the requirements for RoundCube!
Please install the missing modules according to the above check results.

'; -- cgit v1.2.3