svn commit: r190 - trunk/mapbender/owsproxy/http/index.php

uli at osgeo.org uli at osgeo.org
Fri May 5 05:15:24 EDT 2006


Author: uli
Date: 2006-05-05 09:15:24+0000
New Revision: 190

Modified:
   trunk/mapbender/owsproxy/http/index.php

Log:
connect database before instantiate class_administration

Modified: trunk/mapbender/owsproxy/http/index.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/owsproxy/http/index.php?view=diff&rev=190&p1=trunk/mapbender/owsproxy/http/index.php&p2=trunk/mapbender/owsproxy/http/index.php&r1=189&r2=190
==============================================================================
--- trunk/mapbender/owsproxy/http/index.php	(original)
+++ trunk/mapbender/owsproxy/http/index.php	2006-05-05 09:15:24+0000
@@ -21,11 +21,13 @@
 }
 
 // permission validieren
+$con = db_connect(DBSERVER,OWNER,PW);
+db_select_db(DB,$con);
+
 $n = new administration();
 $myguis = $n->getGuisByPermission($_SESSION["mb_user_id"]);
 $mywms = $n->getWmsByOwnGuis($myguis);
-$con = db_connect(DBSERVER,OWNER,PW);
-db_select_db(DB,$con);
+
 $sql = "SELECT * FROM wms WHERE wms_owsproxy = $1";
 $v = array($wms);
 $t = array("s");
@@ -43,7 +45,7 @@
 }
 
 if(!in_array($wms_id, $mywms)){
-	throwE(array("Permission denied."));
+	throwE(array("Permission denied."," -> ".$wms_id, implode(",", $mywms)));
 	die();
 }
 




More information about the Mapbender_commits mailing list