diff --git a/lam/templates/config/mainlogin.php b/lam/templates/config/mainlogin.php new file mode 100644 index 00000000..1dee09c0 --- /dev/null +++ b/lam/templates/config/mainlogin.php @@ -0,0 +1,141 @@ +password)) { + $_SESSION["mainconf_password"] = $_POST['passwd']; + metaRefresh("mainmanage.php"); + exit(); + } + else { + $message = _("The password is invalid! Please try again."); + } +} + + +echo $_SESSION['header']; + +?> + + + <?php + echo _("Login"); + ?> + + + + + \n"; + echo "\n"; + echo "\n"; + ?> +

+ LDAP Account Manager +

+


+ +
+ + + + + + + + + + +\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; + } +?> + + + + + + + + + + + +
 
" . $message . "
 
+ + "> +   + <?php echo _('Help'); ?> + +
 
+
+ +






+ + +

+ +

+ + + diff --git a/lam/templates/config/mainmanage.php b/lam/templates/config/mainmanage.php new file mode 100644 index 00000000..06545034 --- /dev/null +++ b/lam/templates/config/mainmanage.php @@ -0,0 +1,154 @@ +password)) { + require('mainlogin.php'); + exit(); +} + +echo $_SESSION['header']; + +?> + + + <?php + echo _("Edit general settings"); + ?> + + + + +

+ LDAP Account Manager +

+

+ +password = $_POST['masterpassword']; + $cfg->save(); + $msg = _("New master password set successfully."); + unset($_SESSION["mainconf_password"]); + } + else $error = _("Master passwords are different or empty!"); + } + else { + $msg = _("No changes were made."); + } + // print messages + if ($error || $msg) { + if ($error) StatusMessage("ERROR", "", $error); + if ($msg) { + StatusMessage("INFO", "", $msg); + // back to login page + echo "

" . _("Back to login") . "

"; + exit(); + } + } + else exit; +} +?> + +
+ +
+ + +
+
+ +

+ + + + + + + + + + + +
+ + + + +   + "; + echo "\"""; + echo "\n"; + ?> +
+ + + + +  
+

+
+
+ + "> + +
+


+ + +

+ +

+ + + + diff --git a/lam/templates/login.php b/lam/templates/login.php index 3b81cdbc..5f405742 100644 --- a/lam/templates/login.php +++ b/lam/templates/login.php @@ -169,7 +169,9 @@ function display_LoginPage($config_object) {
- + +       +