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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Thu Aug 2 09:06:54 EDT 2007


Author: christoph
Date: 2007-08-02 09:06:54 -0400 (Thu, 02 Aug 2007)
New Revision: 1568

Modified:
   trunk/mapbender/http/php/mod_wfs.php
Log:
added filter parameter to wfs request

Modified: trunk/mapbender/http/php/mod_wfs.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs.php	2007-08-02 13:05:25 UTC (rev 1567)
+++ trunk/mapbender/http/php/mod_wfs.php	2007-08-02 13:06:54 UTC (rev 1568)
@@ -20,12 +20,9 @@
 require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-
 <html>
 <head>
-<?php
-echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';	
-?>
+<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
 <title>mod_wfs</title>
 <script language='JavaScript' type='text/javascript'>
 var wfs_conf = new Array();
@@ -53,7 +50,6 @@
 		}	
 	}	
 	document.location.href = "../php/mod_wfs.php?id=" + wfs.join(",");
-	
 }
 function get_wfs_conf(){
 	return wfs_conf;
@@ -71,8 +67,6 @@
 	for($i=0; $i<count($wfs); $i++){	
 		
 		/* wfs_conf */
-	
-		
 		$sql = "SELECT * FROM wfs_conf ";
 		$sql .= "JOIN wfs ON wfs_conf.fkey_wfs_id = wfs.wfs_id ";
 		$sql .= "WHERE wfs_conf.wfs_conf_id = $1";
@@ -158,18 +152,14 @@
 //			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_form_element_html'] = \"\";";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_edit'] = '".$row["f_edit"]."';";
 			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_mandatory'] = '".$row["f_mandatory"]."';";
+			echo "wfs_conf[".$i."]['element'][".$cnt."]['f_auth_varname'] = '".$row["f_auth_varname"]."';";
 			$cnt++;
 		}
 		if($cnt == 0){die("wfs_conf data not available");}		
 	}
 	echo "iamready = true;";
 }
-
 ?>
-if(iamready){
-	
-}
-
 </script>
 </head>
 <body leftmargin='0' topmargin='10'  bgcolor='#ffffff' onload='register()'>



More information about the Mapbender_commits mailing list