Index: install.php =================================================================== --- install.php (revision 14094) +++ install.php (working copy) @@ -735,6 +735,9 @@ $modules_helper =& $this->Application->recallObject('ModulesHelper'); /* @var $modules_helper kModulesHelper */ + // get domain name as entered by user on the form + $domain = $this->GetVar('domain') == 1 ? $_SERVER['HTTP_HOST'] : str_replace(' ', '', $this->GetVar('other')); + $license_hash = $this->toolkit->getSystemConfig('Intechnic', 'License'); if ($license_hash) { // when license present, then extract domain from it @@ -743,12 +746,10 @@ $license_domain = $license_keys[0]['domain']; } else { - // when license missing, then use current domain - $license_domain = $_SERVER['HTTP_HOST']; + // when license missing, then use current domain or domain entered by user + $license_domain = $domain; } - $domain = $this->GetVar('domain') == 1 ? $_SERVER['HTTP_HOST'] : str_replace(' ', '', $this->GetVar('other')); - if ($domain != '') { if (strstr($domain, $license_domain) || $modules_helper->_IsLocalSite($domain)) { $this->toolkit->setSystemConfig('Misc', 'Domain', $domain);