svn commit: r814 - trunk/mapbender/http/extensions/geom2wfst.php

astrid_emde at osgeo.org astrid_emde at osgeo.org
Mon Nov 6 06:23:51 EST 2006


Author: astrid_emde
Date: 2006-11-06 11:23:51+0000
New Revision: 814

Modified:
   trunk/mapbender/http/extensions/geom2wfst.php

Log:
error logging for wfs

Modified: trunk/mapbender/http/extensions/geom2wfst.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/extensions/geom2wfst.php?view=diff&rev=814&p1=trunk/mapbender/http/extensions/geom2wfst.php&p2=trunk/mapbender/http/extensions/geom2wfst.php&r1=813&r2=814
==============================================================================
--- trunk/mapbender/http/extensions/geom2wfst.php	(original)
+++ trunk/mapbender/http/extensions/geom2wfst.php	2006-11-06 11:23:51+0000
@@ -19,8 +19,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-require_once(dirname(__FILE__)."../../conf/mapbender.conf");
-require_once(dirname(__FILE__)."../classes/class_mb_exception.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../classes/class_mb_exception.php");
 echo '<meta http-equiv="Content-Type" content="text/html; charset='.CHARSET.'">';	
 ?>
 <title>Test WFS-T operated by CCGIS</title>
@@ -85,13 +85,14 @@
 	#echo "wfsWindow.document.getElementsByTagName('body')[0].innerHTML = '".addslashes($result)."';";
 	#echo "wfsWindow.document.close();";
 	echo $result;
-	$e = new mb_exception('WFS error at '.$arURL.' - error message: '.$result);
+	$e = new mb_exception('WFS error at: host: '.$host.' port: '.$port.' filter: '.$_REQUEST["filter"].' - error message: '.$result);
 	echo "<script language='javascript'>";
 	echo "window.focus();";
 	echo "alert('An error has occured.');\n";
 	echo "</script>";
 }
 else {
+	#$e = new mb_exception('WFS successfull host: '.$host.' port: '.$port.' filter: '.$_REQUEST["filter"]);
 	echo "<script language='javascript'>";
 	echo "window.opener.alert('".$result."');\n";
 	echo "window.opener.focus();";




More information about the Mapbender_commits mailing list