Adding env('HTTP_BASE') to get base domain

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4622 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-03-16 14:59:40 +00:00
parent fb7c56024c
commit 85c5f0513a

View file

@ -991,6 +991,9 @@
case 'CGI_MODE':
return (substr(php_sapi_name(), 0, 3) == 'cgi');
break;
case 'HTTP_BASE':
return preg_replace ('/^([^.])*/i', null, env('HTTP_HOST'));
break;
}
return null;
}