[Vtigercrm-commits] [vtiger-commits] r10458 - /vtigercrm/branches/5.0.3/install/2setConfig.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Fri Mar 16 06:09:16 EDT 2007


Author: saraj
Date: Fri Mar 16 04:09:02 2007
New Revision: 10458

Log:
environment variable added to get the hostname. Fixes #3201

Modified:
    vtigercrm/branches/5.0.3/install/2setConfig.php

Modified: vtigercrm/branches/5.0.3/install/2setConfig.php
==============================================================================
--- vtigercrm/branches/5.0.3/install/2setConfig.php (original)
+++ vtigercrm/branches/5.0.3/install/2setConfig.php Fri Mar 16 04:09:02 2007
@@ -27,7 +27,8 @@
 // TODO: introduce Apache port as parameters to use non-default value 80
 //$web_root = $_SERVER['SERVER_NAME']. ":" .$_SERVER['SERVER_PORT'].$_SERVER['PHP_SELF'];
 //$web_root = $hostname.$_SERVER['PHP_SELF'];
-$web_root = $HTTP_SERVER_VARS["HTTP_HOST"] . $HTTP_SERVER_VARS["REQUEST_URI"];
+//$web_root = $HTTP_SERVER_VARS["HTTP_HOST"] . $HTTP_SERVER_VARS["REQUEST_URI"];
+$web_root = $_ENV["HOSTNAME"] . $HTTP_SERVER_VARS["REQUEST_URI"];
 $web_root = str_replace("/install.php", "", $web_root);
 $web_root = "http://".$web_root;
 





More information about the vtigercrm-commits mailing list