$domain['domain'], 'CUSTOMER' => $domain['loginname'], 'IP' => $ip, 'PORT' => $port, 'SCHEME' => ($is_ssl_vhost)?'https':'http', 'DOCROOT' => $domain['documentroot'] ); return replace_variables($template, $templateVars); } }