From b3f9dfb54e46e63d14e605ea88605b6bc1ffa17d Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 27 Feb 2008 08:11:17 +0000 Subject: Allow to skip the config step if config files already exist --- installer/config.php | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'installer/config.php') diff --git a/installer/config.php b/installer/config.php index c110276aa..2719cdb87 100644 --- a/installer/config.php +++ b/installer/config.php @@ -5,7 +5,7 @@ ini_set('display_errors', 1); require_once 'include/rcube_html.inc'; -$RCI->load_config(); +// also load the default config to fill in the fields $RCI->load_defaults(); if (!empty($_POST['submit'])) { @@ -235,12 +235,16 @@ echo $select_dbba->show($RCI->getprop('db_backend'));
getprop('default_host')); +$default_hosts = (array)$RCI->getprop('default_host'); $text_imaphost = new textfield(array('name' => '_default_host[]', 'size' => 30)); -for ($i=0; $i < count($default_hosts); $i++) { - echo '
' . $text_imaphost->show($default_hosts[$i]); - if ($i > 0) +$i = 0; +foreach ($default_hosts as $key => $name) { + if (empty($name)) + continue; + $host = is_numeric($key) ? $name : $key; + echo '
' . $text_imaphost->show($host); + if ($i++ > 0) echo 'remove'; echo '
'; } @@ -249,7 +253,7 @@ for ($i=0; $i < count($default_hosts); $i++) {
add
-

Leave blank to show a textbox at login

+

Leave blank to show a textbox at login. To use SSL/IMAPS connection, type ssl://hostname

default_port
@@ -431,7 +435,7 @@ echo $input_locale->show($RCI->getprop('locale_string')); failures ? 'disabled' : '') . ' />

'; +echo '

failures ? 'disabled' : '') . ' />

'; ?> -- cgit v1.2.3