roundcubemail/program/include/rcmail_install.php
public function load_config()
    {
        // defaults
        if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'defaults.inc.php')) {
            $this->config   = (array) $config;
            $this->defaults = $this->config;
        }

        $config = null;

        // config
        if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'config.inc.php')) {
            $this->config = array_merge($this->config, $config);
        }
        else {
            if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'main.inc.php')) {
                $this->config        = array_merge($this->config, $config);
                $this->legacy_config = true;
            }

            if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'db.inc.php')) {
                $this->config        = array_merge($this->config, $config);
                $this->legacy_config = true;
            }
        }

        $this->configured = !empty($config);
    }
public function load_config()
    {
        // defaults
        if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'defaults.inc.php')) {
            $this->config   = (array) $config;
            $this->defaults = $this->config;
        }

        $config = null;

        // config
        if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'config.inc.php')) {
            $this->config = array_merge($this->config, $config);
        }
        else {
            if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'main.inc.php')) {
                $this->config        = array_merge($this->config, $config);
                $this->legacy_config = true;
            }

            if ($config = $this->load_config_file(RCUBE_CONFIG_DIR . 'db.inc.php')) {
                $this->config        = array_merge($this->config, $config);
                $this->legacy_config = true;
            }
        }

        $this->configured = !empty($config);
    }
public function load_config ( ) { // defaults if ( $ config = $ this -> load_config_file ( RCUBE_CONFIG_DIR . 'defaults.inc.php' ) ) { $ this -> config = ( array ) $ config ; $ this -> defaults = $ this -> config ; } $ config = null ; // config if ( $ config = $ this -> load_config_file ( RCUBE_CONFIG_DIR . 'config.inc.php' ) ) { $ this -> config = array_merge ( $ this -> config , $ config ) ; } else { if ( $ config = $ this -> load_config_file ( RCUBE_CONFIG_DIR . 'main.inc.php' ) ) { $ this -> config = array_merge ( $ this -> config , $ config ) ; $ this -> legacy_config = true ; } if ( $ config = $ this -> load_config_file ( RCUBE_CONFIG_DIR . 'db.inc.php' ) ) { $ this -> config = array_merge ( $ this -> config , $ config ) ; $ this -> legacy_config = true ; } } $ this -> configured = ! empty ( $ config ) ; }
Read the local config files and store properties
Read the local config files and store properties