svn commit: r904 - trunk/mapbender/http/php/mod_forgottenPassword.php

christoph at osgeo.org christoph at osgeo.org
Tue Nov 21 04:17:06 EST 2006


Author: christoph
Date: 2006-11-21 09:17:06+0000
New Revision: 904

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

Log:
* include via dirname(__FILE__)
* changed user_id retrieval

Modified: trunk/mapbender/http/php/mod_forgottenPassword.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/php/mod_forgottenPassword.php?view=diff&rev=904&p1=trunk/mapbender/http/php/mod_forgottenPassword.php&p2=trunk/mapbender/http/php/mod_forgottenPassword.php&r1=903&r2=904
==============================================================================
--- trunk/mapbender/http/php/mod_forgottenPassword.php	(original)
+++ trunk/mapbender/http/php/mod_forgottenPassword.php	2006-11-21 09:17:06+0000
@@ -17,8 +17,8 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
-require_once("../classes/class_administration.php");
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../classes/class_administration.php");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 import_request_variables("PG");
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -49,7 +49,7 @@
 <body>
 <?php
 //the database-params
-require_once("../../conf/mapbender.conf");
+require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 //$con = db_connect($DBSERVER,$OWNER,$PW);
 //db_select_db(DB,$con);
 
@@ -69,7 +69,8 @@
 	
 	if ($_POST["sendnew"]) {
 		if ($_POST["username"]) {
-			$user_id = $admin->getUserIdByUserName($_POST["username"]);
+			$id = $admin->getUserIdByUserName($_POST["username"]);
+			$user_id = $id[0];
 	
 			if ($user_id) {
 				$upd=true;




More information about the Mapbender_commits mailing list