Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2020-08-21 09:19:27 +0300
committerAleksander Machniak <alec@alec.pl>2020-08-21 09:19:27 +0300
commitbdeb0db6cbf9f2a28822e75d562117925a9c6da3 (patch)
tree99e9716eff3fb3ac5b530b82ce10856cd4c8578e /installer/test.php
parentb7d4596aa9a0031fb0c3fa105e4febf3b78530f2 (diff)
Small code fixes
Diffstat (limited to 'installer/test.php')
-rw-r--r--installer/test.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/installer/test.php b/installer/test.php
index 264e0b0d6..0566fa7a6 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -13,7 +13,7 @@
+-----------------------------------------------------------------------+
*/
-if (!class_exists('rcmail_install', false) || !is_object($RCI)) {
+if (!class_exists('rcmail_install', false) || !isset($RCI)) {
die("Not allowed! Please open installer/index.php instead.");
}
@@ -115,7 +115,7 @@ foreach ($dirs as $dir) {
echo '<br />';
}
-if (!$pass) {
+if (empty($pass)) {
echo '<p class="hint">Use <tt>chmod</tt> or <tt>chown</tt> to grant write privileges to the webserver</p>';
}
@@ -158,7 +158,6 @@ if ($db_working && $_POST['initdb']) {
Make sure that the configured database extists and that the user as write privileges</p>';
}
}
-
else if ($db_working && $_POST['updatedb']) {
if (!$RCI->update_db($_POST['version'])) {
echo '<p class="warning">Database schema update failed.</p>';
@@ -224,7 +223,7 @@ if ($db_working) {
// sometimes db and web servers are on separate hosts, so allow a 30 minutes delta
if (abs($tz_diff) > 1800) {
- $RCI->fail('DB Time', "Database time differs {$td_ziff}s from PHP time");
+ $RCI->fail('DB Time', "Database time differs {$tz_diff}s from PHP time");
}
else {
$RCI->pass('DB Time');
@@ -442,6 +441,7 @@ if (isset($_POST['imaptest']) && !empty($_POST['_host']) && !empty($_POST['_user
$imap_host = trim($_POST['_host']);
$imap_port = $RCI->getprop('default_port');
+ $imap_ssl = false;
$a_host = parse_url($imap_host);
if ($a_host['host']) {
@@ -456,7 +456,7 @@ if (isset($_POST['imaptest']) && !empty($_POST['_host']) && !empty($_POST['_user
$imap_host = rcube_utils::idn_to_ascii($imap_host);
$imap_user = rcube_utils::idn_to_ascii($_POST['_user']);
- $imap = new rcube_imap(null);
+ $imap = new rcube_imap;
$imap->set_options(array(
'auth_type' => $RCI->getprop('imap_auth_type'),
'debug' => $RCI->getprop('imap_debug'),