getFeatureInfo($request); } break; case 'getmap': $arrayOnlineresources = checkWmsPermission($owsproxyService); $query->setOnlineResource($arrayOnlineresources['wms_getmap']); $layers = checkLayerPermission($arrayOnlineresources['wms_id'], $reqParams['layers']); if ($layers === "") { throwE("Permission denied"); die; } $query->setParam("layers", urldecode($layers)); //the decoding of layernames dont make problems - but not really good names will be requested also ;-) $request = $query->getRequest(); #log proxy requests if ($n->getWmsLogTag($arrayOnlineresources['wms_id']) == 1) { #do log to db #TODO read out size of bbox and calculate price #get price out of db $price = intval($n->getWmsPrice($arrayOnlineresources['wms_id'])); $n->logWmsProxyRequest($arrayOnlineresources['wms_id'], $_SESSION['mb_user_id'], $request, $price); } if (isset($auth)) { #$mb_exception = new mb_exception("auth: ".$auth['auth_type']); getImage($request, $auth); } else { getImage($request); } break; case 'map': $arrayOnlineresources = checkWmsPermission($owsproxyService);
echo "</td>"; echo "<td>"; echo "Price(cent/Mpixel)"; echo "</td>"; echo "<td>"; echo "Show detailed Usage"; echo "</td>"; echo "</tr>"; for ($i = 0; $i < count($ownwms); $i++) { #read out current values in db if ($admin->getWMSOWSstring($ownwms[$i]) == false) { $status_proxy = 0; } else { $status_proxy = 1; } if ($admin->getWmsLogTag($ownwms[$i]) == 1) { $status_log = 1; } else { $status_log = 0; } if ($admin->getWmsPrice($ownwms[$i]) != 0) { $status_price = $admin->getWmsPrice($ownwms[$i]); } else { $status_price = 0; } $auth = $admin->getAuthInfoOfWMS($ownwms[$i]); if ($auth['auth_type'] == '') { $status_auth = 0; } else { $status_auth = 1; }
} else { getFeatureInfo($request); } break; case 'getmap': $arrayOnlineresources = checkWmsPermission($wmsId, $userInformation[0]); $query->setOnlineResource($arrayOnlineresources['wms_getmap']); $layers = checkLayerPermission($wmsId, $reqParams['layers'], $userInformation[0]); if ($layers == '') { throwE("GetMap permission denied on layer with id " . $layerId); die; } $query->setParam("layers", urldecode($layers)); $request = $query->getRequest(); #log proxy requests if ($n->getWmsLogTag($wmsId) == 1) { #do log to db #TODO read out size of bbox and calculate price #get price out of db $price = intval($n->getWmsPrice($wmsId)); $n->logWmsProxyRequest($wmsId, $userInformation[0], $request, $price); } if (isset($auth)) { getImage($request, $auth); } else { getImage($request); } break; case 'getlegendgraphic': $url = getLegendUrl($wmsId); $e = new mb_exception("URL for getlegendgraphic: ");