roundcubemail/program/lib/Roundcube/rcube_config.php
private function load_host_config()
    {
        if (empty($this->prop['include_host_config'])) {
            return;
        }

        foreach (array('HTTP_HOST', 'SERVER_NAME', 'SERVER_ADDR') as $key) {
            $fname = null;
            $name  = $_SERVER[$key];

            if (!$name) {
                continue;
            }

            if (is_array($this->prop['include_host_config'])) {
                $fname = $this->prop['include_host_config'][$name];
            }
            else {
                $fname = preg_replace('/[^a-z0-9\.\-_]/i', '', $name) . '.inc.php';
            }

            if ($fname && $this->load_from_file($fname)) {
                return;
            }
        }
    }
private function load_host_config()
    {
        if (empty($this->prop['include_host_config'])) {
            return;
        }

        foreach (array('HTTP_HOST', 'SERVER_NAME', 'SERVER_ADDR') as $key) {
            $fname = null;
            $name  = $_SERVER[$key];

            if (!$name) {
                continue;
            }

            if (is_array($this->prop['include_host_config'])) {
                $fname = $this->prop['include_host_config'][$name];
            }
            else {
                $fname = preg_replace('/[^a-z0-9\.\-_]/i', '', $name) . '.inc.php';
            }

            if ($fname && $this->load_from_file($fname)) {
                return;
            }
        }
    }
private function load_host_config ( ) { if ( empty ( $ this -> prop [ 'include_host_config' ] ) ) { return ; } foreach ( array ( 'HTTP_HOST' , 'SERVER_NAME' , 'SERVER_ADDR' ) as $ key ) { $ fname = null ; $ name = $ _SERVER [ $ key ] ; if ( ! $ name ) { continue ; } if ( is_array ( $ this -> prop [ 'include_host_config' ] ) ) { $ fname = $ this -> prop [ 'include_host_config' ] [ $ name ] ; } else { $ fname = preg_replace ( '/[^a-z0-9\.\-_]/i' , '' , $ name ) . '.inc.php' ; } if ( $ fname && $ this -> load_from_file ( $ fname ) ) { return ; } } }
Load a host-specific config file if configured
This will merge the host specific configuration with the given one
Load a host - specific config file if configured This will merge the host specific configuration with the given one