bernd commited on 2008-02-02 15:05:20
Zeige 3 geänderte Dateien mit 7 Einfügungen und 54 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@929 87cf0b9e-d624-0410-a070-f6ee81989793
| ... | ... |
@@ -49,8 +49,8 @@ output("<script type=\"text/javascript\">
|
| 49 | 49 |
SELECT = document.createElement('select');
|
| 50 | 50 |
SELECT.name = 'spamfilter_action_' + numForwards; |
| 51 | 51 |
|
| 52 |
- SELECT.options[0] = new Option('kein Filter', 'none', 1);
|
|
| 53 |
- SELECT.options[1] = new Option('markieren und zustellen', 'tag', 0);
|
|
| 52 |
+ SELECT.options[0] = new Option('kein Filter', 'none', 0);
|
|
| 53 |
+ SELECT.options[1] = new Option('markieren und zustellen', 'tag', 1);
|
|
| 54 | 54 |
SELECT.options[2] = new Option('nicht zustellen', 'delete', 0);
|
| 55 | 55 |
|
| 56 | 56 |
TD1.appendChild(INPUT); |
| ... | ... |
@@ -64,59 +64,10 @@ output("<script type=\"text/javascript\">
|
| 64 | 64 |
} |
| 65 | 65 |
</script> |
| 66 | 66 |
"); |
| 67 |
-/* |
|
| 68 |
-output("<script type=\"text/javascript\">
|
|
| 69 |
- |
|
| 70 |
- function selectForwarding() {
|
|
| 71 |
- // document.getElementById('forward_options').style.visibility = 'visible';
|
|
| 72 |
- // document.getElementById('mailbox_options').style.visibility = 'hidden';
|
|
| 73 |
- document.getElementById('forward_options').style.display = 'block';
|
|
| 74 |
- document.getElementById('mailbox_options').style.display = 'none';
|
|
| 75 |
- document.getElementById('spamfilter_folder').disabled = true;
|
|
| 76 |
- document.getElementById('virusfilter_folder').disabled = true;
|
|
| 77 |
- } |
|
| 78 |
- |
|
| 79 |
- function selectMailbox() {
|
|
| 80 |
- // document.getElementById('mailbox_options').style.visibility = 'visible';
|
|
| 81 |
- // document.getElementById('forward_options').style.visibility = 'hidden';
|
|
| 82 |
- document.getElementById('mailbox_options').style.display = 'block';
|
|
| 83 |
- document.getElementById('forward_options').style.display = 'none';
|
|
| 84 |
- document.getElementById('spamfilter_folder').disabled = false;
|
|
| 85 |
- document.getElementById('virusfilter_folder').disabled = false;
|
|
| 86 |
- } |
|
| 87 |
- |
|
| 88 |
- function toggleSpamfilterOptions() {
|
|
| 89 |
- if (document.getElementById('spamfilter').checked)
|
|
| 90 |
- document.getElementById('spamfilter_options').style.display = 'block';
|
|
| 91 |
- else |
|
| 92 |
- document.getElementById('spamfilter_options').style.display = 'none';
|
|
| 93 |
- } |
|
| 94 |
- |
|
| 95 |
- function toggleVirusfilterOptions() {
|
|
| 96 |
- if (document.getElementById('virusfilter').checked)
|
|
| 97 |
- document.getElementById('virusfilter_options').style.display = 'block';
|
|
| 98 |
- else |
|
| 99 |
- document.getElementById('virusfilter_options').style.display = 'none';
|
|
| 100 |
- } |
|
| 101 |
- |
|
| 102 |
- </script>"); |
|
| 103 |
-*/ |
|
| 104 | 67 |
|
| 105 | 68 |
$form = " |
| 106 | 69 |
<p><strong>E-Mail-Adresse:</strong> <input type=\"text\" name=\"local\" id=\"local\" size=\"10\" value=\"{$account['local']}\" /><strong style=\"font-size: 1.5em;\"> @ </strong>".domainselect($account['domainid'])."</p>";
|
| 107 | 70 |
|
| 108 |
-/* |
|
| 109 |
-$form .= "<p><input type=\"checkbox\" id=\"virusfilter\" name=\"virusfilter\" value=\"1\" ".($account['virusfilter'] != NULL ? 'checked="checked" ' : '')." /><label for=\"virusfilter\"> Viren-Scanner</label></p>"; |
|
| 110 |
- |
|
| 111 |
-$form .= "<p style=\"margin-left: 2em;\" id=\"virusfilter_options\"> |
|
| 112 |
- <em>Was soll mit E-Mails geschehen, in denen ein Virus erkannt wurde?</em><br /> |
|
| 113 |
- <input type=\"radio\" id=\"virusfilter_folder\" name=\"virusfilter_action\" value=\"folder\" ".($account['virusfilter'] == 'folder' ? 'checked="checked" ' : '')."/><label for=\"virusfilter_folder\"> In IMAP-Unterordner »Spam« ablegen</label><br /> |
|
| 114 |
- <input type=\"radio\" id=\"virusfilter_tag\" name=\"virusfilter_action\" value=\"tag\" ".($account['virusfilter'] == 'tag' ? 'checked="checked" ' : '')."/><label for=\"virusfilter_tag\"> Markieren und ganz normal zustellen</label><br /> |
|
| 115 |
-<input type=\"radio\" id=\"virusfilter_delete\" name=\"virusfilter_action\" value=\"delete\" ".($account['virusfilter'] == 'delete' ? 'checked="checked" ' : '')."/><label for=\"virusfilter_delete\"> Löschen</label> |
|
| 116 |
- </p> |
|
| 117 |
- "; |
|
| 118 |
-*/ |
|
| 119 |
- |
|
| 120 | 71 |
$password_message = ''; |
| 121 | 72 |
if ($is_mailbox and ($account['password'] != '')) |
| 122 | 73 |
$password_message = '<span style="font-size: 80%"><br /><em>Sie haben bereits ein Passwort gesetzt. Wenn Sie dieses Feld leer lassen, wird das bisherige Passwort beibehalten.</em></span>'; |
| ... | ... |
@@ -124,7 +75,7 @@ if ($is_mailbox and ($account['password'] != '')) |
| 124 | 75 |
|
| 125 | 76 |
$form .= " |
| 126 | 77 |
<p><input type=\"checkbox\" id=\"mailbox\" name=\"mailbox\" value=\"yes\" ".($is_mailbox ? 'checked="checked" ' : '')." /><label for=\"mailbox\"> In Mailbox speichern</label></p> |
| 127 |
- <p style=\"margin-left: 2em;\" id=\"mailbox_options\">Passwort für Abruf: <input type=\"password\" id=\"password\" name=\"password\" value=\"\" />{$password_message}</p>";
|
|
| 78 |
+ <p style=\"margin-left: 2em;\" id=\"mailbox_options\">Passwort für Abruf: <input type=\"password\" id=\"password\" name=\"password\" value=\"**********\" />{$password_message}</p>";
|
|
| 128 | 79 |
|
| 129 | 80 |
|
| 130 | 81 |
$form .= " |
| ... | ... |
@@ -164,7 +115,7 @@ else |
| 164 | 115 |
<tr> |
| 165 | 116 |
<td><input type=\"text\" id=\"forward_to_1\" name=\"forward_to_1\" value=\"\" /></td> |
| 166 | 117 |
<td> |
| 167 |
- ".html_select('spamfilter_action_1', array("none" => 'kein Filter', "tag" => 'markieren und zustellen', "delete" => 'löschen'), "none")."
|
|
| 118 |
+ ".html_select('spamfilter_action_1', array("none" => 'kein Filter', "tag" => 'markieren und zustellen', "delete" => 'löschen'), "tag")."
|
|
| 168 | 119 |
</td> |
| 169 | 120 |
</tr> |
| 170 | 121 |
"; |
| ... | ... |
@@ -6,7 +6,7 @@ require_once('include/hasdomain.php');
|
| 6 | 6 |
|
| 7 | 7 |
if (($role & ROLE_SYSTEMUSER) && user_has_vmail_domain()) |
| 8 | 8 |
{
|
| 9 |
- $menu["vmail_accounts"] = array("label" => "E-Mail", "file" => "accounts.php", "weight" => 10);
|
|
| 9 |
+ $menu["vmail_accounts"] = array("label" => "E-Mail", "file" => "accounts.php", "weight" => 3);
|
|
| 10 | 10 |
} |
| 11 | 11 |
if ($role & ROLE_VMAIL_ACCOUNT) |
| 12 | 12 |
{
|
| ... | ... |
@@ -23,6 +23,8 @@ if ($_GET['action'] == 'edit') |
| 23 | 23 |
$account['domain'] = (int) $_POST['domain']; |
| 24 | 24 |
$account['spamfilter'] = $_POST['spamfilter_action']; |
| 25 | 25 |
$account['password'] = $_POST['password']; |
| 26 |
+ if ($_POST['password'] == '**********') |
|
| 27 |
+ $account['password'] = ''; |
|
| 26 | 28 |
if ($_POST['mailbox'] != 'yes') |
| 27 | 29 |
$account['password'] = NULL; |
| 28 | 30 |
|
| 29 | 31 |