*** empty log message ***
This commit is contained in:
parent
fa18293b67
commit
ce035ecd58
|
@ -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.
|
# 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
|
# Englisch Language
|
||||||
english:English
|
en_GB:iso639_en:English (Britain)
|
||||||
|
|
||||||
# German Language
|
# German Language
|
||||||
german:Deutsch
|
de_DE:iso639_de:Deutsch (Deutschland)
|
||||||
|
|
|
@ -34,11 +34,20 @@ if($action == "checklogin")
|
||||||
$config = new Config;
|
$config = new Config;
|
||||||
$ldap = new Ldap($config);
|
$ldap = new Ldap($config);
|
||||||
$result = $ldap->connect($username,$passwd);
|
$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($ldap); // register $ldap object in session
|
||||||
session_register($config);
|
session_register($config); // register $config object in session
|
||||||
include("./main.php"); // Username/password correct. Loading main Frame.
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue