소스 검색

small fix

Marek Strzała 11 년 전
부모
커밋
e5bfd2a811
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      SE/superedit-OPEN_LAYERS_WPS.php

+ 1 - 2
SE/superedit-OPEN_LAYERS_WPS.php

@@ -41,7 +41,6 @@ function OPEN_LAYERS_WPS() {
 
 //$_POST['url'] = 'http://demo.opengeo.org/geoserver/wfs';
 //$entityBody = file_get_contents('php://input');
-echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;text-align:left;"> (' . __CLASS__ . '::' . __FUNCTION__ . ':' . __LINE__ . '): ';print_r($_SERVER);echo'</pre>';
 	$url = V::get('_url', '', $_GET);
 	if ($url) {// @see OpenLayers/examples/proxy.cgi
 		$allowedHosts = array('www.openlayers.org', 'openlayers.org', 
@@ -204,7 +203,7 @@ echo'<pre style="max-height:200px;overflow:auto;border:1px solid red;text-align:
     <script>
 //OpenLayers.ProxyHost = "proxy.cgi?url=";
 //OpenLayers.ProxyHost = "index.php?FUNCTION_INIT=OPEN_LAYERS_WPS&HEADER_NOT_INIT=YES&_url=";
-OpenLayers.ProxyHost = "index.php?FUNCTION_INIT=OPEN_LAYERS_WPS&HEADER_NOT_INIT=YES&task=proxy&url=";
+OpenLayers.ProxyHost = "index.php?FUNCTION_INIT=<?php echo __FUNCTION__; ?>&HEADER_NOT_INIT=YES&task=proxy&url=";
 
 var wps = 'http://biuro.biall-net.pl/wps',//"http://demo.opengeo.org/geoserver/wps",
     capabilities, // the capabilities, read by Format.WPSCapabilities::read