roundcubemail/program/lib/Roundcube/rcube_config.php
public function load_from_file($file)
    {
        $success = false;

        foreach ($this->resolve_paths($file) as $fpath) {
            if ($fpath && is_file($fpath) && is_readable($fpath)) {
                // use output buffering, we don't need any output here
                ob_start();
                include($fpath);
                ob_end_clean();

                if (is_array($config)) {
                    $this->merge($config);
                    $success = true;
                }
                // deprecated name of config variable
                if (is_array($rcmail_config)) {
                    $this->merge($rcmail_config);
                    $success = true;
                }
            }
        }

        return $success;
    }
public function load_from_file($file)
    {
        $success = false;

        foreach ($this->resolve_paths($file) as $fpath) {
            if ($fpath && is_file($fpath) && is_readable($fpath)) {
                // use output buffering, we don't need any output here
                ob_start();
                include($fpath);
                ob_end_clean();

                if (is_array($config)) {
                    $this->merge($config);
                    $success = true;
                }
                // deprecated name of config variable
                if (is_array($rcmail_config)) {
                    $this->merge($rcmail_config);
                    $success = true;
                }
            }
        }

        return $success;
    }
public function load_from_file ( $ file ) { $ success = false ; foreach ( $ this -> resolve_paths ( $ file ) as $ fpath ) { if ( $ fpath && is_file ( $ fpath ) && is_readable ( $ fpath ) ) { // use output buffering, we don't need any output here ob_start ( ) ; include ( $ fpath ) ; ob_end_clean ( ) ; if ( is_array ( $ config ) ) { $ this -> merge ( $ config ) ; $ success = true ; } // deprecated name of config variable if ( is_array ( $ rcmail_config ) ) { $ this -> merge ( $ rcmail_config ) ; $ success = true ; } } } return $ success ; }
Read configuration from a file
and merge with the already stored config values

@param string $file Name of the config file to be loaded

@return booelan True on success, false on failure
Read configuration from a file and merge with the already stored config values