|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Working with multiple profileFirst 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 |
|
|
Re: Working with multiple profile-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1 Hi Jürgen, Juergen Holm schrieb: > 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: thanks a lot for your patch. It will be included in LAM 2.4.0. - -- Best regards Roland Gruber LDAP Account Manager http://lam.sourceforge.net Want more? Get LDAP Account Manager Pro! http://lam.sourceforge.net/lamPro/index.htm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFINvfjq/ywNCsrGZ4RAs2VAJ9UH6LiJYSYsYPKJkarR09ZpxMrjwCdF+YG 0fP4mscMS6jxrzZsvil0Xf0= =r/FU -----END PGP SIGNATURE----- ------------------------------------------------------------------------- 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 |
| Free Forum Powered by Nabble | Forum Help |