
03-10-2005, 08:27 PM
|
 |
|
|
Join Date: Nov 2002
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by AN-net
*THIS NOT TESTED*
for those who want to use multiple domains open their init.php file and find:
PHP Code:
$http_host = preg_replace('#^www\.#i', '', $http_host);
after that add:
PHP Code:
$allowedhosts= array();
$allowedhosts[]= "subdomain.yoursite.com";
$allowedhosts[]= "othersite.com";
$allowedhosts[]= "subdomain.othersite.com";
if(in_array($http_host, $allowedhosts))
{
$referrer_parts['host']= $http_host;
}
ok acceptable host names for $allowedhosts array for example are:
subdomain.yoursite.com
othersite.com
subdomain.othersite.com
do not include http:// or www. as prefix to any of the $allowedhosts!
if someone could test and report back that would be great 
|
Didn't work for me.
|