[Mapbender-commits] r1023 - trunk/mapbender/http/php

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Jan 24 07:57:10 EST 2007


Author: christoph
Date: 2007-01-24 07:57:10 -0500 (Wed, 24 Jan 2007)
New Revision: 1023

Modified:
   trunk/mapbender/http/php/database-pgsql.php
Log:
added port

Modified: trunk/mapbender/http/php/database-pgsql.php
===================================================================
--- trunk/mapbender/http/php/database-pgsql.php	2007-01-24 10:28:58 UTC (rev 1022)
+++ trunk/mapbender/http/php/database-pgsql.php	2007-01-24 12:57:10 UTC (rev 1023)
@@ -61,14 +61,12 @@
 $DB = DB;
 
 function db_connect($DBSERVER="",$OWNER="",$PW="") {
-	global $sys_dbhost,$sys_port,$sys_dbuser,$sys_dbpasswd,$sys_dbname,$db_debug;
+	global $sys_dbhost,$sys_dbuser,$sys_dbpasswd,$sys_dbname,$db_debug;
 	global $conn,$conn_update,$DB;	
 	//global DBSERVER,OWNER,PW,DB;
 	$db_debug=0;
 	if ($DBSERVER)
 		$sys_dbhost = $DBSERVER; 
-	if (PORT)
-		$sys_port = PORT; 
 	if ($OWNER)
 		$sys_dbuser = $OWNER; 
 	if ($PW && $PW != null)
@@ -85,9 +83,7 @@
 		$connstring.=" host=$sys_dbhost";		
 	if ($sys_dbpasswd)		
 		$connstring.=" password=$sys_dbpasswd";		
-	if ($sys_dbpasswd)		
-		$connstring.=" port=$sys_port";		
-			
+	
 	if ($db_debug)
 		echo $connstring." ";		
 
@@ -127,7 +123,6 @@
 	global $sys_dbhost,$sys_dbuser,$sys_dbpasswd,$sys_dbname,$db_debug,
 		$conn,$conn_update,$QUERY_COUNT,$DBSERVER,$OWNER,$PW,$DB;
 	$QUERY_COUNT++;
-
 	$ret = pg_exec($qstring);
 //	$e = new mb_exception("not ps:  ".$_SERVER['SCRIPT_FILENAME']." : ".$qstring);
 	if(!$ret){



More information about the Mapbender_commits mailing list