c12c27e9e8e26e877e005c8aa2e01901e7bb39ab
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php   1) <?php
modules/vmail/accounts.php   2) 
modules/vmail/accounts.php   3) require_once('inc/base.php');
bernd Info-Seite über Mail-Login-...

bernd authored 13 years ago

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

bernd authored 16 years ago

modules/vmail/accounts.php   5) require_once('inc/security.php');
modules/vmail/accounts.php   6) require_role(ROLE_SYSTEMUSER);
modules/vmail/accounts.php   7) 
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/vmail.php      8) require_once('hasdomain.php');
modules/email/vmail.php      9) 
modules/email/vmail.php     10) if (! user_has_vmail_domain()) {
bernd Benutze überall title() sta...

bernd authored 13 years ago

modules/email/vmail.php     11)   title("E-Mail-Verwaltung");
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/vmail.php     12)   
modules/email/vmail.php     13)   output('
bernd Mehr config-optionen und co...

bernd authored 14 years ago

modules/email/vmail.php     14) <p>Sie können bei '.config('company_name').' die E-Mails Ihrer Domains auf zwei unterschiedliche Arten empfangen.</p>
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/vmail.php     15) <ol><li>Sie können einfache E-Mail-Konten erstellen, die ankommende E-Mails speichern oder weiterleiten.</li>
modules/email/vmail.php     16) <li>Sie können die manuelle Verwaltung wählen, bei der Sie passende .courier-Dateien für den Empfang und
modules/email/vmail.php     17) manuelle POP3/IMAP-Konten für den Abruf erstellen können.</li></ol>
bernd exklusivität der mail-verwa...

bernd authored 15 years ago

modules/email/vmail.php     18) <p>Diese Wahlmöglichkeit haben Sie pro Domain bzw. Subdomain. eine Mischung beider Verfahren ist nicht möglich. 
modules/email/vmail.php     19) Subdomains können grundsätzlich nur durch Administratoren eingerichtet und verändert werden.</p>
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/vmail.php     20) <p>Sie haben bisher keine Domains, die auf Web-basierte Verwaltung von E-Mail-Adressen eingerichtet sind.</p>
modules/email/vmail.php     21) 
modules/email/vmail.php     22) <p> </p>
modules/email/vmail.php     23) 
bernd eliminate .php extensions f...

bernd authored 15 years ago

modules/email/vmail.php     24) <p>Besuchen Sie die '.internal_link('domains', 'Domain-Einstellungen').' um diese Auswahl für Ihre Domains zu ändern.</p>
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/vmail.php     25) 
bernd eliminate .php extensions f...

bernd authored 15 years ago

modules/email/vmail.php     26) <p>Wenn Sie die manuelle Einrichtung möchten oder keine eigene Domain nutzen, können Sie unter '.internal_link('imap', 'POP3/IMAP').' manuelle POP3-/IMAP-Konten erstellen.</p>
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/vmail.php     27) 
modules/email/vmail.php     28) ');
modules/email/vmail.php     29) }
modules/email/vmail.php     30) else
modules/email/vmail.php     31) {
modules/email/vmail.php     32) 
modules/email/vmail.php     33) 
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php  34) require_once('vmail.php');
modules/vmail/accounts.php  35) 
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php  36) $domains = get_vmail_domains();
modules/vmail/accounts.php  37) $all_accounts = get_vmail_accounts();
modules/vmail/accounts.php  38) 
modules/vmail/accounts.php  39) $sorted_by_domains = array();
modules/vmail/accounts.php  40) foreach ($all_accounts AS $account)
modules/vmail/accounts.php  41) {
modules/vmail/accounts.php  42)   if (array_key_exists($account['domain'], $sorted_by_domains))
modules/vmail/accounts.php  43)     array_push($sorted_by_domains[$account['domain']], $account);
modules/vmail/accounts.php  44)   else
modules/vmail/accounts.php  45)     $sorted_by_domains[$account['domain']] = array($account);
modules/vmail/accounts.php  46) }
modules/vmail/accounts.php  47) 
modules/vmail/accounts.php  48) DEBUG($sorted_by_domains);
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php  49) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

modules/email/vmail.php     50) title('E-Mail-Accounts');
bernd Nette Meldung wenn keine E-...

bernd authored 14 years ago

modules/email/vmail.php     51) if (count($sorted_by_domains) > 0)
modules/email/vmail.php     52) {
modules/email/vmail.php     53)   output('
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php  54) <p>Folgende E-Mail-Konten sind eingerichtet:</p>
modules/vmail/accounts.php  55) ');
bernd Nette Meldung wenn keine E-...

bernd authored 14 years ago

modules/email/vmail.php     56)   foreach ($sorted_by_domains as $accounts_on_domain)
modules/email/vmail.php     57)   {
bernd Info-Seite über Mail-Login-...

bernd authored 13 years ago

modules/email/vmail.php     58) 	    output('<h4>'.$accounts_on_domain[0]['domainname'].' <small>('.other_icon('information.png', 'Zugangsdaten anzeigen').' '.internal_link('logindata', 'Zugangsdaten für E-Mail-Abruf anzeigen', 'server='.get_server_by_id($accounts_on_domain[0]['server']).'&type=vmail').')</small></h4>');
modules/email/vmail.php     59) 
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php  60) 	    foreach ($accounts_on_domain AS $this_account)
modules/vmail/accounts.php  61) 	    {
modules/vmail/accounts.php  62) 	      $acc = get_account_details($this_account['id']);
modules/vmail/accounts.php  63) 	      $actions = array();
modules/vmail/accounts.php  64) 	      DEBUG($acc);
modules/vmail/accounts.php  65) 	      if ($acc['password'] != '')
modules/vmail/accounts.php  66) 	      {
bernd Zeige vmail-Quota im Webint...

bernd authored 12 years ago

modules/email/vmail.php     67)                 $percent = round(( $acc["quota_used"] / $acc["quota"] ) * 100 );
modules/email/vmail.php     68)                 $color = ( $percent > 95 ? 'red' : ($percent > 75 ? "yellow" : "green" ));
modules/email/vmail.php     69)                 $width = 2 * min($percent, 100);
modules/email/vmail.php     70)                 $quotachart = "<div style=\"margin: 2px 0; padding: 0; width: 200px; border: 1px solid black;\"><div style=\"font-size: 1px; background-color: {$color}; height: 10px; width: {$width}px; margin: 0; padding: 0;\">&#160;</div></div> {$acc['quota_used']} MB von {$acc['quota']} MB belegt";
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php  71) 	      	$spam = 'ohne Spamfilter';
modules/vmail/accounts.php  72) 	        switch ($acc['spamfilter'])
modules/vmail/accounts.php  73) 	  	{
modules/vmail/accounts.php  74) 		        case 'folder':  $spam = 'Spam in Unterordner';
modules/vmail/accounts.php  75) 					break;
modules/vmail/accounts.php  76) 			case 'tag':	$spam = 'Spam markieren';
modules/vmail/accounts.php  77) 					break;
modules/vmail/accounts.php  78) 			case 'delete':	$spam = 'Spam nicht zustellen';
modules/vmail/accounts.php  79) 					break;
modules/vmail/accounts.php  80) 	        }
bernd Zeige vmail-Quota im Webint...

bernd authored 12 years ago

modules/email/vmail.php     81) 	        array_push($actions, "Ablegen in Mailbox ({$spam})<br />".$quotachart);
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php  82) 	      }
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php     83)         if ($acc['autoresponder']) {
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/vmail.php     84)             $now = date( 'Y-m-d' );
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php     85)             $valid_from = $acc['autoresponder']['valid_from'];
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/vmail.php     86)             $valid_from_string = date('d.m.Y', strtotime($acc['autoresponder']['valid_from']));
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php     87)             $valid_until = $acc['autoresponder']['valid_until'];
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/vmail.php     88)             $valid_until_string = date('d.m.Y', strtotime($acc['autoresponder']['valid_until']));
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php     89)             if ($valid_from == NULL) {
modules/email/vmail.php     90)               // Autoresponder abgeschaltet
bernd Bugfix: Fehler bei neu erst...

bernd authored 12 years ago

modules/email/vmail.php     91)               //array_push($actions, "<strike>Automatische Antwort versenden</strike> (Abgeschaltet)");
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php     92)             } elseif ($valid_from > $now) {
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/vmail.php     93)               array_push($actions, "<strike>Automatische Antwort versenden</strike> (Wird aktiviert am {$valid_from_string})");
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php     94)             } elseif ($valid_until == NULL) {
modules/email/vmail.php     95)               array_push($actions, "Automatische Antwort versenden (Unbefristet)");
modules/email/vmail.php     96)             } elseif ($valid_until > $now) {
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/vmail.php     97)               array_push($actions, "Automatische Antwort versenden (Wird deaktiviert am {$valid_until_string})");
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php     98)             } elseif ($valid_until < $now) {
bernd Datums-Check und Daten in u...

bernd authored 12 years ago

modules/email/vmail.php     99)               array_push($actions, "<strike>Automatische Antwort versenden</strike> (Automatisch abgeschaltet seit {$valid_until_string})");
bernd Konfiguration des Autorespo...

bernd authored 12 years ago

modules/email/vmail.php    100)             }
modules/email/vmail.php    101)         }
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php 102) 	      foreach ($acc['forwards'] AS $fwd)
modules/vmail/accounts.php 103) 	      {
modules/vmail/accounts.php 104) 	      	$spam = 'ohne Spamfilter';
bernd Anzeigefehler

bernd authored 16 years ago

modules/vmail/accounts.php 105) 	        switch ($fwd['spamfilter'])
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php 106) 	  	{
modules/vmail/accounts.php 107) 			case 'tag':	$spam = 'Spam markieren';
modules/vmail/accounts.php 108) 					break;
modules/vmail/accounts.php 109) 			case 'delete':	$spam = 'Spam nicht zustellen';
modules/vmail/accounts.php 110) 					break;
modules/vmail/accounts.php 111) 	        }
modules/vmail/accounts.php 112) 		$fwd['destination'] = filter_input_general($fwd['destination']);
modules/vmail/accounts.php 113) 	        array_push($actions, "Weiterleitung an <strong>{$fwd['destination']}</strong> ({$spam})");
modules/vmail/accounts.php 114) 	      }
modules/vmail/accounts.php 115) 	      $dest = '';
modules/vmail/accounts.php 116) 	      if (count($actions) > 0)
modules/vmail/accounts.php 117) 	      {
modules/vmail/accounts.php 118) 	        $dest = "<ul>";
modules/vmail/accounts.php 119) 		foreach ($actions as $a)
modules/vmail/accounts.php 120) 		  $dest .= "<li>{$a}</li>";
modules/vmail/accounts.php 121) 		$dest .= '</ul>';
modules/vmail/accounts.php 122) 	      }
modules/vmail/accounts.php 123)               output('
bernd eliminate .php extensions f...

bernd authored 15 years ago

modules/email/vmail.php    124)               <div style="margin-left: 2em; margin-top: 0.5em; padding: 0.1em 0.5em;"><p>'.internal_link('edit', $acc['local'].'@'.$this_account['domainname'], 'id='.$acc['id']).' '.internal_link("save", '<img src="'.$prefix.'images/delete.png" alt="löschen" title="Dieses Konto löschen"/>', "action=delete&id=".$acc['id']).'</p>
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php 125) 	      <p>'.$dest.'</p></div>');
modules/vmail/accounts.php 126) 	    }
bernd Nette Meldung wenn keine E-...

bernd authored 14 years ago

modules/email/vmail.php    127)   }
modules/email/vmail.php    128) }
modules/email/vmail.php    129) else
modules/email/vmail.php    130) {
modules/email/vmail.php    131)   output('<p><em>Sie haben bisher keine E-Mail-Adressen angelegt</em></p>');
modules/email/vmail.php    132) }
modules/email/vmail.php    133)         
bernd addnew() eingeführt

bernd authored 14 years ago

modules/email/vmail.php    134) addnew("edit", "Neue E-Mail-Adresse anlegen");
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php 135) 
bernd Hinweis für vmail-user

bernd authored 16 years ago

modules/vmail/accounts.php 136) /* FIXME: Das sollte nur kommen, wenn der IMAP/POP3-Menü-Eintrag nicht da ist */
bernd Mehr config-optionen und co...

bernd authored 14 years ago

modules/email/vmail.php    137) output('<p style="font-size: 90%;padding-top: 0.5em; border-top: 1px solid black;">Hinweis: '.config('company_name').' bietet für fortgeschrittene Nutzer die manuelle Einrichtung von POP3/IMAP-Accounts.<br/>'.internal_link("imap", "Neuen POP3/IMAP-Account anlegen", "action=create").'</p>');
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php 138) 
bernd Großer VMail-move

bernd authored 16 years ago

modules/email/vmail.php    139) }