thomascube
2008-02-28 58670b2a9d88f9eb72b86ef458e679aedf42a1db
installer/rcube_install.php
@@ -26,7 +26,9 @@
  var $step;
  var $failures = 0;
  var $config = array();
  var $configured = false;
  var $last_error = null;
  var $email_pattern = '([a-z0-9][a-z0-9\-\.\+\_]*@[a-z0-9]([a-z0-9\-][.]?)*[a-z0-9])';
  
  /**
   * Constructor
@@ -63,7 +65,9 @@
   */
  function load_config()
  {
    $this->config = array();
    $this->_load_config('.php');
    $this->configured = !empty($this->config);
  }
  /**
@@ -88,16 +92,17 @@
   * Getter for a certain config property
   *
   * @param string Property name
   * @param string Default value
   * @return string The property value
   */
  function getprop($name)
  function getprop($name, $default = '')
  {
    $value = isset($_REQUEST["_$name"]) ? $_REQUEST["_$name"] : $this->config[$name];
    
    if ($name == 'des_key' && !isset($_REQUEST["_$name"]))
      $value = self::random_key(24);
    
    return $value;
    return $value !== null && $value !== '' ? $value : $default;
  }