[Mapbender-commits] r3101 - branches/noframes/owsproxy/http
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Oct 3 04:54:26 EDT 2008
Author: christoph
Date: 2008-10-03 04:54:26 -0400 (Fri, 03 Oct 2008)
New Revision: 3101
Modified:
branches/noframes/owsproxy/http/index.php
Log:
merged w/ trunk
Modified: branches/noframes/owsproxy/http/index.php
===================================================================
--- branches/noframes/owsproxy/http/index.php 2008-10-03 08:42:59 UTC (rev 3100)
+++ branches/noframes/owsproxy/http/index.php 2008-10-03 08:54:26 UTC (rev 3101)
@@ -42,6 +42,8 @@
$notice = new mb_notice("owsproxy id:".$query->getOwsproxyServiceId());
// check session
+session_regenerate_id();
+session_destroy();
session_id($_REQUEST["sid"]);
session_start();
if(!$_SESSION['mb_user_id']){
@@ -81,7 +83,19 @@
$query->setParam("layers",$layers);
$request = $query->getRequest();
getImage($request);
- break;
+ break;
+ case 'map':
+ $arrayOnlineresources = checkWmsPermission($owsproxyService);
+ $query->setOnlineResource($arrayOnlineresources['wms_getmap']);
+ $layers = checkLayerPermission($arrayOnlineresources['wms_id'],$reqParams['layers']);
+ if($layers===""){
+ throwE("Permission denied");
+ die();
+ }
+ $query->setParam("layers",$layers);
+ $request = $query->getRequest();
+ getImage($request);
+ break;
case 'getlegendgraphic':
$url = getLegendUrl($query->getOwsproxyServiceId());
getImage($url);
More information about the Mapbender_commits
mailing list