thomascube
2012-01-18 7fe3811c65a7c63154f03610e289a6d196f3ae2e
installer/rcube_install.php
@@ -6,10 +6,13 @@
 |                                                                       |
 | This file is part of the Roundcube Webmail package                    |
 | Copyright (C) 2008-2011, The Roundcube Dev Team                       |
 | Licensed under the GNU Public License                                 |
 |                                                                       |
 | Licensed under the GNU General Public License version 3 or            |
 | any later version with exceptions for skins & plugins.                |
 | See the README file for a full license statement.                     |
 +-----------------------------------------------------------------------+
 $Id:  $
 $Id$
*/
@@ -40,14 +43,16 @@
    'multiple_identities' => 'identities_level',
    'addrbook_show_images' => 'show_images',
    'imap_root' => 'imap_ns_personal',
    'pagesize' => 'mail_pagesize',
    'default_imap_folders' => 'default_folders',
  );
  // these config options are required for a working system
  var $required_config = array(
    'db_dsnw', 'db_table_contactgroups', 'db_table_contactgroupmembers',
    'des_key', 'session_lifetime',
  );
  /**
   * Constructor
   */
@@ -169,7 +174,7 @@
        if (count($value) <= 1)
          $value = $value[0];
      }
      else if ($prop == 'pagesize') {
      else if ($prop == 'mail_pagesize' || $prop == 'addressbook_pagesize') {
        $value = max(2, intval($value));
      }
      else if ($prop == 'smtp_user' && !empty($_POST['_smtp_user_u'])) {
@@ -178,9 +183,9 @@
      else if ($prop == 'smtp_pass' && !empty($_POST['_smtp_user_u'])) {
        $value = '%p';
      }
      else if ($prop == 'default_imap_folders') {
      else if ($prop == 'default_folders') {
       $value = array();
       foreach ($this->config['default_imap_folders'] as $_folder) {
       foreach ($this->config['default_folders'] as $_folder) {
         switch ($_folder) {
         case 'Drafts': $_folder = $this->config['drafts_mbox']; break;
         case 'Sent':   $_folder = $this->config['sent_mbox']; break;
@@ -518,7 +523,7 @@
        '0.4-beta', '0.4.2',
        '0.5-beta', '0.5', '0.5.1',
        '0.6-beta', '0.6',
        '0.7-beta', '0.7',
        '0.7-beta', '0.7', '0.7.1'
    ));
    return $select;
  }