[Vtigercrm-commits] [vtiger-commits] r9155 - /vtigercrm/trunk/install/4createConfigFile.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Aug 28 15:07:13 EDT 2006
Author: richie
Date: Mon Aug 28 13:07:06 2006
New Revision: 9155
Log:
Support for PostGres DB done
Modified:
vtigercrm/trunk/install/4createConfigFile.php
Modified: vtigercrm/trunk/install/4createConfigFile.php
==============================================================================
--- vtigercrm/trunk/install/4createConfigFile.php (original)
+++ vtigercrm/trunk/install/4createConfigFile.php Mon Aug 28 13:07:06 2006
@@ -47,7 +47,7 @@
$vtiger_version = "5.0 Beta";
$release_date = "31 March 2006";
-
+if (isset($_REQUEST['db_type'])) $db_type = $_REQUEST['db_type'];
if (isset($_REQUEST['db_hostname']))
{
@@ -58,7 +58,11 @@
else
{
$db_hostname = $_REQUEST['db_hostname'];
- $db_port = '3306';
+ if($db_type == "pgsql")
+ $db_port = '5432';
+ else
+ $db_port = '3306';
+
}
}
if (isset($_REQUEST['db_username']))$db_username = $_REQUEST['db_username'];
@@ -67,7 +71,7 @@
if (isset($_REQUEST['db_name']))$db_name = $_REQUEST['db_name'];
-if (isset($_REQUEST['db_type'])) $db_type = $_REQUEST['db_type'];
+//if (isset($_REQUEST['db_type'])) $db_type = $_REQUEST['db_type'];
if (isset($_REQUEST['db_drop_tables'])) $db_drop_tables = $_REQUEST['db_drop_tables'];
More information about the vtigercrm-commits
mailing list