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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed May 30 09:46:22 EDT 2007


Author: astrid_emde
Date: 2007-05-30 09:46:21 -0400 (Wed, 30 May 2007)
New Revision: 1391

Modified:
   trunk/mapbender/http/php/database-pgsql.php
Log:
uses PORT from mapbender.conf

Modified: trunk/mapbender/http/php/database-pgsql.php
===================================================================
--- trunk/mapbender/http/php/database-pgsql.php	2007-05-30 13:39:55 UTC (rev 1390)
+++ trunk/mapbender/http/php/database-pgsql.php	2007-05-30 13:46:21 UTC (rev 1391)
@@ -59,7 +59,6 @@
 	return @pg_escape_string(stripslashes($unescaped_string));
 }
 $DB = DB;
-$PORT = PORT;
 
 
 function db_connect($DBSERVER="",$OWNER="",$PW="") {
@@ -74,8 +73,9 @@
 		$sys_dbuser = $OWNER; 
 	if ($PW && $PW != null)
 		$sys_dbpasswd = $PW; 
-	if ($GLOBALS['PORT'])
-		$sys_dbport = $PORT; 		
+	
+	$sys_dbport = PORT; 	
+		
 	if($GLOBALS['DB'])
 		$sys_dbname = $DB;
 			



More information about the Mapbender_commits mailing list