[Mapbender-commits] r4108 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 23 14:02:22 EDT 2009


Author: uli
Date: 2009-06-23 14:02:22 -0400 (Tue, 23 Jun 2009)
New Revision: 4108

Modified:
   trunk/mapbender/http/classes/class_log.php
Log:
$_SESSION changed to new session handling

Modified: trunk/mapbender/http/classes/class_log.php
===================================================================
--- trunk/mapbender/http/classes/class_log.php	2009-06-23 17:57:39 UTC (rev 4107)
+++ trunk/mapbender/http/classes/class_log.php	2009-06-23 18:02:22 UTC (rev 4108)
@@ -50,13 +50,13 @@
 					for($i = 0; $i < count($this->url); $i++){
 						$content = strtotime("now")." ";
 						$content .= "[".date("d/M/Y:H:i:s O")."]";
-						$content .= " " . $_SESSION["mb_user_ip"];
+						$content .= " " . $mapbender_session->get("mb_user_ip");
 						$content .= ' "';
 						if($this->log_username == true){
-							$content .= $_SESSION["mb_user_name"];
+							$content .= $mapbender_session->get("mb_user_name");
 						}
 						$content .= '"';
-						$content .= " " . $_SESSION["mb_user_id"];
+						$content .= " " . $mapbender_session->get("mb_user_id");
 						$content .= " " . $module;
 						$content .= ' "' . $this->url[$i] . '"';
 						$content .= chr(13).chr(10);
@@ -80,7 +80,7 @@
 				$sql .= "gui, module, ip, username, userid, request";
 				$sql .= ") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)";
 
-				$v = array($time_client, strtotime("now"), "[".date("d/M/Y:H:i:s O")."]", SID, $_SESSION["mb_user_gui"], $module, $_SESSION["mb_user_ip"], $_SESSION["mb_user_name"], $_SESSION["mb_user_id"], $this->url[$i]);
+				$v = array($time_client, strtotime("now"), "[".date("d/M/Y:H:i:s O")."]", SID, $mapbender_session->get("mb_user_gui"), $module, $mapbender_session->get("mb_user_ip"), $_SESSION["mb_user_name"], $mapbender_session->get("mb_user_id"), $this->url[$i]);
 				$t = array("s", "s", "s", "s", "s", "s", "s", "s", "s", "s");
 				$res = db_prep_query($sql, $v, $t)or die(db_error());
 



More information about the Mapbender_commits mailing list