Bernd Wurst commited on 2013-02-27 15:52:00
Zeige 2 geänderte Dateien mit 3 Einfügungen und 6 Löschungen.
| ... | ... |
@@ -145,6 +145,8 @@ output("<script type=\"text/javascript\">
|
| 145 | 145 |
input.value = ''; |
| 146 | 146 |
} |
| 147 | 147 |
input.style.color = '#000'; |
| 148 |
+ /* FIXME: Keine Ahnung, warum das notwendig ist. Mit dem und dem Aufruf in 'onclick=' tut es was es soll. */ |
|
| 149 |
+ input.focus(); |
|
| 148 | 150 |
} |
| 149 | 151 |
|
| 150 | 152 |
function refillPassword() {
|
| ... | ... |
@@ -195,7 +197,7 @@ if ($accountlogin) {
|
| 195 | 197 |
$form .= " |
| 196 | 198 |
<p><input onchange=\"toggleDisplay('mailbox', 'mailbox_options')\" type=\"checkbox\" id=\"mailbox\" name=\"mailbox\" value=\"yes\" ".($is_mailbox ? 'checked="checked" ' : '')." /><label for=\"mailbox\"> <strong>In Mailbox speichern</strong></label></p>
|
| 197 | 199 |
<div style=\"margin-left: 2em;".($is_mailbox ? '' : ' display: none;')."\" id=\"mailbox_options\"> |
| 198 |
- <p>Passwort für Abruf: <input onfocus=\"clearPassword()\" onblur=\"refillPassword()\" style=\"color: #aaa;\" type=\"password\" id=\"password\" name=\"password\" value=\"{$password_value}\" />{$password_message}</p>";
|
|
| 200 |
+ <p>Passwort für Abruf: <input onclick=\"clearPassword()\" onfocus=\"clearPassword()\" onblur=\"refillPassword()\" style=\"color: #aaa;\" type=\"password\" id=\"password\" name=\"password\" value=\"{$password_value}\" />{$password_message}</p>";
|
|
| 199 | 201 |
|
| 200 | 202 |
$form.= "<p class=\"spamfilter_options\">Unerwünschte E-Mails (Spam, Viren) in diesem Postfach ".html_select('spamfilter_action', array("none" => 'nicht filtern', "folder" => 'in Unterordner »Spam« ablegen', "tag" => 'markieren und zustellen', "delete" => 'nicht zustellen (löschen)'), $account['spamfilter'])."</p>";
|
| 201 | 203 |
|
| ... | ... |
@@ -46,17 +46,12 @@ if ($_GET['action'] == 'edit') |
| 46 | 46 |
$account['id'] = $id; |
| 47 | 47 |
|
| 48 | 48 |
$oldaccount = get_account_details($id); |
| 49 |
- if ($oldaccount['password'] != NULL ) { // Account war vorher eine Mailbox
|
|
| 50 | 49 |
$account['local'] = $oldaccount['local']; |
| 51 | 50 |
$account['domain'] = $oldaccount['domain']; |
| 52 | 51 |
} else {
|
| 53 | 52 |
$account['local'] = $_POST['local']; |
| 54 | 53 |
$account['domain'] = (int) $_POST['domain']; |
| 55 | 54 |
} |
| 56 |
- } else {
|
|
| 57 |
- $account['local'] = $_POST['local']; |
|
| 58 |
- $account['domain'] = (int) $_POST['domain']; |
|
| 59 |
- } |
|
| 60 | 55 |
$account['password'] = $_POST['password']; |
| 61 | 56 |
if (($account['password'] == '') && ($_POST['mailbox'] == 'yes')) |
| 62 | 57 |
system_failure("Sie haben ein leeres Passwort eingegeben!");
|
| 63 | 58 |