alecpl
2010-02-13 48bc52e835bd5485f7443d54399e4fb0d36732d7
program/include/rcube_config.php
@@ -15,7 +15,7 @@
 | Author: Thomas Bruederli <roundcube@gmail.com>                        |
 +-----------------------------------------------------------------------+
 $Id: $
 $Id$
*/
@@ -68,9 +68,9 @@
      $this->prop['skin'] = 'default';
    // fix paths
    $this->prop['log_dir'] = $this->prop['log_dir'] ? unslashify($this->prop['log_dir']) : INSTALL_PATH . 'logs';
    $this->prop['temp_dir'] = $this->prop['temp_dir'] ? unslashify($this->prop['temp_dir']) : INSTALL_PATH . 'temp';
    $this->prop['log_dir'] = $this->prop['log_dir'] ? realpath(unslashify($this->prop['log_dir'])) : INSTALL_PATH . 'logs';
    $this->prop['temp_dir'] = $this->prop['temp_dir'] ? realpath(unslashify($this->prop['temp_dir'])) : INSTALL_PATH . 'temp';
    // fix default imap folders encoding
    foreach (array('drafts_mbox', 'junk_mbox', 'sent_mbox', 'trash_mbox') as $folder)
      $this->prop[$folder] = rcube_charset_convert($this->prop[$folder], RCMAIL_CHARSET, 'UTF7-IMAP');
@@ -180,7 +180,7 @@
  {
    $this->prop = array_merge($this->prop, $prefs);
  }
  
  /**
   * Getter for all config options
@@ -191,6 +191,7 @@
  {
    return $this->prop;
  }
  /**
   * Return requested DES crypto key.
@@ -204,9 +205,8 @@
    if (!array_key_exists($key, $this->prop))
    {
      raise_error(array(
        'code' => 500,
        'type' => 'php',
        'file' => __FILE__,
        'code' => 500, 'type' => 'php',
        'file' => __FILE__, 'line' => __LINE__,
        'message' => "Request for unconfigured crypto key \"$key\""
      ), true, true);
    }
@@ -217,15 +217,15 @@
    if (strlen($key) != 24)
    {
      raise_error(array(
        'code' => 500,
        'type' => 'php',
        'file' => __FILE__,
        'code' => 500, 'type' => 'php',
   'file' => __FILE__, 'line' => __LINE__,
        'message' => "Configured crypto key \"$key\" is not exactly 24 bytes long"
      ), true, true);
    }
    return $key;
  }
  /**
   * Try to autodetect operating system and find the correct line endings
@@ -244,9 +244,8 @@
    else
      return "\n";
  }
  /**
   * Return the mail domain configured for the given host
   *