[Mapbender-commits] r7423 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Jan 6 07:52:49 EST 2011
Author: armin11
Date: 2011-01-06 04:52:49 -0800 (Thu, 06 Jan 2011)
New Revision: 7423
Modified:
trunk/mapbender/http/javascripts/initWmcObj.php
Log:
Bugfixing - file_get_contents changed with class_connector - see user mailing list
Modified: trunk/mapbender/http/javascripts/initWmcObj.php
===================================================================
--- trunk/mapbender/http/javascripts/initWmcObj.php 2011-01-05 10:46:57 UTC (rev 7422)
+++ trunk/mapbender/http/javascripts/initWmcObj.php 2011-01-06 12:52:49 UTC (rev 7423)
@@ -9,6 +9,7 @@
require_once dirname(__FILE__)."/../../lib/class_GetApi.php";
require_once dirname(__FILE__)."/../classes/class_elementVar.php";
require_once(dirname(__FILE__) . "/../classes/class_tou.php");
+require_once(dirname(__FILE__)."/../classes/class_connector.php");
function getConfiguration ($key) {
//check if key param can be found in SESSION,
@@ -409,8 +410,9 @@
//check if tou has already been read - if not show them in the message
$resultOfCheck = $classTou->check('wms',$WMS['id']);
if ($resultOfCheck['accepted'] == 0) {
- $tou .= $resourceSymbol." <a href='http://".$hostName."/mapbender/php/mod_showMetadata.php?resource=wms&layout=tabs&id=".$WMS['id']."&languageCode=".$languageCode."'>".$WMS['title']."</a><br>";
- $tou .= file_get_contents("http://localhost/mapbender/php/mod_getServiceDisclaimer.php?resource=wms&id=".$WMS['id']."&languageCode=".$languageCode."&asTable=true")."<br>";
+ $tou .= $resourceSymbol." <a href='../php/mod_showMetadata.php?resource=wms&layout=tabs&id=".$WMS['id']."&languageCode=".$languageCode."' target='_blank'>".$WMS['title']."</a><br>";
+ $touServiceConnector = new connector("http://localhost".$_SERVER['SCRIPT_NAME']."/../../php/mod_getServiceDisclaimer.php?resource=wms&id=".$WMS['id']."&languageCode=".$languageCode."&asTable=true");
+ $tou .= $touServiceConnector->file;
//set the tou to be accepted - TODO maybe do this after the button which deletes the message window - from a ajax request.
$classTou->set('wms',$WMS['id']);
}
More information about the Mapbender_commits
mailing list