Permalink
Browse files

More installer stuff

  • Loading branch information...
1 parent e8a89e8 commit c5042d468e605a7ec9bb6883ba721c8fd222b4ec @thomascube thomascube committed Feb 25, 2008
View
@@ -1,9 +1,5 @@
<?php
-$docroot = realpath(dirname(__FILE__) . '/../');
-$include_path = $docroot . '/program/lib' . PATH_SEPARATOR . $docroot . '/program' . PATH_SEPARATOR . ini_get('include_path');
-set_include_path($include_path);
-
$required_php_exts = array('PCRE' => 'pcre', 'Session' => 'session', 'Sockets' => 'sockets');
$optional_php_exts = array('FileInfo' => 'fileinfo', 'Libiconv' => 'iconv', 'Multibyte' => 'mbstring', 'OpenSSL' => 'openssl');
@@ -14,6 +10,10 @@
$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 @@
echo "<br />";
}
+
+?>
+
+<h3>Checking php.ini/.htaccess settings</h3>
+
+<?php
+
+foreach ($ini_checks as $var => $val) {
+ $status = ini_get($var);
+ if ($status == $val) {
+ $RCI->pass($var);
+ }
+ else {
+ $RCI->fail($var, "is '$status', should be '$val'");
+ }
+ echo '<br />';
+}
+?>
+
+<?php
+
if ($RCI->failures)
echo '<p class="warning">Sorry but your webserver does not meet the requirements for RoundCube!<br />
Please install the missing modules according to the above check results.</p>';
View
@@ -0,0 +1,36 @@
+
+function toggleblock(id, link)
+{
+ var block = document.getElementById(id);
+
+ return false;
+}
+
+
+function addhostfield()
+{
+ var container = document.getElementById('defaulthostlist');
+ var row = document.createElement('div');
+ var input = document.createElement('input');
+ var link = document.createElement('a');
+
+ input.name = '_default_host[]';
+ input.size = '30';
+ link.href = '#';
+ link.onclick = function() { removehostfield(this.parentNode); return false };
+ link.className = 'removelink';
+ link.innerHTML = 'remove';
+
+ row.appendChild(input);
+ row.appendChild(link);
+ container.appendChild(row);
+}
+
+
+function removehostfield(row)
+{
+ var container = document.getElementById('defaulthostlist');
+ container.removeChild(row);
+}
+
+
Oops, something went wrong.

0 comments on commit c5042d4

Please sign in to comment.