summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-03-03 21:32:15 +0000
committerthomascube <thomas@roundcube.net>2008-03-03 21:32:15 +0000
commit807d17a4bedae6d2ebc2eda3236fe1740422b3ba (patch)
treeb9e49a1e1570418c420c253b9d1e0c1d5f484b49 /installer
parentfaebf41a82658efdb6c023e7c738aa024e9a07be (diff)
Make rcube_install class PHP4 compatible + add warning for MDB2 on PHP4 + set MDB2 as default
Diffstat (limited to 'installer')
-rw-r--r--installer/rcube_install.php4
-rw-r--r--installer/test.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/installer/rcube_install.php b/installer/rcube_install.php
index 79d003cdf..8caa79d02 100644
--- a/installer/rcube_install.php
+++ b/installer/rcube_install.php
@@ -103,7 +103,7 @@ class rcube_install
$value = $this->is_post && (isset($_POST["_$name"]) || $this->config_props[$name]) ? $_POST["_$name"] : $this->config[$name];
if ($name == 'des_key' && !isset($_REQUEST["_$name"]))
- $value = self::random_key(24);
+ $value = rcube_install::random_key(24);
return $value !== null && $value !== '' ? $value : $default;
}
@@ -143,7 +143,7 @@ class rcube_install
$value = '';
}
else if ($prop == 'default_host' && is_array($value)) {
- $value = self::_clean_array($value);
+ $value = rcube_install::_clean_array($value);
if (count($value) <= 1)
$value = $value[0];
}
diff --git a/installer/test.php b/installer/test.php
index d83534bb3..7e9903991 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -55,6 +55,8 @@ if (!empty($RCI->config)) {
$RCI->fail('DSN (write)', $db_error_msg);
echo '<p class="hint">Make sure that the configured database extists and that the user as write privileges<br />';
echo 'DSN: ' . $RCI->config['db_dsnw'] . '</p>';
+ if ($RCI->config['db_backend'] == 'mdb2')
+ echo '<p class="hint">There are known problems with MDB2 running on PHP 4. Try setting <tt>db_backend</tt> to \'db\' instead</p>';
}
}
else {