thomascube
2008-03-28 967b342039261ab294fe85d806fe49ce16391ada
installer/config.php
@@ -20,6 +20,9 @@
  'htmleditor' => 1,
);
// allow the current user to get to the next step
$_SESSION['allowinstaller'] = true;
if (!empty($_POST['submit'])) {
  
  echo '<p class="notice">Copy the following configurations and save them in two files (names above the text box)';
@@ -251,9 +254,13 @@
<?php
$text_imaphost = new textfield(array('name' => '_default_host[]', 'size' => 30));
$default_hosts = $RCI->get_hostlist();
if (empty($default_hosts))
  $default_hosts = array('');
$i = 0;
foreach ($RCI->get_hostlist() as $host) {
foreach ($default_hosts as $host) {
  echo '<div id="defaulthostentry'.$i.'">' . $text_imaphost->show($host);
  if ($i++ > 0)
    echo '<a href="#" onclick="removehostfield(this.parentNode);return false" class="removelink" title="Remove this entry">remove</a>';