First of all: LAM ist great!
My situation: we are many physics instiutes, and each has his own profile.
Every site admin has to select his profile again on every login.
This is getting on my nerves!
Solution: apply this patch to lam 2.3:
*** templates/login.php.orig 2008-05-22 13:42:00.000000000 +0200
--- templates/login.php 2008-05-22 13:35:46.000000000 +0200
***************
*** 28,33 ****
--- 28,35 ----
* @package main
*/
+ if(isset($_POST['profile']))
+ setcookie("lam_default_profile", $_POST['profile'], time()+ 365*86400);
/** status messages */
include_once("../lib/status.inc");
***************
*** 459,464 ****
--- 461,469 ----
{
$_SESSION['loggedIn'] = false;
$default_Config = new LAMCfgMain();
+ if(isset($_COOKIE["lam_default_profile"]))
+ $default_Profile = $_COOKIE["lam_default_profile"];
+ else
$default_Profile = $default_Config->default;
$_SESSION["config"] = new LAMConfig($default_Profile); // Create new Config object
$_SESSION["cfgMain"] = $default_Config; // Create new CfgMain object
mfg,jh
--
##----------------- IT Physik / Universitaet Goettingen --------------
## Tel: +49 551 399363 FAX: +49 551 399263
## Post: Dr. J. A. Holm / Friedrich Hund Platz 1 / 37077 Goettingen
## PGP-Key:
http://www.theorie.physik.uni-goe.de/jh.html## Rechtschreibfehler sind Absicht und dienen der allgemeinen Belustigung.
##------------ Verschtehen Sie, Isch habe garrr kein Wooerd! ---------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Lam-public mailing list
Lam-public@...
https://lists.sourceforge.net/lists/listinfo/lam-public