$domain['domain'], 'CUSTOMER' => $domain['loginname'], 'IP' => $ipandport['ip'], 'PORT' => $ipandport['port'], 'IS_SSL' => ($domain['ssl'])?'ssl':'', 'DOCROOT' => $domain['documentroot'] ); return replace_variables($template, $templateVars); } }