svn commit: r422 - trunk/mapbender/http/php/mb_listWMCs.php

astrid_emde at osgeo.org astrid_emde at osgeo.org
Mon Jun 12 09:18:10 EDT 2006


Author: astrid_emde
Date: 2006-06-12 13:18:10+0000
New Revision: 422

Modified:
   trunk/mapbender/http/php/mb_listWMCs.php

Log:
db connection added

Modified: trunk/mapbender/http/php/mb_listWMCs.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mb_listWMCs.php?view=diff&rev=422&p1=trunk/mapbender/http/php/mb_listWMCs.php&p2=trunk/mapbender/http/php/mb_listWMCs.php&r1=421&r2=422
==============================================================================
--- trunk/mapbender/http/php/mb_listWMCs.php	(original)
+++ trunk/mapbender/http/php/mb_listWMCs.php	2006-06-12 13:18:10+0000
@@ -20,6 +20,8 @@
 ob_start(); 
 session_start();
 require_once("../../conf/mapbender.conf");
+$con = db_connect($DBSERVER,$OWNER,$PW);
+db_select_db(DB,$con);
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 
@@ -46,9 +48,6 @@
 echo "</form>";
 
 function mb_listWMCs($wmcList){
-	global $DBSERVER,$DB,$OWNER,$PW;
-	$con = db_connect($DBSERVER,$OWNER,$PW);
-	db_select_db(DB,$con);
 	$display = "<h2 style='font-family: Arial, Helvetica, sans-serif; color: #808080;background-color: White;'><font align='left' color='#000000'>Ma</font><font color='#0000CE'>p</font><font color='#C00000'>b</font><font color='#000000'>ender WMC list </font> </h2>";
 	$display .= "<table width='90%' style='font-family: Arial, Helvetica, sans-serif;font-size : 12px;color: #808080;' border='1' cellpadding='3' rules='rows'><tr style='background-color:#F0F0F0;' width='80px'><td ><b>WMC name</b></td><td><b>last update</b></td><td colspan=5></td></tr>";
 	if(count($wmcList)>0){
@@ -81,7 +80,7 @@
 			$cnt_list_wmcs++;
 		}
 	}else{
-		$display .= "<tr>There are no WMCs availiable</tr>";
+		$display .= "<tr><td>There are no WMCs availiable</td></tr>";
 	}	
 	$display .= "</table>";
 	   




More information about the Mapbender_commits mailing list