From 26aa814f239f534fa315a9731b2079ae6a30c756 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 16 Apr 2006 12:49:12 +0000 Subject: [PATCH] new pages for general settings --- lam/templates/config/mainlogin.php | 141 +++++++++++++++++++++++++ lam/templates/config/mainmanage.php | 154 ++++++++++++++++++++++++++++ lam/templates/login.php | 4 +- 3 files changed, 298 insertions(+), 1 deletion(-) create mode 100644 lam/templates/config/mainlogin.php create mode 100644 lam/templates/config/mainmanage.php 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) {
- + +       +