|
|
@@ -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
|