bernd commited on 2007-11-22 13:40:55
Zeige 1 geänderte Dateien mit 10 Einfügungen und 39 Löschungen.
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@799 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -28,6 +28,7 @@ else { |
28 | 28 |
$is_forward = ($account['type'] == 'forward'); |
29 | 29 |
$is_mailbox = ( ! $is_forward); |
30 | 30 |
|
31 |
+/* |
|
31 | 32 |
output("<script type=\"text/javascript\"> |
32 | 33 |
|
33 | 34 |
function selectForwarding() { |
... | ... |
@@ -63,13 +64,14 @@ output("<script type=\"text/javascript\"> |
63 | 64 |
} |
64 | 65 |
|
65 | 66 |
</script>"); |
67 |
+*/ |
|
66 | 68 |
|
67 | 69 |
$form = " |
68 | 70 |
<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>"; |
69 | 71 |
|
70 |
-$form .= "<p><input type=\"checkbox\" id=\"spamfilter\" name=\"spamfilter\" value=\"1\" ".($account['spamfilter'] != NULL ? 'checked="checked" ' : '')." onclick=\"toggleSpamfilterOptions()\" /><label for=\"spamfilter\"> Spam-Filter</label></p>"; |
|
72 |
+$form .= "<p><input type=\"checkbox\" id=\"spamfilter\" name=\"spamfilter\" value=\"1\" ".($account['spamfilter'] != NULL ? 'checked="checked" ' : '')." /><label for=\"spamfilter\"> Spam-Filter</label></p>"; |
|
71 | 73 |
|
72 |
-$form .= "<p style=\"margin-left: 2em; ".($account['spamfilter'] != NULL ? '' : 'display: none;')."\" id=\"spamfilter_options\"> |
|
74 |
+$form .= "<p style=\"margin-left: 2em;\" id=\"spamfilter_options\"> |
|
73 | 75 |
<em>Was soll mit E-Mails geschehen, die als Spam eingestuft wurden?</em><br /> |
74 | 76 |
<input type=\"radio\" id=\"spamfilter_folder\" name=\"spamfilter_action\" value=\"folder\" ".($account['spamfilter'] == 'folder' ? 'checked="checked" ' : '')."/><label for=\"spamfilter_folder\"> In IMAP-Unterordner »Spam« ablegen</label><br /> |
75 | 77 |
<input type=\"radio\" id=\"spamfilter_tag\" name=\"spamfilter_action\" value=\"tag\" ".($account['spamfilter'] == 'tag' ? 'checked="checked" ' : '')."/><label for=\"spamfilter_tag\"> Markieren und ganz normal zustellen</label><br /> |
... | ... |
@@ -78,9 +80,9 @@ $form .= "<p style=\"margin-left: 2em; ".($account['spamfilter'] != NULL ? '' : |
78 | 80 |
"; |
79 | 81 |
|
80 | 82 |
|
81 |
-$form .= "<p><input type=\"checkbox\" id=\"virusfilter\" name=\"virusfilter\" value=\"1\" ".($account['virusfilter'] != NULL ? 'checked="checked" ' : '')." onclick=\"toggleVirusfilterOptions()\" /><label for=\"virusfilter\"> Viren-Scanner</label></p>"; |
|
83 |
+$form .= "<p><input type=\"checkbox\" id=\"virusfilter\" name=\"virusfilter\" value=\"1\" ".($account['virusfilter'] != NULL ? 'checked="checked" ' : '')." /><label for=\"virusfilter\"> Viren-Scanner</label></p>"; |
|
82 | 84 |
|
83 |
-$form .= "<p style=\"margin-left: 2em; ".($account['virusfilter'] != NULL ? '' : 'display: none;')."\" id=\"virusfilter_options\"> |
|
85 |
+$form .= "<p style=\"margin-left: 2em;\" id=\"virusfilter_options\"> |
|
84 | 86 |
<em>Was soll mit E-Mails geschehen, in denen ein Virus erkannt wurde?</em><br /> |
85 | 87 |
<input type=\"radio\" id=\"virusfilter_folder\" name=\"virusfilter_action\" value=\"folder\" ".($account['virusfilter'] == 'folder' ? 'checked="checked" ' : '')."/><label for=\"virusfilter_folder\"> In IMAP-Unterordner »Viren« ablegen</label><br /> |
86 | 88 |
<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 /> |
... | ... |
@@ -94,42 +96,11 @@ if ($is_mailbox and ($account['data'] != '')) |
94 | 96 |
|
95 | 97 |
|
96 | 98 |
$form .= "<p> |
97 |
- <input type=\"radio\" id=\"forward\" name=\"type\" value=\"forward\" ".($is_forward ? 'checked="checked" ' : '')." onclick=\"selectForwarding()\" /><label for=\"forward\"> Weiterleitung an andere E-Mail-Adresse</label></p> |
|
98 |
- <p style=\"margin-left: 2em; ".($is_mailbox ? 'display: none' : '')."\" id=\"forward_options\">Weiterleitung an: <textarea id=\"forward_to\" name=\"forward_to\">".($is_forward ? str_replace(' ', "\n", $account['data']) : '')."</textarea><br />Sie können mehrere Adressen eingeben. trennen Sie diese bitte mit Zeilenumbrüchen oder Leerzeichen.</p> |
|
99 |
- <p><input type=\"radio\" id=\"mailbox\" name=\"type\" value=\"mailbox\" ".($is_mailbox ? 'checked="checked" ' : '')." onclick=\"selectMailbox()\" /><label for=\"mailbox\"> In Mailbox speichern</label></p> |
|
100 |
- <p style=\"margin-left: 2em; ".($is_forward ? 'display: none' : '')."\" id=\"mailbox_options\">Passwort für Abruf: <input type=\"password\" id=\"password\" name=\"password\" value=\"\" />{$password_message}</p>"; |
|
101 |
- |
|
102 |
-/* |
|
103 |
-$form .= "<tr><td>PHP</td> |
|
104 |
- <td><select name=\"php\" id=\"php\"> |
|
105 |
- <option value=\"none\" ".($vhost['php'] == NULL ? 'selected="selected"' : '')." >kein PHP</option> |
|
106 |
- <option value=\"mod_php\" ".($vhost['php'] == 'mod_php' ? 'selected="selected"' : '')." >als Apache-Modul</option> |
|
107 |
- <option value=\"fastcgi\" ".($vhost['php'] == 'fastcgi' ? 'selected="selected"' : '')." >FastCGI</option> |
|
108 |
- </select> |
|
109 |
- </td> |
|
110 |
- <td id=\"defaultphp\">als Apache-Modul</td></tr> |
|
111 |
- <tr><td>SSL-Verschlüsselung</td> |
|
112 |
- <td><select name=\"ssl\" id=\"ssl\"> |
|
113 |
- <option value=\"none\" ".($vhost['ssl'] == NULL ? 'selected="selected"' : '')." >SSL optional anbieten</option> |
|
114 |
- <option value=\"http\" ".($vhost['ssl'] == 'http' ? 'selected="selected"' : '')." >kein SSL</option> |
|
115 |
- <option value=\"https\" ".($vhost['ssl'] == 'https' ? 'selected="selected"' : '')." >nur SSL</option> |
|
116 |
- <option value=\"forward\" ".($vhost['ssl'] == 'forward' ? 'selected="selected"' : '')." >Immer auf SSL umleiten</option> |
|
117 |
- </select> |
|
118 |
- </td> |
|
119 |
- <td id=\"defaultssl\">SSL optional anbieten</td></tr> |
|
120 |
- <tr> |
|
121 |
- <td>Logfiles <span class=\"warning\">*</span></td> |
|
122 |
- <td><select name=\"logtype\" id=\"logtype\"> |
|
123 |
- <option value=\"none\" ".($vhost['logtype'] == NULL ? 'selected="selected"' : '')." >keine Logfiles</option> |
|
124 |
- <option value=\"anonymous\" ".($vhost['logtype'] == 'anonymous' ? 'selected="selected"' : '')." >anonymisiert</option> |
|
125 |
- <option value=\"default\" ".($vhost['logtype'] == 'default' ? 'selected="selected"' : '')." >vollständige Logfile</option> |
|
126 |
- </select><br /> |
|
127 |
- <input type=\"checkbox\" id=\"errorlog\" name=\"errorlog\" value=\"1\" ".($vhost['errorlog'] == 1 ? ' checked="checked" ' : '')." /> <label for=\"errorlog\">Fehlerprotokoll (error_log) einschalten</label> |
|
128 |
- </td> |
|
129 |
- <td id=\"defaultlogtype\">keine Logfiles</td></tr> |
|
130 |
- "; |
|
99 |
+ <input type=\"radio\" id=\"forward\" name=\"type\" value=\"forward\" ".($is_forward ? 'checked="checked" ' : '')." /><label for=\"forward\"> Weiterleitung an andere E-Mail-Adresse</label></p> |
|
100 |
+ <p style=\"margin-left: 2em;\" id=\"forward_options\">Weiterleitung an:<br /><textarea id=\"forward_to\" name=\"forward_to\" rows=\"3\">".($is_forward ? str_replace(' ', "\n", $account['data']) : '')."</textarea><br />Sie können mehrere Adressen eingeben, geben Sie dann bitte eine Adresse pro Zeile ein.</p> |
|
101 |
+ <p><input type=\"radio\" id=\"mailbox\" name=\"type\" value=\"mailbox\" ".($is_mailbox ? 'checked="checked" ' : '')." /><label for=\"mailbox\"> In Mailbox speichern</label></p> |
|
102 |
+ <p style=\"margin-left: 2em;\" id=\"mailbox_options\">Passwort für Abruf: <input type=\"password\" id=\"password\" name=\"password\" value=\"\" />{$password_message}</p>"; |
|
131 | 103 |
|
132 |
-*/ |
|
133 | 104 |
$form .= ' |
134 | 105 |
<p><input type="submit" value="Speichern" />    '.internal_link('accounts.php', 'Abbrechen').'</p>'; |
135 | 106 |
|
136 | 107 |