svn commit: r456 - trunk/mapbender/http/php/mod_createUser.php

uli at osgeo.org uli at osgeo.org
Fri Jun 16 06:18:40 EDT 2006


Author: uli
Date: 2006-06-16 10:18:40+0000
New Revision: 456

Modified:
   trunk/mapbender/http/php/mod_createUser.php

Log:
constant PORTAL included
script dies if PORTAL is not true

Modified: trunk/mapbender/http/php/mod_createUser.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_createUser.php?view=diff&rev=456&p1=trunk/mapbender/http/php/mod_createUser.php&p2=trunk/mapbender/http/php/mod_createUser.php&r1=455&r2=456
==============================================================================
--- trunk/mapbender/http/php/mod_createUser.php	(original)
+++ trunk/mapbender/http/php/mod_createUser.php	2006-06-16 10:18:40+0000
@@ -20,6 +20,10 @@
 
 import_request_variables("PG");
 require_once("../../conf/mapbender.conf");
+if(PORTAL != true){
+	echo "This module is disabled. Please check your mapbender.conf.";
+	die;	
+}
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
 require_once("../classes/class_gui.php");
@@ -133,7 +137,7 @@
 		$sql.= "($1, $2, $3, $4, $5, $6, $7, $8)";
 		$v = array($name,md5($password),$owner_id,$description,$email,$phone,$department,$resolution);
 		$t = array('s','s','i','s','s','s','s','i');
-		$res = db_prep_query($sql);
+		$res = db_prep_query($sql,$v,$t);
 		
 		$selected_user = db_insert_id('platzhalter','mb_user','mb_user_id');
 		$sql_owner = "Update mb_user SET mb_user_owner = $1 ";




More information about the Mapbender_commits mailing list