From c5042d468e605a7ec9bb6883ba721c8fd222b4ec Mon Sep 17 00:00:00 2001 From: thomascube Date: Mon, 25 Feb 2008 23:03:54 +0000 Subject: More installer stuff --- installer/check.php | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) (limited to 'installer/check.php') diff --git a/installer/check.php b/installer/check.php index 33264a0e2..9f54d8f8f 100644 --- a/installer/check.php +++ b/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