svn commit: r911 - trunk/mapbender/http/frames/login.php

christoph at osgeo.org christoph at osgeo.org
Tue Nov 21 05:44:26 EST 2006


Author: christoph
Date: 2006-11-21 10:44:26+0000
New Revision: 911

Modified:
   trunk/mapbender/http/frames/login.php

Log:
include via dirname(__FILE__)

Modified: trunk/mapbender/http/frames/login.php
Url: https://mapbender.osgeo.org/source/browse/mapbender/trunk/mapbender/http/frames/login.php?view=diff&rev=911&p1=trunk/mapbender/http/frames/login.php&p2=trunk/mapbender/http/frames/login.php&r1=910&r2=911
==============================================================================
--- trunk/mapbender/http/frames/login.php	(original)
+++ trunk/mapbender/http/frames/login.php	2006-11-21 10:44:26+0000
@@ -1,5 +1,5 @@
 <?php
-# $Id$
+# $Id: login.php 76 2006-08-15 12:25:34Z heuser $
 # Copyright (C) 2002 CCGIS 
 #
 # This program is free software; you can redistribute it and/or modify
@@ -17,7 +17,7 @@
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 ob_start(); 
-include_once("../../conf/mapbender.conf");
+include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 $con = db_connect(DBSERVER,OWNER,PW);
 db_select_db(DB,$con);
 
@@ -148,13 +148,13 @@
 	// if given user data is found in database, set session data (db_fetch_array returns false if no row is found)
 	if($row){
 		setSession();
-		include("../../conf/session.conf");
+		include(dirname(__FILE__)."/../../conf/session.conf");
 	}	
 	if($_SESSION["mb_user_id"]){
 		if($row["mb_user_login_count"] < $loginMax){
 			$sql_del_cnt =  "UPDATE mb_user SET mb_user_login_count = 0 WHERE mb_user_id = " . $_SESSION['mb_user_id'];
 			db_query($sql_del_cnt);
-			require_once("../php/mb_getGUIs.php");
+			require_once(dirname(__FILE__)."/../php/mb_getGUIs.php");
 			$arrayGUIs = mb_getGUIs($row["mb_user_id"]);
 			$_SESSION["mb_user_guis"] = $arrayGUIs;
 			$_SESSION["mb_login"] = $login;
@@ -176,7 +176,7 @@
 			}
 			# list all guis of this user and his groups
 			else{	   
-				require_once("../php/mb_listGUIs.php");
+				require_once(dirname(__FILE__)."/../php/mb_listGUIs.php");
 				mb_listGUIs($arrayGUIs);
 			}
 		}




More information about the Mapbender_commits mailing list