svn commit: r334 - trunk/mapbender/http/php/mod_loadwms.php
uli at osgeo.org
uli at osgeo.org
Wed May 24 05:43:59 EDT 2006
Author: uli
Date: 2006-05-24 09:43:58+0000
New Revision: 334
Modified:
trunk/mapbender/http/php/mod_loadwms.php
Log:
validation of permissions included
Modified: trunk/mapbender/http/php/mod_loadwms.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_loadwms.php?view=diff&rev=334&p1=trunk/mapbender/http/php/mod_loadwms.php&p2=trunk/mapbender/http/php/mod_loadwms.php&r1=333&r2=334
==============================================================================
--- trunk/mapbender/http/php/mod_loadwms.php (original)
+++ trunk/mapbender/http/php/mod_loadwms.php 2006-05-24 09:43:58+0000
@@ -18,16 +18,17 @@
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
session_start();
-
-require_once("mb_validateInput.php");
require_once("../../conf/mapbender.conf");
+$con = db_connect(DBSERVER,OWNER,PW);
+db_select_db(DB,$con);
+require_once("mb_validatePermission.php");
require_once("../classes/class_wms.php");
echo "file: ".$_REQUEST["xml_file"];
-$gui_id=mb_validateInput($_REQUEST["guiList"]);
-$xml=mb_validateInput($_REQUEST["xml_file"]);
+$gui_id = $_REQUEST["guiList"];
+$xml = $_REQUEST["xml_file"];
$mywms = new wms();
$mywms->createObjFromXML($xml);
More information about the Mapbender_commits
mailing list