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

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Feb 21 09:51:28 PST 2017


Author: armin11
Date: 2017-02-21 09:51:28 -0800 (Tue, 21 Feb 2017)
New Revision: 9694

Modified:
   trunk/mapbender/http/php/wfs.php
Log:
Fixes for INSPIRE compatibility

Modified: trunk/mapbender/http/php/wfs.php
===================================================================
--- trunk/mapbender/http/php/wfs.php	2017-02-21 17:50:50 UTC (rev 9693)
+++ trunk/mapbender/http/php/wfs.php	2017-02-21 17:51:28 UTC (rev 9694)
@@ -56,9 +56,18 @@
 	$urlPrefix = "http://";
 }
 
-$mapbenderMetadaUrl = $urlPrefix.$_SERVER['HTTP_HOST']."/mapbender/php/mod_showMetadata.php?resource=featuretype&id=";
-$inspireServiceMetadataUrl =  $urlPrefix.$_SERVER['HTTP_HOST']."/mapbender/php/mod_featuretypeISOMetadata.php?SERVICE=WMS&outputFormat=iso19139&Id=";
-$mapbenderMetadataUrlUrl = $urlPrefix.$_SERVER['HTTP_HOST']."/mapbender/php/mod_dataISOMetadata.php?outputFormat=iso19139&id=";
+if (DEFINED("MAPBENDER_PATH") && MAPBENDER_PATH !== "") {
+	$mapbenderMetadataUrl = MAPBENDER_PATH."/php/mod_showMetadata.php?resource=featuretype&id=";
+	$inspireServiceMetadataUrl =  MAPBENDER_PATH."/php/mod_featuretypeISOMetadata.php?SERVICE=WFS&outputFormat=iso19139&Id=";
+	$mapbenderMetadataUrlUrl = MAPBENDER_PATH."/php/mod_dataISOMetadata.php?outputFormat=iso19139&id=";
+} else {
+	$mapbenderMetadataUrl = $_SERVER['HTTP_HOST']."/mapbender/php/mod_showMetadata.php?resource=featuretype&id=";
+	$inspireServiceMetadataUrl =  $_SERVER['HTTP_HOST']."/mapbender/php/mod_featuretypeISOMetadata.php?SERVICE=WFS&outputFormat=iso19139&Id=";
+	$mapbenderMetadataUrlUrl = $_SERVER['HTTP_HOST']."/mapbender/php/mod_dataISOMetadata.php?outputFormat=iso19139&id=";
+	$mapbenderMetadataUrl = $urlPrefix.$mapbenderMetadataUrl;
+	$inspireServiceMetadataUrl = $urlPrefix.$inspireServiceMetadataUrl;
+	$mapbenderMetadataUrlUrl = $urlPrefix.$mapbenderMetadataUrlUrl;
+}
 
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);



More information about the Mapbender_commits mailing list