[Mapbender-commits] r9468 - trunk/mapbender/http/extensions/mobilemap
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 19 02:18:43 PDT 2016
Author: armin11
Date: 2016-05-19 02:18:43 -0700 (Thu, 19 May 2016)
New Revision: 9468
Modified:
trunk/mapbender/http/extensions/mobilemap/map.php
Log:
Possibility to log external invocation by referrer
Modified: trunk/mapbender/http/extensions/mobilemap/map.php
===================================================================
--- trunk/mapbender/http/extensions/mobilemap/map.php 2016-05-19 07:51:40 UTC (rev 9467)
+++ trunk/mapbender/http/extensions/mobilemap/map.php 2016-05-19 09:18:43 UTC (rev 9468)
@@ -2,7 +2,9 @@
//Basic configuration of mapserver client
require_once(dirname(__FILE__)."/../../../conf/mobilemap.conf");
require_once(dirname(__FILE__)."/../../classes/class_connector.php");
+require_once(dirname(__FILE__)."/../../classes/class_administration.php");
+$admin = new administration();
//Fixes IPhone, Android 2.x
if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'], 'iPod') || strstr($_SERVER['HTTP_USER_AGENT'], 'Android 2.')) {
$scaleselect = "false";
@@ -13,6 +15,9 @@
//WMC Anfrage Mapbendermodul
if (isset($_GET['wmcid'])) {
$wmcid = htmlspecialchars($_GET["wmcid"]);
+ if (strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) === false) {
+ $admin->logClientUsage($_SERVER['HTTP_REFERER'], $wmcid, 2);
+ }
}
//LayerId Anfrage Mapbendermodul
if (isset($_GET['layerid'])) {
More information about the Mapbender_commits
mailing list