svn commit: r132 - trunk/mapbender/owsproxy/http/index.php

uli at osgeo.org uli at osgeo.org
Sun Apr 23 06:33:08 EDT 2006


Author: uli
Date: 2006-04-23 10:33:08+0000
New Revision: 132

Modified:
   trunk/mapbender/owsproxy/http/index.php

Log:
beta version

Modified: trunk/mapbender/owsproxy/http/index.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/owsproxy/http/index.php?view=diff&rev=132&p1=trunk/mapbender/owsproxy/http/index.php&p2=trunk/mapbender/owsproxy/http/index.php&r1=131&r2=132
==============================================================================
--- trunk/mapbender/owsproxy/http/index.php	(original)
+++ trunk/mapbender/owsproxy/http/index.php	2006-04-23 10:33:08+0000
@@ -44,18 +44,10 @@
 	die();
 }
 
-/*************  prepare the response ************/
-if(strtolower($request) == "getmap"){
-	$or = $n->checkURL($row["wms_getmap"]);
-	$or = completeURL($or);
-	sendMap($or);
-}
-else if(strtolower($request) == "getfeatureinfo"){
-	echo $row["wms_getfeatureinfo"];
-}
-else if(strtolower($request) == "getcapabilities"){
-	echo $row["wms_getcapabilities"];
-}
+/*************  prepare and send the response ************/
+$or = $n->checkURL($row["wms_getmap"]);
+$or = completeURL($or);
+sendResponse($or);
 
 
 function throwE($e){
@@ -110,7 +102,7 @@
 	}	
 	return $t;
 }
-function sendMap($or){
+function sendResponse($or){
 	global $format;
 	if($format == 'image/png'){header("Content-Type: image/png");}
 	if($format == 'image/jpeg' || $format == 'image/jpg'){header("Content-Type: image/jpeg");}




More information about the Mapbender_commits mailing list