[Mapbender-commits] r4105 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jun 23 13:54:44 EDT 2009
Author: uli
Date: 2009-06-23 13:54:44 -0400 (Tue, 23 Jun 2009)
New Revision: 4105
Modified:
trunk/mapbender/http/classes/class_kml_ows.php
Log:
$_SESSION changed to new session handling
Modified: trunk/mapbender/http/classes/class_kml_ows.php
===================================================================
--- trunk/mapbender/http/classes/class_kml_ows.php 2009-06-23 17:54:20 UTC (rev 4104)
+++ trunk/mapbender/http/classes/class_kml_ows.php 2009-06-23 17:54:44 UTC (rev 4105)
@@ -430,7 +430,7 @@
* @return boolean true, if the KML could be stored in the database; else false.
*/
private function storeInDb () {
- if ($_SESSION["mb_user_id"] && $_SESSION["mb_user_gui"]) {
+ if ($mapbender_session->get("mb_user_id") && $mapbender_session->get("mb_user_gui")) {
$con = db_connect(DBSERVER,OWNER,PW);
db_select_db(DB,$con);
@@ -438,7 +438,7 @@
$sql .= "(fkey_mb_user_id, fkey_gui_id, kml_doc, kml_name, kml_description, kml_timestamp) ";
$sql .= "VALUES ";
$sql .= "($1, $2, $3, $4, $5, $6)";
- $v = array ($_SESSION["mb_user_id"], $_SESSION["mb_user_gui"], $this->kml, "name", "description", time());
+ $v = array ($mapbender_session->get("mb_user_id"), $mapbender_session->get("mb_user_gui"), $this->kml, "name", "description", time());
$t = array ("i", "s", "s", "s", "s", "s");
$res = db_prep_query($sql, $v, $t);
if (!$res) {
@@ -466,7 +466,7 @@
# for now, do not restrict access
# $sql = "SELECT kml_doc FROM gui_kml WHERE kml_id = $1 AND fkey_mb_user_id = $2 AND fkey_gui_id = $3 LIMIT 1";
-# $v = array($kmlId, $_SESSION["mb_user_id"], $_SESSION["mb_user_gui"]);
+# $v = array($kmlId, $mapbender_session->get("mb_user_id"), $mapbender_session->get("mb_user_gui"));
# $t = array("i", "i", "s");
$sql = "SELECT kml_doc FROM gui_kml WHERE kml_id = $1 LIMIT 1";
More information about the Mapbender_commits
mailing list