624193f5573723894ecf39a9e121a951375c3953
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php   1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/edit.php   2) /*
modules/email/edit.php   3) This file belongs to the Webinterface of schokokeks.org Hosting
modules/email/edit.php   4) 
Bernd Wurst Updated copyright notice (2...

Bernd Wurst authored 11 years ago

modules/email/edit.php   5) Written 2008-2013 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

modules/email/edit.php   6)   Bernd Wurst <bernd@schokokeks.org>
modules/email/edit.php   7)   Hanno Böck <hanno@schokokeks.org>
modules/email/edit.php   8) 
modules/email/edit.php   9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
modules/email/edit.php  10) 
modules/email/edit.php  11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
modules/email/edit.php  12) http://creativecommons.org/publicdomain/zero/1.0/
modules/email/edit.php  13) 
modules/email/edit.php  14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
modules/email/edit.php  15) */
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  16) 
modules/vmail/edit.php  17) require_once('inc/debug.php');
modules/vmail/edit.php  18) require_once('inc/security.php');
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php  19) require_once('inc/icons.php');
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  20) 
modules/vmail/edit.php  21) require_once('vmail.php');
modules/vmail/edit.php  22) 
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/edit.php  23) $section = 'email_vmail';
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php  24) require_role(array(ROLE_SYSTEMUSER, ROLE_VMAIL_ACCOUNT));
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  25) 
bernd huch, was macht das denn da...

bernd authored 17 years ago

modules/vmail/edit.php  26) $account = empty_account();
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 15 years ago

modules/email/edit.php  27) $id = (isset($_GET['id']) ? (int) $_GET['id'] : 0);
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  28) 
modules/vmail/edit.php  29) if ($id != 0)
modules/vmail/edit.php  30)   $account = get_account_details($id);
modules/vmail/edit.php  31) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php  32) $accountlogin = false;
modules/email/edit.php  33) if ($_SESSION['role'] == ROLE_VMAIL_ACCOUNT) {
bernd Index-Blöcke werden jetzt v...

bernd authored 12 years ago

modules/email/edit.php  34)   $section = 'email_edit';
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php  35)   $id = get_vmail_id_by_emailaddr($_SESSION['mailaccount']);
modules/email/edit.php  36)   $account = get_account_details($id, false);
modules/email/edit.php  37)   $accountlogin = true;
modules/email/edit.php  38)   $accountname = filter_input_general($_SESSION['mailaccount']);
modules/email/edit.php  39) }
modules/email/edit.php  40) 
modules/email/edit.php  41) 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  42) DEBUG($account);
modules/vmail/edit.php  43) if ($id == 0) {
bernd Benutze überall title() sta...

bernd authored 14 years ago

modules/email/edit.php  44)   title("E-Mail-Adresse anlegen");
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  45) }
modules/vmail/edit.php  46) else {
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php  47)   if ($accountlogin) {
modules/email/edit.php  48)     title("Einstellungen für {$accountname}");
modules/email/edit.php  49)   } else {
modules/email/edit.php  50)     title("E-Mail-Adresse bearbeiten");
modules/email/edit.php  51)   }
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  52) }
modules/vmail/edit.php  53) 
modules/vmail/edit.php  54) 
bernd Bugfix: Fehler bei neu erst...

bernd authored 12 years ago

modules/email/edit.php  55) $is_autoresponder = is_array($account['autoresponder']) && $account['autoresponder']['valid_from'] != NULL;
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php  56) $is_forward = (count($account['forwards']) > 0);
modules/vmail/edit.php  57) $is_mailbox = ($account['password'] != NULL  ||  $id == 0);
modules/vmail/edit.php  58) $numforwards = max(count($account['forwards']), 1);
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  59) 
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  60) output("<script type=\"text/javascript\">
modules/vmail/edit.php  61)   
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php  62)   var numForwards = {$numforwards};
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php  63)   var forwardsCounter = {$numforwards};
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  64) 
modules/vmail/edit.php  65)   function moreForward()
modules/vmail/edit.php  66)   {
modules/vmail/edit.php  67)     numForwards += 1;
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php  68)     forwardsCounter += 1;
modules/email/edit.php  69) 
modules/email/edit.php  70)     if ( document.getElementById('vmail_forward_' + forwardsCounter) ) {
modules/email/edit.php  71)       document.getElementById('vmail_forward_' + forwardsCounter).style.display = ''
modules/email/edit.php  72)     }
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  73) 
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php  74)     P1 = document.createElement('p');
modules/vmail/edit.php  75) 
modules/vmail/edit.php  76)     TXT1 = document.createTextNode('Weiterleiten an ');
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  77) 
modules/vmail/edit.php  78)     INPUT = document.createElement('input');
modules/vmail/edit.php  79)     INPUT.type = 'text';
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php  80)     INPUT.name = 'forward_to_' + forwardsCounter;
modules/email/edit.php  81)     INPUT.id = 'forward_to_' + forwardsCounter;
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  82)     INPUT.value = '';
modules/vmail/edit.php  83) 
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php  84)     P1.appendChild(TXT1);
modules/vmail/edit.php  85)     P1.appendChild(INPUT);
modules/vmail/edit.php  86) 
modules/vmail/edit.php  87)     P2 = document.createElement('p');
modules/vmail/edit.php  88) 
modules/vmail/edit.php  89)     TXT2 = document.createTextNode('Spam-Mails an diese Adresse ');
modules/vmail/edit.php  90) 
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  91)     SELECT = document.createElement('select');
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php  92)     SELECT.id = 'spamfilter_action_' + forwardsCounter;
modules/email/edit.php  93)     SELECT.name = 'spamfilter_action_' + forwardsCounter;
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  94) 
bernd Formulierung

bernd authored 16 years ago

modules/vmail/edit.php  95)     SELECT.options[0] = new Option('nicht filtern', 'none', 1);
bernd kein Filter ist default für...

bernd authored 16 years ago

modules/vmail/edit.php  96)     SELECT.options[1] = new Option('markieren und zustellen', 'tag', 0);
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  97)     SELECT.options[2] = new Option('nicht zustellen', 'delete', 0);
modules/vmail/edit.php  98) 
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php  99)     P2.appendChild(TXT2);
modules/vmail/edit.php 100)     P2.appendChild(SELECT);
modules/vmail/edit.php 101) 
modules/vmail/edit.php 102)     DIV = document.createElement('div');
modules/vmail/edit.php 103)     DIV.className = 'vmail-forward';
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 104)     DIV.id = 'vmail_forward_' + forwardsCounter;
modules/email/edit.php 105) 
modules/email/edit.php 106)     DELETE = document.getElementById('vmail_forward_1').getElementsByTagName('div')[0].cloneNode(true);
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 107) 
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 108)     DIV.appendChild(DELETE);
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php 109)     DIV.appendChild(P1);
modules/vmail/edit.php 110)     DIV.appendChild(P2);
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 111) 
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 112)     parent = document.getElementById('forward_entries');
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php 113)     parent.appendChild(DIV);
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 114)   }
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 115) 
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 116)   function removeForward(elem) 
modules/email/edit.php 117)   {
modules/email/edit.php 118)     div_id = elem.parentNode.parentNode.id;
modules/email/edit.php 119)     div = document.getElementById(div_id);
modules/email/edit.php 120)     input = div.getElementsByTagName('input')[0];
modules/email/edit.php 121)     input.value = '';
modules/email/edit.php 122)     select = div.getElementsByTagName('select')[0];
modules/email/edit.php 123)     select.options[0].selected = 'selected';
modules/email/edit.php 124)     if (numForwards >= 1) {
modules/email/edit.php 125)       numForwards -= 1;
modules/email/edit.php 126)     }
modules/email/edit.php 127)     if (numForwards >= 1) {
modules/email/edit.php 128)       div.style.display = 'none';
modules/email/edit.php 129)       document.getElementById('forward_entries').removeChild(div);
modules/email/edit.php 130)     }
modules/email/edit.php 131)   }
modules/email/edit.php 132) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 133)   function toggleDisplay(checkbox_id, item_id) 
modules/email/edit.php 134)   {
modules/email/edit.php 135)     if (document.getElementById(checkbox_id).checked == true) {
modules/email/edit.php 136)       document.getElementById(item_id).style.display = 'block';
modules/email/edit.php 137)     } else {
modules/email/edit.php 138)       document.getElementById(item_id).style.display = 'none';
modules/email/edit.php 139)     }
modules/email/edit.php 140)   }
modules/email/edit.php 141) 
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 142) </script>
modules/vmail/edit.php 143) ");
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php 144) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 145) $form = '';
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php 146) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 147) if ($accountlogin) {
modules/email/edit.php 148)   $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>";
modules/email/edit.php 149) } else {
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

modules/email/edit.php 150)   if ($id != 0) {
Bernd Wurst Erlaube nicht mehr das Ände...

Bernd Wurst authored 12 years ago

modules/email/edit.php 151)     $domainlist = get_vmail_domains();
modules/email/edit.php 152)     $domain = NULL;
modules/email/edit.php 153)     foreach ($domainlist as $dom) {
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

modules/email/edit.php 154)       if ($dom['id'] == $account['domain']) {
modules/email/edit.php 155)         $domain = $dom['domainname'];
Bernd Wurst Erlaube nicht mehr das Ände...

Bernd Wurst authored 12 years ago

modules/email/edit.php 156)       }
modules/email/edit.php 157)     }
modules/email/edit.php 158)     $form .= "
modules/email/edit.php 159)     <p><strong style=\"font-size: 1.5em;\">{$account['local']}@{$domain}</strong></p>";
modules/email/edit.php 160)   } else {
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

modules/email/edit.php 161)     $domain = NULL;
modules/email/edit.php 162)     if (isset($_GET['domain'])) {
modules/email/edit.php 163)       $domain = (int) $_GET['domain'];
modules/email/edit.php 164)     }
Bernd Wurst Erlaube nicht mehr das Ände...

Bernd Wurst authored 12 years ago

modules/email/edit.php 165)     $form .= "
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

modules/email/edit.php 166)     <p><strong>E-Mail-Adresse:</strong>&#160;<input type=\"text\" name=\"local\" id=\"local\" size=\"10\" value=\"{$account['local']}\" /><strong style=\"font-size: 1.5em;\">&#160;@&#160;</strong>".domainselect($domain)."</p>";
Bernd Wurst Erlaube nicht mehr das Ände...

Bernd Wurst authored 12 years ago

modules/email/edit.php 167)   }
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 168)   $password_message = '';
modules/email/edit.php 169)   $password_value = '';
modules/email/edit.php 170)   if ($is_mailbox and ($account['password'] != ''))
modules/email/edit.php 171)   {
modules/email/edit.php 172)     $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>';
modules/email/edit.php 173)     $password_value = '**********';
modules/email/edit.php 174)   } 
modules/email/edit.php 175)   
modules/email/edit.php 176)   $form .= "
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 177)     <p><input onchange=\"toggleDisplay('mailbox', 'mailbox_options')\" type=\"checkbox\" id=\"mailbox\" name=\"mailbox\" value=\"yes\" ".($is_mailbox ? 'checked="checked" ' : '')." /><label for=\"mailbox\">&#160;<strong>In Mailbox speichern</strong></label></p>
modules/email/edit.php 178)     <div style=\"margin-left: 2em;".($is_mailbox ? '' : ' display: none;')."\" id=\"mailbox_options\">
modules/email/edit.php 179)     <p>Passwort für Abruf:&#160;<input type=\"password\" id=\"password\" name=\"password\" value=\"{$password_value}\" />{$password_message}</p>";
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 180) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 181)   $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>";
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/edit.php 182) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 183)   $quota = config('vmail_basequota');
modules/email/edit.php 184)   if ($is_mailbox and $account['quota']) {
modules/email/edit.php 185)     $quota = $account['quota'];
modules/email/edit.php 186)   }
modules/email/edit.php 187)   $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>";
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 188) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 189)   $quota_notify = ($account['quota_threshold'] >= 0) ? ' checked="checked" ' : '';
modules/email/edit.php 190)   $quota_threshold = ($account['quota_threshold'] >= 0) ? $account['quota_threshold'] : '';
modules/email/edit.php 191)   $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>";
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 192) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 193)   $form .= "</div>";
modules/email/edit.php 194) }
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 195) 
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/edit.php 196) 
modules/email/edit.php 197) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 198) $form .= "<p><input onchange=\"toggleDisplay('autoresponder', 'autoresponder_config')\" type=\"checkbox\" id=\"autoresponder\" name=\"autoresponder\" value=\"yes\" ".($is_autoresponder ? 'checked="checked" ' : '')." /><label for=\"autoresponder\">&#160;<strong>Automatische Antwort versenden</strong></label></p>";
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 199) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 200) $form .= "<div style=\"margin-left: 2em;".($is_autoresponder ? '' : ' display: none;')."\" id=\"autoresponder_config\">";
modules/email/edit.php 201) 
modules/email/edit.php 202) $ar = $account['autoresponder'];
modules/email/edit.php 203) if (! $ar) {
modules/email/edit.php 204)   $ar = empty_autoresponder_config();
modules/email/edit.php 205) }
modules/email/edit.php 206) 
modules/email/edit.php 207) if ($ar['valid_until'] != NULL && $ar['valid_until'] < date('Y-m-d')) {
modules/email/edit.php 208)   // Daten sind Restbestand von einem früheren Einsatz des Autoresponders
modules/email/edit.php 209)   $ar['valid_from'] = NULL;
modules/email/edit.php 210)   $ar['valid_until'] = NULL;
modules/email/edit.php 211) }
modules/email/edit.php 212) $valid_from_now_checked = ($ar['valid_from'] <= date('Y-m-d H:i:s') || $ar['valid_from'] == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 213) $valid_from_future_checked = ($ar['valid_from'] > date('Y-m-d H:i:s')) ? ' checked="checked"' : '';
modules/email/edit.php 214) $startdate = $ar['valid_from'];
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/edit.php 215) if (! $startdate || $startdate <= date('Y-m-d')) {
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 216)   $startdate = date('Y-m-d', time() + 1*24*60*60);
modules/email/edit.php 217) }
modules/email/edit.php 218) $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 />".
modules/email/edit.php 219)   "<input type=\"radio\" name=\"ar_valid_from\" value=\"future\" id=\"ar_valid_from_future\"{$valid_from_future_checked} /> <label for=\"ar_valid_from_future\">Erst ab dem </label>".
modules/email/edit.php 220)   html_datepicker("ar_valid_from", strtotime($startdate))."</p>";
modules/email/edit.php 221) 
modules/email/edit.php 222) $valid_until_infinity_checked = ($ar['valid_until'] == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 223) $valid_until_date_checked = ($ar['valid_until'] != NULL) ? ' checked="checked"' : '';
modules/email/edit.php 224) $enddate = $ar['valid_until'];
modules/email/edit.php 225) if (! $enddate) {
modules/email/edit.php 226)   $enddate = date('Y-m-d', time() + 7*24*60*60);
modules/email/edit.php 227) }
modules/email/edit.php 228) $form .= "<h4>Deaktivierung</h4>";
modules/email/edit.php 229) $form .= "<p><input type=\"radio\" name=\"ar_valid_until\" value=\"infinity\" id=\"ar_valid_until_infinity\"{$valid_until_infinity_checked} /> <label for=\"ar_valid_until_infinity\">Unbefristet</label><br />".
modules/email/edit.php 230)   "<input type=\"radio\" name=\"ar_valid_until\" value=\"date\" id=\"ar_valid_until_date\"{$valid_until_date_checked} /> <label for=\"ar_valid_until_date\">Keine Antworten mehr versenden ab dem </label>".
modules/email/edit.php 231)   html_datepicker("ar_valid_until", strtotime($enddate))."</p>";
modules/email/edit.php 232) 
modules/email/edit.php 233) 
modules/email/edit.php 234) $subject = $ar['subject'];
modules/email/edit.php 235) if ($subject == NULL)
modules/email/edit.php 236)   $subject = '';
modules/email/edit.php 237) $ar_subject_default_checked = ($subject == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 238) $ar_subject_custom_checked = ($subject) ? ' checked="checked"' : '';
modules/email/edit.php 239) $form .= "<h4>Betreffzeile der automatischen Antwort</h4>".
modules/email/edit.php 240)   "<p><input type=\"radio\" name=\"ar_subject\" value=\"default\" id=\"ar_subject_default\"{$ar_subject_default_checked} /> ".
modules/email/edit.php 241)   "<label for=\"ar_subject_default\">Automatisch (Re: <em>&lt;Betreff der Originalnachricht&gt;</em>)</label><br />".
modules/email/edit.php 242)   "<input type=\"radio\" name=\"ar_subject\" value=\"custom\" id=\"ar_subject_custom\"{$ar_subject_custom_checked} /> ".
modules/email/edit.php 243)   "<label for=\"ar_subject_custom\">Anderer Betreff:</label> <input type=\"text\" name=\"ar_subject_value\" id=\"ar_subject_value\" value=\"{$subject}\"/></p>";
modules/email/edit.php 244) 
modules/email/edit.php 245) $message = $ar['message'];
modules/email/edit.php 246) $form .= "<h4>Inhalt der automatischen Antwort</h4>".
modules/email/edit.php 247)   "<p><textarea cols=\"80\" rows=\"10\" name=\"ar_message\" id=\"ar_message\">".$ar['message']."</textarea></p>";
modules/email/edit.php 248) $quote = $ar['quote'];
modules/email/edit.php 249) if (! $quote) 
modules/email/edit.php 250)   $quote = 'none';
modules/email/edit.php 251) $form .= "<p><label for=\"ar_quote\">Originalnachricht des Absenders </label>".
modules/email/edit.php 252)   html_select('ar_quote', array("none" => 'nicht in Antwort einschließen', 
modules/email/edit.php 253)                                 "inline" => 'zitieren (max. 50 Zeilen)', 
modules/email/edit.php 254)                                 "attach" => 'vollständig als Anhang beifügen'), $quote)."</p>";
modules/email/edit.php 255) 
modules/email/edit.php 256) 
modules/email/edit.php 257) $ar_from_default_checked = ($ar['fromname'] == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 258) $ar_from_custom_checked = ($ar['fromname'] != NULL) ? ' checked="checked"' : '';
modules/email/edit.php 259) $fromname = $ar['fromname'];
modules/email/edit.php 260) $form .= "<h4>Absender der automatischen Antwort</h4>".
modules/email/edit.php 261)   "<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 />".
modules/email/edit.php 262)   "<input type=\"radio\" name=\"ar_from\" value=\"custom\" id=\"ar_from_custom\"{$ar_from_custom_checked} /> <label for=\"ar_from_custom\">Mit Name: </label> ".
modules/email/edit.php 263)   "<input type=\"text\" name=\"ar_fromname\" id=\"ar_fromname\" value=\"{$fromname}\"/></p>";
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php 264) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 265) 
modules/email/edit.php 266) 
modules/email/edit.php 267) 
modules/email/edit.php 268) $form .= '</div>';
modules/email/edit.php 269) 
modules/email/edit.php 270) 
modules/email/edit.php 271) 
modules/email/edit.php 272) 
modules/email/edit.php 273) 
modules/email/edit.php 274) $form .= "<p><input onchange=\"toggleDisplay('forward', 'forward_config')\" type=\"checkbox\" id=\"forward\" name=\"forward\" value=\"yes\" ".($is_forward ? 'checked="checked" ' : '')." /><label for=\"forward\">&#160;<strong>Weiterleitung an andere E-Mail-Adressen</strong></label></p>";
modules/email/edit.php 275) 
modules/email/edit.php 276) 
modules/email/edit.php 277) $form .= "<div style=\"margin-left: 2em;".($is_forward ? '' : ' display: none;')."\" id=\"forward_config\">";
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 278) 
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 279) $form .= '<div id="forward_entries">
modules/email/edit.php 280) ';
modules/email/edit.php 281) if (! isset($account['forwards'][0])) {
modules/email/edit.php 282)   $account['forwards'][0] = array('destination' => '', 'spamfilter' => 'none');
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php 283) }
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 284) for ($i = 0 ; $i < $numforwards ; $i++)
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php 285) {
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 286)   $num = $i+1;
modules/email/edit.php 287)   $form .= "<div class=\"vmail-forward\" id=\"vmail_forward_{$num}\">
modules/email/edit.php 288)   <div style=\"float: right;\"><a href=\"#\" onclick=\"removeForward(this);\">".icon_delete("Diese Weiterleitung entfernen")."</a></div>
modules/email/edit.php 289)   <p>Weiterleiten an <input type=\"text\" id=\"forward_to_{$num}\" name=\"forward_to_{$num}\" value=\"{$account['forwards'][$i]['destination']}\" /></p>
modules/email/edit.php 290)   <p>Spam-Mails an diese Adresse ".html_select('spamfilter_action_'.$num, array("none" => 'nicht filtern', "tag" => 'markieren und zustellen', "delete" => 'nicht zustellen'), $account['forwards'][$i]['spamfilter'])."</p>
modules/email/edit.php 291)   </div>\n";
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php 292) }
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 293) $form .= '</div>';
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php 294) 
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 295) $form .= '<p><a href="#" onclick="moreForward();">'.icon_add().' Weiteren Empfänger hinzufügen</a></p>
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 296) </div>';
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php 297) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 298) $form .= '<p><input type="submit" value="Speichern" />&#160;&#160;&#160;&#160;'.internal_link('vmail', 'Abbrechen').'</p>';
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php 299) 
bernd eliminate .php extensions f...

bernd authored 16 years ago

modules/email/edit.php 300) output(html_form('vmail_edit_mailbox', 'save', 'action=edit'.($id != 0 ? '&id='.$id : ''), $form));