*** include/core.inc --- include/core.inc 2005-10-10 16:28:53.000000000 -0600 *************** *** 12,17 **** --- 12,26 ---- $FORUM_VERSION = "2.7.2"; + /* virtual support */ + if ($GLOBALS['SITES_DIR'] and isset($_SERVER['HTTP_HOST'])) { + $domain = explode('.', $_SERVER['HTTP_HOST']); + $count = count($domain) - 1; + # strip the dot name + $GLOBALS['FORUM_SITE'] = stripslashes($domain[$count-1] . '.' . $domain[$count]); + require($GLOBALS['SITES_DIR'].$GLOBALS['FORUM_SITE']); + } + ignore_user_abort('1'); set_magic_quotes_runtime(0);