git.schokokeks.org
Repositories
Help
Report an Issue
webinterface.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
6b26305
Branches
Tags
master
ticket
webinterface.git
modules
vmail
edit.php
Javascript aus vmail-Modul entfernt
bernd
commited
6b26305
at 2007-11-22 13:40:55
edit.php
Blame
History
Raw
<?php require_once('inc/debug.php'); require_once('inc/security.php'); require_once('vmail.php'); $title = "E-Mail-Adresse bearbeiten"; $section = 'vmail_accounts'; require_role(ROLE_SYSTEMUSER); $id = (int) $_GET['id']; $vhost = empty_account(); if ($id != 0) $account = get_account_details($id); DEBUG($account); if ($id == 0) { output("<h3>Neue E-Mail-Adresse anlegen</h3>"); $title = "E-Mail-Adresse anlegen"; } else { output("<h3>E-Mail-Adresse bearbeiten</h3>"); } $is_forward = ($account['type'] == 'forward'); $is_mailbox = ( ! $is_forward); /* output("<script type=\"text/javascript\"> function selectForwarding() { // document.getElementById('forward_options').style.visibility = 'visible'; // document.getElementById('mailbox_options').style.visibility = 'hidden'; document.getElementById('forward_options').style.display = 'block'; document.getElementById('mailbox_options').style.display = 'none'; document.getElementById('spamfilter_folder').disabled = true; document.getElementById('virusfilter_folder').disabled = true; } function selectMailbox() { // document.getElementById('mailbox_options').style.visibility = 'visible'; // document.getElementById('forward_options').style.visibility = 'hidden'; document.getElementById('mailbox_options').style.display = 'block'; document.getElementById('forward_options').style.display = 'none'; document.getElementById('spamfilter_folder').disabled = false; document.getElementById('virusfilter_folder').disabled = false; } function toggleSpamfilterOptions() { if (document.getElementById('spamfilter').checked) document.getElementById('spamfilter_options').style.display = 'block'; else document.getElementById('spamfilter_options').style.display = 'none'; } function toggleVirusfilterOptions() { if (document.getElementById('virusfilter').checked) document.getElementById('virusfilter_options').style.display = 'block'; else document.getElementById('virusfilter_options').style.display = 'none'; } </script>"); */ $form = " <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>"; $form .= "<p><input type=\"checkbox\" id=\"spamfilter\" name=\"spamfilter\" value=\"1\" ".($account['spamfilter'] != NULL ? 'checked="checked" ' : '')." /><label for=\"spamfilter\"> Spam-Filter</label></p>"; $form .= "<p style=\"margin-left: 2em;\" id=\"spamfilter_options\"> <em>Was soll mit E-Mails geschehen, die als Spam eingestuft wurden?</em><br /> <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 /> <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 /> <input type=\"radio\" id=\"spamfilter_delete\" name=\"spamfilter_action\" value=\"delete\" ".($account['spamfilter'] == 'delete' ? 'checked="checked" ' : '')."/><label for=\"spamfilter_delete\"> Löschen</label> </p> "; $form .= "<p><input type=\"checkbox\" id=\"virusfilter\" name=\"virusfilter\" value=\"1\" ".($account['virusfilter'] != NULL ? 'checked="checked" ' : '')." /><label for=\"virusfilter\"> Viren-Scanner</label></p>"; $form .= "<p style=\"margin-left: 2em;\" id=\"virusfilter_options\"> <em>Was soll mit E-Mails geschehen, in denen ein Virus erkannt wurde?</em><br /> <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 /> <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 /> <input type=\"radio\" id=\"virusfilter_delete\" name=\"virusfilter_action\" value=\"delete\" ".($account['virusfilter'] == 'delete' ? 'checked="checked" ' : '')."/><label for=\"virusfilter_delete\"> Löschen</label> </p> "; $password_message = ''; if ($is_mailbox and ($account['data'] != '')) $password_message = '<spam 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>'; $form .= "<p> <input type=\"radio\" id=\"forward\" name=\"type\" value=\"forward\" ".($is_forward ? 'checked="checked" ' : '')." /><label for=\"forward\"> Weiterleitung an andere E-Mail-Adresse</label></p> <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> <p><input type=\"radio\" id=\"mailbox\" name=\"type\" value=\"mailbox\" ".($is_mailbox ? 'checked="checked" ' : '')." /><label for=\"mailbox\"> In Mailbox speichern</label></p> <p style=\"margin-left: 2em;\" id=\"mailbox_options\">Passwort für Abruf: <input type=\"password\" id=\"password\" name=\"password\" value=\"\" />{$password_message}</p>"; $form .= ' <p><input type="submit" value="Speichern" />    '.internal_link('accounts.php', 'Abbrechen').'</p>'; output(html_form('vmail_edit_mailbox', 'save.php', 'action=edit'.($id != 0 ? '&id='.$id : ''), $form)); ?>