$settings ) { $regex = preg_quote($host, '/'); $regex = str_replace('\*', '.*', $regex); $http_host = (substr($_SERVER['HTTP_HOST'], 0, 4) == 'www.') ? substr($_SERVER['HTTP_HOST'], 4) : $_SERVER['HTTP_HOST'] ; if ( preg_match('/^'.$regex.'$/i', $http_host) ) { foreach( $settings as $key => $value ) { if ( !array_key_exists($key, $new_config) ) { $new_config[$key] = $value; } } } } } return (!empty($new_config)) ? $new_config : false ; } ?>