bca273fdfa93224525c06abfa4ce6d6585db050a
bernd Erste Version des vmail-Modul

bernd authored 16 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 16 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 16 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 16 years ago

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

bernd authored 16 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 16 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 16 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 16 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 16 years ago

modules/vmail/edit.php  52) }
modules/vmail/edit.php  53) 
modules/vmail/edit.php  54) 
Bernd Wurst Fehler behoben, durch den d...

Bernd Wurst authored 10 years ago

modules/email/edit.php  55) $is_autoresponder = is_array($account['autoresponder']) && $account['autoresponder']['valid_from'] != NULL && ($account['autoresponder']['valid_until'] > date('Y-m-d') || $account['autoresponder']['valid_until'] == 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 16 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 Wurst Default für Weiterleitungen...

Bernd Wurst authored 10 years ago

modules/email/edit.php  95)     SELECT.options[0] = new Option('nicht filtern', 'none', 0);
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 Wurst Default für Weiterleitungen...

Bernd Wurst authored 10 years ago

modules/email/edit.php  97)     SELECT.options[2] = new Option('nicht zustellen', 'delete', 1);
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

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 Wurst Passwort-Platzhalter per Ja...

Bernd Wurst authored 11 years ago

modules/email/edit.php 142)   function clearPassword() {
modules/email/edit.php 143)     var input = document.getElementById('password');
modules/email/edit.php 144)     if (input.value == '**********') {
modules/email/edit.php 145)       input.value = '';
modules/email/edit.php 146)     }
modules/email/edit.php 147)     input.style.color = '#000';
Bernd Wurst Bugfix: Adresse kann nicht...

Bernd Wurst authored 11 years ago

modules/email/edit.php 148)     /* FIXME: Keine Ahnung, warum das notwendig ist. Mit dem und dem Aufruf in 'onclick=' tut es was es soll.  */
modules/email/edit.php 149)     input.focus();
Bernd Wurst Passwort-Platzhalter per Ja...

Bernd Wurst authored 11 years ago

modules/email/edit.php 150)   }
modules/email/edit.php 151) 
modules/email/edit.php 152)   function refillPassword() {
modules/email/edit.php 153)     var input = document.getElementById('password');
modules/email/edit.php 154)     if (input.value == '') {
modules/email/edit.php 155)       input.value = input.defaultValue;
modules/email/edit.php 156)     }
modules/email/edit.php 157)     if (input.value == '**********') {
modules/email/edit.php 158)       input.style.color = '#aaa';
modules/email/edit.php 159)     }
modules/email/edit.php 160)   }
modules/email/edit.php 161) 
modules/email/edit.php 162) 
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 12 years ago

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

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/edit.php 168) if ($accountlogin) {
modules/email/edit.php 169)   $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 170) } else {
Bernd Wurst Alle VMail-Domain in der Üb...

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 12 years ago

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

Bernd Wurst authored 11 years ago

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

Bernd Wurst authored 12 years ago

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

Bernd Wurst authored 11 years ago

modules/email/edit.php 182)     $domain = NULL;
modules/email/edit.php 183)     if (isset($_GET['domain'])) {
modules/email/edit.php 184)       $domain = (int) $_GET['domain'];
modules/email/edit.php 185)     }
Bernd Wurst Erlaube nicht mehr das Ände...

Bernd Wurst authored 12 years ago

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

Bernd Wurst authored 11 years ago

modules/email/edit.php 187)     <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 188)   }
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 189)   $password_message = '';
modules/email/edit.php 190)   $password_value = '';
modules/email/edit.php 191)   if ($is_mailbox and ($account['password'] != ''))
modules/email/edit.php 192)   {
modules/email/edit.php 193)     $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 194)     $password_value = '**********';
modules/email/edit.php 195)   } 
modules/email/edit.php 196)   
modules/email/edit.php 197)   $form .= "
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 198)     <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 199)     <div style=\"margin-left: 2em;".($is_mailbox ? '' : ' display: none;')."\" id=\"mailbox_options\">
Bernd Wurst Bugfix: Adresse kann nicht...

Bernd Wurst authored 11 years ago

modules/email/edit.php 200)     <p>Passwort für Abruf:&#160;<input onclick=\"clearPassword()\" onfocus=\"clearPassword()\" onblur=\"refillPassword()\" style=\"color: #aaa;\" 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 201) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

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

bernd authored 13 years ago

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

bernd authored 12 years ago

modules/email/edit.php 204)   $quota = config('vmail_basequota');
modules/email/edit.php 205)   if ($is_mailbox and $account['quota']) {
modules/email/edit.php 206)     $quota = $account['quota'];
modules/email/edit.php 207)   }
modules/email/edit.php 208)   $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 209) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

modules/email/edit.php 210)   $quota_notify = ($account['quota_threshold'] >= 0) ? ' checked="checked" ' : '';
modules/email/edit.php 211)   $quota_threshold = ($account['quota_threshold'] >= 0) ? $account['quota_threshold'] : '';
modules/email/edit.php 212)   $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 213) 
bernd VMail-User können ihre Eins...

bernd authored 12 years ago

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

bernd authored 12 years ago

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

bernd authored 13 years ago

modules/email/edit.php 217) 
modules/email/edit.php 218) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 219) $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 220) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 221) $form .= "<div style=\"margin-left: 2em;".($is_autoresponder ? '' : ' display: none;')."\" id=\"autoresponder_config\">";
modules/email/edit.php 222) 
modules/email/edit.php 223) $ar = $account['autoresponder'];
modules/email/edit.php 224) if (! $ar) {
modules/email/edit.php 225)   $ar = empty_autoresponder_config();
modules/email/edit.php 226) }
modules/email/edit.php 227) 
modules/email/edit.php 228) if ($ar['valid_until'] != NULL && $ar['valid_until'] < date('Y-m-d')) {
modules/email/edit.php 229)   // Daten sind Restbestand von einem früheren Einsatz des Autoresponders
modules/email/edit.php 230)   $ar['valid_from'] = NULL;
modules/email/edit.php 231)   $ar['valid_until'] = NULL;
modules/email/edit.php 232) }
modules/email/edit.php 233) $valid_from_now_checked = ($ar['valid_from'] <= date('Y-m-d H:i:s') || $ar['valid_from'] == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 234) $valid_from_future_checked = ($ar['valid_from'] > date('Y-m-d H:i:s')) ? ' checked="checked"' : '';
modules/email/edit.php 235) $startdate = $ar['valid_from'];
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

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

bernd authored 12 years ago

modules/email/edit.php 237)   $startdate = date('Y-m-d', time() + 1*24*60*60);
modules/email/edit.php 238) }
modules/email/edit.php 239) $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 240)   "<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 241)   html_datepicker("ar_valid_from", strtotime($startdate))."</p>";
modules/email/edit.php 242) 
modules/email/edit.php 243) $valid_until_infinity_checked = ($ar['valid_until'] == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 244) $valid_until_date_checked = ($ar['valid_until'] != NULL) ? ' checked="checked"' : '';
modules/email/edit.php 245) $enddate = $ar['valid_until'];
modules/email/edit.php 246) if (! $enddate) {
modules/email/edit.php 247)   $enddate = date('Y-m-d', time() + 7*24*60*60);
modules/email/edit.php 248) }
modules/email/edit.php 249) $form .= "<h4>Deaktivierung</h4>";
modules/email/edit.php 250) $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 251)   "<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 252)   html_datepicker("ar_valid_until", strtotime($enddate))."</p>";
modules/email/edit.php 253) 
modules/email/edit.php 254) 
schokokeks.org web services Daten für Autoresponder bei...

schokokeks.org web services authored 11 years ago

modules/email/edit.php 255) $subject = filter_input_general($ar['subject']);
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 256) if ($subject == NULL)
modules/email/edit.php 257)   $subject = '';
modules/email/edit.php 258) $ar_subject_default_checked = ($subject == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 259) $ar_subject_custom_checked = ($subject) ? ' checked="checked"' : '';
modules/email/edit.php 260) $form .= "<h4>Betreffzeile der automatischen Antwort</h4>".
modules/email/edit.php 261)   "<p><input type=\"radio\" name=\"ar_subject\" value=\"default\" id=\"ar_subject_default\"{$ar_subject_default_checked} /> ".
modules/email/edit.php 262)   "<label for=\"ar_subject_default\">Automatisch (Re: <em>&lt;Betreff der Originalnachricht&gt;</em>)</label><br />".
modules/email/edit.php 263)   "<input type=\"radio\" name=\"ar_subject\" value=\"custom\" id=\"ar_subject_custom\"{$ar_subject_custom_checked} /> ".
modules/email/edit.php 264)   "<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 265) 
schokokeks.org web services Daten für Autoresponder bei...

schokokeks.org web services authored 11 years ago

modules/email/edit.php 266) $message = filter_input_general($ar['message']);
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 267) $form .= "<h4>Inhalt der automatischen Antwort</h4>".
modules/email/edit.php 268)   "<p><textarea cols=\"80\" rows=\"10\" name=\"ar_message\" id=\"ar_message\">".$ar['message']."</textarea></p>";
modules/email/edit.php 269) $quote = $ar['quote'];
modules/email/edit.php 270) if (! $quote) 
modules/email/edit.php 271)   $quote = 'none';
modules/email/edit.php 272) $form .= "<p><label for=\"ar_quote\">Originalnachricht des Absenders </label>".
modules/email/edit.php 273)   html_select('ar_quote', array("none" => 'nicht in Antwort einschließen', 
modules/email/edit.php 274)                                 "inline" => 'zitieren (max. 50 Zeilen)', 
modules/email/edit.php 275)                                 "attach" => 'vollständig als Anhang beifügen'), $quote)."</p>";
modules/email/edit.php 276) 
modules/email/edit.php 277) 
modules/email/edit.php 278) $ar_from_default_checked = ($ar['fromname'] == NULL) ? ' checked="checked"' : '';
modules/email/edit.php 279) $ar_from_custom_checked = ($ar['fromname'] != NULL) ? ' checked="checked"' : '';
schokokeks.org web services Daten für Autoresponder bei...

schokokeks.org web services authored 11 years ago

modules/email/edit.php 280) $fromname = filter_input_general($ar['fromname']);
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 281) $form .= "<h4>Absender der automatischen Antwort</h4>".
modules/email/edit.php 282)   "<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 283)   "<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 284)   "<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 285) 
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/edit.php 286) 
modules/email/edit.php 287) 
modules/email/edit.php 288) 
modules/email/edit.php 289) $form .= '</div>';
modules/email/edit.php 290) 
modules/email/edit.php 291) 
modules/email/edit.php 292) 
modules/email/edit.php 293) 
modules/email/edit.php 294) 
modules/email/edit.php 295) $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 296) 
modules/email/edit.php 297) 
modules/email/edit.php 298) $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 299) 
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 300) $form .= '<div id="forward_entries">
modules/email/edit.php 301) ';
modules/email/edit.php 302) if (! isset($account['forwards'][0])) {
Bernd Wurst Default für Weiterleitungen...

Bernd Wurst authored 10 years ago

modules/email/edit.php 303)   $account['forwards'][0] = array('destination' => '', 'spamfilter' => 'delete');
bernd Anpassung auf neues Interface

bernd authored 16 years ago

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

bernd authored 12 years ago

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

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/edit.php 307)   $num = $i+1;
modules/email/edit.php 308)   $form .= "<div class=\"vmail-forward\" id=\"vmail_forward_{$num}\">
modules/email/edit.php 309)   <div style=\"float: right;\"><a href=\"#\" onclick=\"removeForward(this);\">".icon_delete("Diese Weiterleitung entfernen")."</a></div>
modules/email/edit.php 310)   <p>Weiterleiten an <input type=\"text\" id=\"forward_to_{$num}\" name=\"forward_to_{$num}\" value=\"{$account['forwards'][$i]['destination']}\" /></p>
modules/email/edit.php 311)   <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>
Bernd Wurst Default für Weiterleitungen...

Bernd Wurst authored 10 years ago

modules/email/edit.php 312)   <p>Bitte beachten Sie unsere Hinweise zu <a href=\"http://wiki.schokokeks.org/E-Mail/Weiterleitungen\">Weiterleitungen und Spamfiltern</a>.</p>
bernd JavaScript-Erweiterungen: U...

bernd authored 12 years ago

modules/email/edit.php 313)   </div>\n";
bernd Anpassung auf neues Interface

bernd authored 16 years ago

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

bernd authored 12 years ago

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

bernd authored 16 years ago

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

bernd authored 12 years ago

modules/email/edit.php 317) $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 318) </div>';
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php 319) 
Bernd Wurst Zeige User-Infos beim Login...

Bernd Wurst authored 11 years ago

modules/email/edit.php 320) $target = 'vmail';
modules/email/edit.php 321) if ($accountlogin) {
modules/email/edit.php 322)   $target = '../index/index';
modules/email/edit.php 323) }
modules/email/edit.php 324) $form .= '<p><input type="submit" value="Speichern" />&#160;&#160;&#160;&#160;'.internal_link($target, 'Abbrechen').'</p>';
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

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

bernd authored 16 years ago

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