...
|
...
|
@@ -76,37 +76,37 @@ if (!$accountlogin) {
|
76
|
76
|
$domain = (int) $_GET['domain'];
|
77
|
77
|
}
|
78
|
78
|
$form .= "
|
79
|
|
- <p><strong>E-Mail-Adresse:</strong> <input type=\"text\" name=\"local\" id=\"local\" size=\"10\" value=\"" . filter_output_html($account['local']) . "\" /><strong style=\"font-size: 1.5em;\"> @ </strong>" . domainselect($domain) . "</p>";
|
|
79
|
+ <p><strong>E-Mail-Adresse:</strong> <input type=\"text\" name=\"local\" id=\"local\" size=\"10\" value=\"" . filter_output_html($account['local']) . "\"><strong style=\"font-size: 1.5em;\"> @ </strong>" . domainselect($domain) . "</p>";
|
80
|
80
|
}
|
81
|
|
- $form .= '<p><input type="checkbox" id="enableextensions" name="enableextensions" value="yes" ' . ($has_extensions ? 'checked="checked" ' : '') . '/><label for=enableextensions"> Ermögliche die Nutzung von Erweiterungsadressen (<a href="https://wiki.schokokeks.org/E-Mail/Erweiterungsadressen">Hilfe</a>)';
|
|
81
|
+ $form .= '<p><input type="checkbox" id="enableextensions" name="enableextensions" value="yes" ' . ($has_extensions ? 'checked="checked" ' : '') . '><label for="enableextensions"> Ermögliche die Nutzung von Erweiterungsadressen (<a href="https://wiki.schokokeks.org/E-Mail/Erweiterungsadressen">Hilfe</a>)</label>';
|
82
|
82
|
$password_message = '';
|
83
|
83
|
$password_value = '';
|
84
|
84
|
if ($is_mailbox and ($account['password'] != '')) {
|
85
|
|
- $password_message = '<span style="font-size: 80%"><br /><em>Sie haben bereits ein Passwort gesetzt. Wenn Sie dieses Feld nicht ändern, wird das bisherige Passwort beibehalten.</em></span>';
|
|
85
|
+ $password_message = '<span style="font-size: 80%"><br><em>Sie haben bereits ein Passwort gesetzt. Wenn Sie dieses Feld nicht ändern, wird das bisherige Passwort beibehalten.</em></span>';
|
86
|
86
|
$password_value = '**********';
|
87
|
87
|
}
|
88
|
88
|
|
89
|
89
|
$form .= "
|
90
|
|
- <p><input class=\"option_group\" type=\"checkbox\" id=\"mailbox\" name=\"mailbox\" value=\"yes\" " . ($is_mailbox ? 'checked="checked" ' : '') . " /><label for=\"mailbox\"> <strong>In Mailbox speichern</strong></label></p>
|
|
90
|
+ <p><input class=\"option_group\" type=\"checkbox\" id=\"mailbox\" name=\"mailbox\" value=\"yes\" " . ($is_mailbox ? 'checked="checked" ' : '') . "><label for=\"mailbox\"> <strong>In Mailbox speichern</strong></label></p>
|
91
|
91
|
<div style=\"margin-left: 2em;\" id=\"mailbox_config\" class=\"option_group\">
|
92
|
|
- <p>Passwort für Abruf: <input style=\"color: #aaa;\" type=\"password\" id=\"password\" name=\"password\" value=\"{$password_value}\" />{$password_message}</p>";
|
|
92
|
+ <p>Passwort für Abruf: <input style=\"color: #aaa;\" type=\"password\" id=\"password\" name=\"password\" value=\"{$password_value}\" autocomplete=\"new-password\">{$password_message}</p>";
|
93
|
93
|
|
94
|
94
|
$quota = config('vmail_basequota');
|
95
|
95
|
if ($is_mailbox and $account['quota']) {
|
96
|
96
|
$quota = $account['quota'];
|
97
|
97
|
}
|
98
|
|
- $form .= "<p class=\"quota_options\">Größe des Postfachs: <input type=\"text\" id=\"quota\" name=\"quota\" value=\"{$quota}\" /> MB<br /><span style=\"font-size: 80%\"><em>Hinweis: Die Differenz zwischen dem hier gesetzten Wert und dem Sockelbetrag von " . config('vmail_basequota') . " MB wird vom Speicherplatz Ihres Benutzer-Kontos abgezogen.</em></span></p>";
|
|
98
|
+ $form .= "<p class=\"quota_options\">Größe des Postfachs: <input type=\"text\" id=\"quota\" name=\"quota\" value=\"{$quota}\"> MB<br><span style=\"font-size: 80%\"><em>Hinweis: Die Differenz zwischen dem hier gesetzten Wert und dem Sockelbetrag von " . config('vmail_basequota') . " MB wird vom Speicherplatz Ihres Benutzer-Kontos abgezogen.</em></span></p>";
|
99
|
99
|
|
100
|
100
|
$quota_notify = ($account['quota_threshold'] >= 0) ? ' checked="checked" ' : '';
|
101
|
101
|
$quota_threshold = ($account['quota_threshold'] >= 0) ? $account['quota_threshold'] : '';
|
102
|
|
- $form .= "<p class=\"quota_options\"><input type=\"checkbox\" id=\"quota_notify\" name=\"quota_notify\" value=\"1\" {$quota_notify} /><label for=\"quota_notify\">Benachrichtigung wenn weniger als</label> <input type=\"text\" name=\"quota_threshold\" id=\"quota_threshold\" value=\"{$quota_threshold}\" /> MB Speicherplatz zur Verfügung stehen.</p>";
|
|
102
|
+ $form .= "<p class=\"quota_options\"><input type=\"checkbox\" id=\"quota_notify\" name=\"quota_notify\" value=\"1\" {$quota_notify}><label for=\"quota_notify\">Benachrichtigung wenn weniger als</label> <input type=\"text\" name=\"quota_threshold\" id=\"quota_threshold\" value=\"{$quota_threshold}\"> MB Speicherplatz zur Verfügung stehen.</p>";
|
103
|
103
|
|
104
|
104
|
$form .= "</div>";
|
105
|
105
|
}
|
106
|
106
|
|
107
|
107
|
|
108
|
108
|
|
109
|
|
-$form .= "<p><input class=\"option_group\" type=\"checkbox\" id=\"autoresponder\" name=\"autoresponder\" value=\"yes\" " . ($is_autoresponder ? 'checked="checked" ' : '') . " /><label for=\"autoresponder\"> <strong>Automatische Antwort versenden</strong></label></p>";
|
|
109
|
+$form .= "<p><input class=\"option_group\" type=\"checkbox\" id=\"autoresponder\" name=\"autoresponder\" value=\"yes\" " . ($is_autoresponder ? 'checked="checked" ' : '') . "><label for=\"autoresponder\"> <strong>Automatische Antwort versenden</strong></label></p>";
|
110
|
110
|
|
111
|
111
|
$form .= "<div style=\"margin-left: 2em;\" id=\"autoresponder_config\" class=\"option_group\">";
|
112
|
112
|
|
...
|
...
|
@@ -126,9 +126,9 @@ $startdate = $ar['valid_from'];
|
126
|
126
|
if (!$startdate || $startdate <= date('Y-m-d')) {
|
127
|
127
|
$startdate = date('Y-m-d', time() + 1 * 24 * 60 * 60);
|
128
|
128
|
}
|
129
|
|
-$form .= "<p><input type=\"radio\" name=\"ar_valid_from\" value=\"now\" id=\"ar_valid_from_now\"{$valid_from_now_checked} /> <label for=\"ar_valid_from_now\">Ab sofort</label><br />" .
|
130
|
|
- "<input type=\"radio\" name=\"ar_valid_from\" value=\"date\" id=\"ar_valid_from_date\"{$valid_from_future_checked} /> <label for=\"ar_valid_from_date\">Erst ab dem </label>" .
|
131
|
|
- "<input type=\"date\" value=\"$startdate\" id=\"ar_startdate\" name=\"ar_startdate\" min=\"" . date('Y-m-d') . "\" max=\"" . date('Y-m-d', time() + 60 * 24 * 60 * 60) . "\" /></p>";
|
|
129
|
+$form .= "<p><input type=\"radio\" name=\"ar_valid_from\" value=\"now\" id=\"ar_valid_from_now\"{$valid_from_now_checked}> <label for=\"ar_valid_from_now\">Ab sofort</label><br>" .
|
|
130
|
+ "<input type=\"radio\" name=\"ar_valid_from\" value=\"date\" id=\"ar_valid_from_date\"{$valid_from_future_checked}> <label for=\"ar_valid_from_date\">Erst ab dem </label>" .
|
|
131
|
+ "<input type=\"date\" value=\"$startdate\" id=\"ar_startdate\" name=\"ar_startdate\" min=\"" . date('Y-m-d') . "\" max=\"" . date('Y-m-d', time() + 60 * 24 * 60 * 60) . "\"></p>";
|
132
|
132
|
|
133
|
133
|
$enddate = $ar['valid_until'];
|
134
|
134
|
if (!$enddate) {
|
...
|
...
|
@@ -141,8 +141,8 @@ if ($ar['valid_from'] > date('Y-m-d')) {
|
141
|
141
|
$max_end = $max_end->format('Y-m-d');
|
142
|
142
|
}
|
143
|
143
|
$form .= "<h4>Deaktivierung</h4>";
|
144
|
|
-$form .= "<p><label for=\"ar_valid_until_date\">Keine Antworten mehr versenden ab dem </label>" .
|
145
|
|
- "<input type=\"date\" value=\"$enddate\" id=\"ar_enddate\" name=\"ar_enddate\" min=\"" . date('Y-m-d') . "\" max=\"" . $max_end . "\" /><br/>";
|
|
144
|
+$form .= "<p><label for=\"ar_enddate\">Keine Antworten mehr versenden ab dem </label>" .
|
|
145
|
+ "<input type=\"date\" value=\"$enddate\" id=\"ar_enddate\" name=\"ar_enddate\" min=\"" . date('Y-m-d') . "\" max=\"" . $max_end . "\"><br>";
|
146
|
146
|
if (!$accountlogin && ($id != 0)) {
|
147
|
147
|
$form .= "<small>(Automatische Antworten sind nur befristet erlaubt. Wenn Sie diese Adresse dauerhaft stilllegen möchten, können Sie dies am Ende dieser Seite tun.)</small></p>";
|
148
|
148
|
}
|
...
|
...
|
@@ -151,10 +151,10 @@ $subject = filter_output_html($ar['subject']);
|
151
|
151
|
$ar_subject_default_checked = ($subject == null) ? ' checked="checked"' : '';
|
152
|
152
|
$ar_subject_custom_checked = ($subject) ? ' checked="checked"' : '';
|
153
|
153
|
$form .= "<h4>Betreffzeile der automatischen Antwort</h4>" .
|
154
|
|
- "<p><input type=\"radio\" name=\"ar_subject\" value=\"default\" id=\"ar_subject_default\"{$ar_subject_default_checked} /> " .
|
155
|
|
- "<label for=\"ar_subject_default\">Automatisch (Re: <em><Betreff der Originalnachricht></em>)</label><br />" .
|
156
|
|
- "<input type=\"radio\" name=\"ar_subject\" value=\"custom\" id=\"ar_subject_custom\"{$ar_subject_custom_checked} /> " .
|
157
|
|
- "<label for=\"ar_subject_custom\">Anderer Betreff:</label> <input type=\"text\" name=\"ar_subject_value\" id=\"ar_subject_value\" value=\"{$subject}\"/></p>";
|
|
154
|
+ "<p><input type=\"radio\" name=\"ar_subject\" value=\"default\" id=\"ar_subject_default\"{$ar_subject_default_checked}> " .
|
|
155
|
+ "<label for=\"ar_subject_default\">Automatisch (Re: <em><Betreff der Originalnachricht></em>)</label><br>" .
|
|
156
|
+ "<input type=\"radio\" name=\"ar_subject\" value=\"custom\" id=\"ar_subject_custom\"{$ar_subject_custom_checked}> " .
|
|
157
|
+ "<label for=\"ar_subject_custom\">Anderer Betreff:</label> <input type=\"text\" name=\"ar_subject_value\" id=\"ar_subject_value\" value=\"{$subject}\"></p>";
|
158
|
158
|
|
159
|
159
|
$message = filter_output_html($ar['message']);
|
160
|
160
|
$form .= "<h4>Inhalt der automatischen Antwort</h4>" .
|
...
|
...
|
@@ -174,9 +174,9 @@ $ar_from_default_checked = ($ar['fromname'] == null) ? ' checked="checked"' : ''
|
174
|
174
|
$ar_from_custom_checked = ($ar['fromname'] != null) ? ' checked="checked"' : '';
|
175
|
175
|
$fromname = filter_output_html($ar['fromname']);
|
176
|
176
|
$form .= "<h4>Absender der automatischen Antwort</h4>" .
|
177
|
|
- "<p><input type=\"radio\" name=\"ar_from\" value=\"default\" id=\"ar_from_default\"{$ar_from_default_checked} /> <label for=\"ar_from_default\">Nur E-Mail-Adresse</label><br />" .
|
178
|
|
- "<input type=\"radio\" name=\"ar_from\" value=\"custom\" id=\"ar_from_custom\"{$ar_from_custom_checked} /> <label for=\"ar_from_custom\">Mit Name: </label> " .
|
179
|
|
- "<input type=\"text\" name=\"ar_fromname\" id=\"ar_fromname\" value=\"{$fromname}\"/></p>";
|
|
177
|
+ "<p><input type=\"radio\" name=\"ar_from\" value=\"default\" id=\"ar_from_default\"{$ar_from_default_checked}> <label for=\"ar_from_default\">Nur E-Mail-Adresse</label><br>" .
|
|
178
|
+ "<input type=\"radio\" name=\"ar_from\" value=\"custom\" id=\"ar_from_custom\"{$ar_from_custom_checked}> <label for=\"ar_from_custom\">Mit Name: </label> " .
|
|
179
|
+ "<input type=\"text\" name=\"ar_fromname\" id=\"ar_fromname\" value=\"{$fromname}\"></p>";
|
180
|
180
|
|
181
|
181
|
|
182
|
182
|
|
...
|
...
|
@@ -187,7 +187,7 @@ $form .= '</div>';
|
187
|
187
|
|
188
|
188
|
|
189
|
189
|
|
190
|
|
-$form .= "<p><input class=\"option_group\" type=\"checkbox\" id=\"forward\" name=\"forward\" value=\"yes\" " . ($is_forward ? 'checked="checked" ' : '') . " /><label for=\"forward\"> <strong>Weiterleitung an andere E-Mail-Adressen</strong></label></p>";
|
|
190
|
+$form .= "<p><input class=\"option_group\" type=\"checkbox\" id=\"forward\" name=\"forward\" value=\"yes\" " . ($is_forward ? 'checked="checked" ' : '') . "><label for=\"forward\"> <strong>Weiterleitung an andere E-Mail-Adressen</strong></label></p>";
|
191
|
191
|
|
192
|
192
|
|
193
|
193
|
$form .= "<div style=\"margin-left: 2em;\" id=\"forward_config\" class=\"option_group\">";
|
...
|
...
|
@@ -205,7 +205,7 @@ for ($i = 0 ; $i < max($numforwards, 10) ; $i++) {
|
205
|
205
|
$num = $i + 1;
|
206
|
206
|
$form .= "<div class=\"vmail-forward\" id=\"vmail_forward_{$num}\">
|
207
|
207
|
<div style=\"float: right;\" class=\"delete_forward\">" . icon_delete("Diese Weiterleitung entfernen") . "</div>
|
208
|
|
- <p>Weiterleiten an <input type=\"text\" id=\"forward_to_{$num}\" name=\"forward_to_{$num}\" value=\"" . filter_output_html($account['forwards'][$i]['destination']) . "\" /></p>
|
|
208
|
+ <p>Weiterleiten an <input type=\"text\" id=\"forward_to_{$num}\" name=\"forward_to_{$num}\" value=\"" . filter_output_html($account['forwards'][$i]['destination']) . "\"></p>
|
209
|
209
|
</div>\n";
|
210
|
210
|
}
|
211
|
211
|
$form .= '</div>';
|
...
|
...
|
@@ -217,7 +217,7 @@ $target = 'vmail';
|
217
|
217
|
if ($accountlogin) {
|
218
|
218
|
$target = '../index/index';
|
219
|
219
|
}
|
220
|
|
-$form .= '<p><input id="submit" type="submit" value="Speichern" />    ' . internal_link($target, 'Abbrechen') . '</p>';
|
|
220
|
+$form .= '<p><input id="submit" type="submit" value="Speichern">    ' . internal_link($target, 'Abbrechen') . '</p>';
|
221
|
221
|
|
222
|
222
|
output(html_form('vmail_edit_mailbox', 'save', 'action=edit' . ($id != 0 ? '&id=' . $id : ''), $form));
|
223
|
223
|
|