7b78f3b83574fc0171331c59a646f6a783e0c227
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php   1) <?php
modules/vmail/edit.php   2) 
modules/vmail/edit.php   3) require_once('inc/debug.php');
modules/vmail/edit.php   4) require_once('inc/security.php');
modules/vmail/edit.php   5) 
modules/vmail/edit.php   6) require_once('vmail.php');
modules/vmail/edit.php   7) 
bernd Alles in das email-modul ve...

bernd authored 16 years ago

modules/email/edit.php   8) $section = 'email_vmail';
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php   9) require_role(ROLE_SYSTEMUSER);
modules/vmail/edit.php  10) 
bernd huch, was macht das denn da...

bernd authored 17 years ago

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

bernd authored 15 years ago

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

bernd authored 17 years ago

modules/vmail/edit.php  13) 
modules/vmail/edit.php  14) if ($id != 0)
modules/vmail/edit.php  15)   $account = get_account_details($id);
modules/vmail/edit.php  16) 
modules/vmail/edit.php  17) DEBUG($account);
modules/vmail/edit.php  18) if ($id == 0) {
bernd Benutze überall title() sta...

bernd authored 14 years ago

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

bernd authored 17 years ago

modules/vmail/edit.php  20) }
modules/vmail/edit.php  21) else {
bernd Benutze überall title() sta...

bernd authored 14 years ago

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

bernd authored 17 years ago

modules/vmail/edit.php  23) }
modules/vmail/edit.php  24) 
modules/vmail/edit.php  25) 
bernd Anpassung auf neues Interface

bernd authored 16 years ago

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

bernd authored 17 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/edit.php  32)   var numForwards = {$numforwards};
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  33) 
modules/vmail/edit.php  34)   function moreForward()
modules/vmail/edit.php  35)   {
modules/vmail/edit.php  36)     numForwards += 1;
modules/vmail/edit.php  37) 
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/edit.php  41) 
modules/vmail/edit.php  42)     INPUT = document.createElement('input');
modules/vmail/edit.php  43)     INPUT.type = 'text';
modules/vmail/edit.php  44)     INPUT.name = 'forward_to_' + numForwards;
modules/vmail/edit.php  45)     INPUT.value = '';
modules/vmail/edit.php  46) 
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php  47)     P1.appendChild(TXT1);
modules/vmail/edit.php  48)     P1.appendChild(INPUT);
modules/vmail/edit.php  49) 
modules/vmail/edit.php  50)     P2 = document.createElement('p');
modules/vmail/edit.php  51) 
modules/vmail/edit.php  52)     TXT2 = document.createTextNode('Spam-Mails an diese Adresse ');
modules/vmail/edit.php  53) 
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  54)     SELECT = document.createElement('select');
modules/vmail/edit.php  55)     SELECT.name = 'spamfilter_action_' + numForwards;
modules/vmail/edit.php  56) 
bernd Formulierung

bernd authored 16 years ago

modules/vmail/edit.php  57)     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  58)     SELECT.options[1] = new Option('markieren und zustellen', 'tag', 0);
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/edit.php  61)     P2.appendChild(TXT2);
modules/vmail/edit.php  62)     P2.appendChild(SELECT);
modules/vmail/edit.php  63) 
modules/vmail/edit.php  64)     DIV = document.createElement('div');
modules/vmail/edit.php  65)     DIV.className = 'vmail-forward';
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/edit.php  70)     parent = document.getElementById('forward_config');
modules/vmail/edit.php  71)     parent.appendChild(DIV);
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  72)   }
modules/vmail/edit.php  73) </script>
modules/vmail/edit.php  74) ");
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  75) 
modules/vmail/edit.php  76) $form = "
bernd domain-auswahlfeld korrekt...

bernd authored 16 years ago

modules/vmail/edit.php  77)     <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($account['domain'])."</p>";
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

modules/vmail/edit.php  78) 
modules/vmail/edit.php  79) $password_message = '';
bernd Sterne in das Passwort-feld...

bernd authored 16 years ago

modules/vmail/edit.php  80) $password_value = '';
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php  81) if ($is_mailbox and ($account['password'] != ''))
bernd Sterne in das Passwort-feld...

bernd authored 16 years ago

modules/vmail/edit.php  82) {
bernd Eingabefeld breiter

bernd authored 16 years ago

modules/vmail/edit.php  83)   $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>';
bernd Sterne in das Passwort-feld...

bernd authored 16 years ago

modules/vmail/edit.php  84)   $password_value = '**********';
modules/vmail/edit.php  85) } 
bernd Erste Version des vmail-Modul

bernd authored 17 years ago

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

bernd authored 16 years ago

modules/vmail/edit.php  87) $form .= "
bernd Eingabefeld breiter

bernd authored 16 years ago

modules/vmail/edit.php  88)     <p><input type=\"checkbox\" id=\"mailbox\" name=\"mailbox\" value=\"yes\" ".($is_mailbox ? 'checked="checked" ' : '')." /><label for=\"mailbox\">&#160;<strong>In Mailbox speichern</strong></label></p>
bernd Sterne in das Passwort-feld...

bernd authored 16 years ago

modules/vmail/edit.php  89)     <p style=\"margin-left: 2em;\" id=\"mailbox_options\">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  90) 
bernd Eingabefeld breiter

bernd authored 16 years ago

modules/vmail/edit.php  91) $form.= "<p style=\"margin-left: 2em;\" 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 Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php  92) 
bernd vmail-basequota aus Config...

bernd authored 13 years ago

modules/email/edit.php  93) $quota = config('vmail_basequota');
bernd Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/edit.php  94) if ($is_mailbox and $account['quota']) {
modules/email/edit.php  95)   $quota = $account['quota'];
modules/email/edit.php  96) }
modules/email/edit.php  97) 
bernd vmail-basequota aus Config...

bernd authored 13 years ago

modules/email/edit.php  98) $form .= "<p style=\"margin-left: 2em;\" 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 Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/edit.php  99) 
bernd Quota-Threshold für Notific...

bernd authored 13 years ago

modules/email/edit.php 100) $quota_notify = ($account['quota_threshold'] >= 0) ? ' checked="checked" ' : '';
modules/email/edit.php 101) $quota_threshold = ($account['quota_threshold'] >= 0) ? $account['quota_threshold'] : '';
modules/email/edit.php 102) $form .= "<p style=\"margin-left: 2em;\" 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 Mailaccount-Quota auch bei...

bernd authored 13 years ago

modules/email/edit.php 103) 
modules/email/edit.php 104) 
bernd Eingabefeld breiter

bernd authored 16 years ago

modules/vmail/edit.php 105) $form .= "<p><input 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>";
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/edit.php 107) 
modules/vmail/edit.php 108) $form .= "<div style=\"margin-left: 2em;\" id=\"forward_config\">";
bernd Neues VMail-Interface (funk...

bernd authored 16 years ago

modules/vmail/edit.php 109) 
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php 110) if ($is_forward)
modules/vmail/edit.php 111) {
modules/vmail/edit.php 112)   for ($i = 0 ; $i < $numforwards ; $i++)
modules/vmail/edit.php 113)   {
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php 114)     $num = $i+1;
modules/vmail/edit.php 115)     $form .= "<div class=\"vmail-forward\">
modules/vmail/edit.php 116)     <p>Weiterleiten an <input type=\"text\" id=\"forward_to_{$num}\" name=\"forward_to_{$num}\" value=\"{$account['forwards'][$i]['destination']}\" /></p>
modules/vmail/edit.php 117)     <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/vmail/edit.php 118)     </div>\n";
bernd Anpassung auf neues Interface

bernd authored 16 years ago

modules/vmail/edit.php 119)   }
modules/vmail/edit.php 120) }
modules/vmail/edit.php 121) else
modules/vmail/edit.php 122) {
bernd Neues Design für VMail-Edit...

bernd authored 16 years ago

modules/vmail/edit.php 123)     $form .= "<div class=\"vmail-forward\">
modules/vmail/edit.php 124)     <p>Weiterleiten an <input type=\"text\" id=\"forward_to_1\" name=\"forward_to_1\" value=\"\" /></p>
modules/vmail/edit.php 125)     <p>Spam-Mails an diese Adresse ".html_select('spamfilter_action_1', array("none" => 'nicht filtern', "tag" => 'markieren und zustellen', "delete" => 'nicht zustellen'), "none")."</p>
modules/vmail/edit.php 126)     </div>\n";
bernd Anpassung auf neues Interface

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/edit.php 129) $form .= '</div>';
modules/vmail/edit.php 130) 
modules/vmail/edit.php 131) $form .= '<p style="margin-left: 2em;">[ <a href="#" onclick="moreForward();">mehr Empfänger</a> ]</p>
bernd neue Bilder, mehr SSL-Zerti...

bernd authored 15 years ago

modules/email/edit.php 132)   <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 133) 
bernd eliminate .php extensions f...

bernd authored 16 years ago

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