diff --git a/lam/config/language.conf b/lam/config/language.conf new file mode 100644 index 00000000..ac6178f2 --- /dev/null +++ b/lam/config/language.conf @@ -0,0 +1,10 @@ +# LDAP Account Manager Language Configuration file + +# Each line consists of a : seperated entrys. The first entry is the link to the language definition, the second is the language description. Further entries are not used yet. +# 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 + +# German Language +german:Deutsch \ No newline at end of file diff --git a/lam/templates/login.inc b/lam/templates/login.inc new file mode 100755 index 00000000..31a0f50d --- /dev/null +++ b/lam/templates/login.inc @@ -0,0 +1,87 @@ + + + + + + + + <? + echo _("LDAP Account Manager -Login-"); + ?> + + + +




+

+ "; echo _($error_message); echo "

"; } ?> +
+ + + + + + + + + + + + + + + + + + +
>
+
+ + diff --git a/lam/templates/login.php b/lam/templates/login.php index 849bc8cc..aa691032 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -1,4 +1,4 @@ - - - - - <? - echo _("LDAP Account Manager -Login-"); - ?> - - - -




-

-
- - - - - - - - - - - - - -
>
-
- - +connect($username,$password); + if($result) + { + include("./main.php"); // Username/password correct. Loading main Frame. + } + elseif($result == "Unable to bind to Server!") + { + $error_message = "Wrong Password/Username combination. Try again."; + include("./login.inc"); // Username/password invalid. Returning to Login page. + } + elseif($result == "Unable to connect to Server!") + { + $error_message = "Cannot connect to specified LDAP-Server. Try again."; + include("./login.inc"); // Server not reachable. Returning to Login page. + } +} +// Loading Login page +else +{ +include("./login.inc"); +} +?>