From 2e5b6f3b939478f7ee7f381d50b28d1a6a1dfff1 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 16 Apr 2006 12:45:22 +0000 Subject: [PATCH] master password can be changed on new general configuration page --- lam/templates/config/profmanage.php | 68 ++++------------------------- 1 file changed, 9 insertions(+), 59 deletions(-) diff --git a/lam/templates/config/profmanage.php b/lam/templates/config/profmanage.php index 81d880f1..647973bf 100644 --- a/lam/templates/config/profmanage.php +++ b/lam/templates/config/profmanage.php @@ -117,16 +117,6 @@ if ($_POST['submit']) { } else $error = _("Profile passwords are different or empty!"); } - // set master password - elseif ($_POST['action'] == "setmasterpass") { - if ($_POST['masterpassword'] && $_POST['masterpassword2'] && ($_POST['masterpassword'] == $_POST['masterpassword2'])) { - $config = new CfgMain(); - $config->password = $_POST['masterpassword']; - $config->save(); - $msg = _("New master password set successfully."); - } - else $error = _("Master passwords are different or empty!"); - } // set default profile elseif ($_POST['action'] == "setdefault") { $config = new CfgMain(); @@ -163,7 +153,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) { - + @@ -185,7 +175,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) { ?> - + - + - + @@ -243,7 +233,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) { - + @@ -273,7 +263,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) { - + @@ -301,7 +291,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) { ?> - + - - - - + @@ -350,43 +337,6 @@ if (!isset($cfg->default) && !isset($cfg->password)) { - - - - - - - - - - - - - - - - - -
    @@ -194,7 +184,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) {
    @@ -209,7 +199,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) {
    @@ -311,15 +301,12 @@ if (!isset($cfg->default) && !isset($cfg->password)) {  
 
 
 
- - - - - - - - -   - "; - echo "\"""; - echo "\n"; - ?> -
   - - -  
@@ -395,7 +345,7 @@ if (!isset($cfg->default) && !isset($cfg->password)) { - +