mirror of
https://github.com/LDAPAccountManager/lam.git
synced 2025-10-03 09:49:16 +02:00
*** empty log message ***
This commit is contained in:
parent
fa18293b67
commit
ce035ecd58
2 changed files with 15 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
|||
# Normally you don't have to edit this file manually. It is modified automatically when you add a new language in the Configuration-Site.
|
||||
|
||||
# Englisch Language
|
||||
english:English
|
||||
en_GB:iso639_en:English (Britain)
|
||||
|
||||
# German Language
|
||||
german:Deutsch
|
||||
de_DE:iso639_de:Deutsch (Deutschland)
|
||||
|
|
|
@ -34,11 +34,20 @@ if($action == "checklogin")
|
|||
$config = new Config;
|
||||
$ldap = new Ldap($config);
|
||||
$result = $ldap->connect($username,$passwd);
|
||||
if($result == True)
|
||||
if($result == True) // Username/password correct. Doing some configuration and loading main Frame.
|
||||
{
|
||||
session_register($ldap);
|
||||
session_register($config);
|
||||
include("./main.php"); // Username/password correct. Loading main Frame.
|
||||
session_register($ldap); // register $ldap object in session
|
||||
session_register($config); // register $config object in session
|
||||
session_register($language); // register $language in session
|
||||
|
||||
// setting language
|
||||
$language = explode(":", $language);
|
||||
putenv("LANG=" . $language[1]);
|
||||
setlocale("LC_ALL", $language[0]);
|
||||
bindtextdomain("lam", "../locale");
|
||||
textdomain("lam");
|
||||
|
||||
include("./main.php");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue