63a0529b21bfd97a4ef395e8d3d3f513526357c6
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');
modules/vmail/accounts.php   4) require_once('inc/security.php');
modules/vmail/accounts.php   5) require_role(ROLE_SYSTEMUSER);
modules/vmail/accounts.php   6) 
bernd Großer VMail-move

bernd authored 15 years ago

modules/email/vmail.php      7) require_once('hasdomain.php');
modules/email/vmail.php      8) 
modules/email/vmail.php      9) if (! user_has_vmail_domain()) {
modules/email/vmail.php     10)   output("<h3>E-Mail-Verwaltung</h3>");
modules/email/vmail.php     11)   
modules/email/vmail.php     12)   output('
modules/email/vmail.php     13) <p>Sie können bei schokokeks.org die E-Mails Ihrer Domains auf zwei unterschiedliche Arten empfangen.</p>
modules/email/vmail.php     14) <ol><li>Sie können einfache E-Mail-Konten erstellen, die ankommende E-Mails speichern oder weiterleiten.</li>
modules/email/vmail.php     15) <li>Sie können die manuelle Verwaltung wählen, bei der Sie passende .courier-Dateien für den Empfang und
modules/email/vmail.php     16) 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     17) <p>Diese Wahlmöglichkeit haben Sie pro Domain bzw. Subdomain. eine Mischung beider Verfahren ist nicht möglich. 
modules/email/vmail.php     18) Subdomains können grundsätzlich nur durch Administratoren eingerichtet und verändert werden.</p>
bernd Großer VMail-move

bernd authored 15 years ago

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

bernd authored 15 years ago

modules/email/vmail.php     23) <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 15 years ago

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

bernd authored 15 years ago

modules/email/vmail.php     25) <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 15 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/accounts.php  48) 
modules/vmail/accounts.php  49) output('<h3>E-Mail-Accounts</h3>
modules/vmail/accounts.php  50) <p>Folgende E-Mail-Konten sind eingerichtet:</p>
modules/vmail/accounts.php  51) ');
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php  52)         foreach ($sorted_by_domains as $accounts_on_domain)
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php  53)         {
bernd Neue Oberfläche für VMail-A...

bernd authored 16 years ago

modules/vmail/accounts.php  54) 	    output('<h4>'.$accounts_on_domain[0]['domainname'].'</h4>');
modules/vmail/accounts.php  55) 	    foreach ($accounts_on_domain AS $this_account)
modules/vmail/accounts.php  56) 	    {
modules/vmail/accounts.php  57) 	      $acc = get_account_details($this_account['id']);
modules/vmail/accounts.php  58) 	      $actions = array();
modules/vmail/accounts.php  59) 	      DEBUG($acc);
modules/vmail/accounts.php  60) 	      if ($acc['password'] != '')
modules/vmail/accounts.php  61) 	      {
modules/vmail/accounts.php  62) 	      	$spam = 'ohne Spamfilter';
modules/vmail/accounts.php  63) 	        switch ($acc['spamfilter'])
modules/vmail/accounts.php  64) 	  	{
modules/vmail/accounts.php  65) 		        case 'folder':  $spam = 'Spam in Unterordner';
modules/vmail/accounts.php  66) 					break;
modules/vmail/accounts.php  67) 			case 'tag':	$spam = 'Spam markieren';
modules/vmail/accounts.php  68) 					break;
modules/vmail/accounts.php  69) 			case 'delete':	$spam = 'Spam nicht zustellen';
modules/vmail/accounts.php  70) 					break;
modules/vmail/accounts.php  71) 	        }
modules/vmail/accounts.php  72) 	        array_push($actions, "Ablegen in Mailbox ({$spam})");
modules/vmail/accounts.php  73) 	      }
modules/vmail/accounts.php  74) 	      foreach ($acc['forwards'] AS $fwd)
modules/vmail/accounts.php  75) 	      {
modules/vmail/accounts.php  76) 	      	$spam = 'ohne Spamfilter';
bernd Anzeigefehler

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/accounts.php  78) 	  	{
modules/vmail/accounts.php  79) 			case 'tag':	$spam = 'Spam markieren';
modules/vmail/accounts.php  80) 					break;
modules/vmail/accounts.php  81) 			case 'delete':	$spam = 'Spam nicht zustellen';
modules/vmail/accounts.php  82) 					break;
modules/vmail/accounts.php  83) 	        }
modules/vmail/accounts.php  84) 		$fwd['destination'] = filter_input_general($fwd['destination']);
modules/vmail/accounts.php  85) 	        array_push($actions, "Weiterleitung an <strong>{$fwd['destination']}</strong> ({$spam})");
modules/vmail/accounts.php  86) 	      }
modules/vmail/accounts.php  87) 	      $dest = '';
modules/vmail/accounts.php  88) 	      if (count($actions) > 0)
modules/vmail/accounts.php  89) 	      {
modules/vmail/accounts.php  90) 	        $dest = "<ul>";
modules/vmail/accounts.php  91) 		foreach ($actions as $a)
modules/vmail/accounts.php  92) 		  $dest .= "<li>{$a}</li>";
modules/vmail/accounts.php  93) 		$dest .= '</ul>';
modules/vmail/accounts.php  94) 	      }
modules/vmail/accounts.php  95)               output('
bernd eliminate .php extensions f...

bernd authored 15 years ago

modules/email/vmail.php     96)               <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  97) 	      <p>'.$dest.'</p></div>');
modules/vmail/accounts.php  98) 	    }
modules/vmail/accounts.php  99) 
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

modules/vmail/accounts.php 100)         }
bernd eliminate .php extensions f...

bernd authored 15 years ago

modules/email/vmail.php    101) output('<p>'.internal_link("edit", "Neue E-Mail-Adresse anlegen").'</p>');
bernd Erste Version des vmail-Modul

bernd authored 16 years ago

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

bernd authored 16 years ago

modules/vmail/accounts.php 103) /* FIXME: Das sollte nur kommen, wenn der IMAP/POP3-Menü-Eintrag nicht da ist */
bernd eliminate .php extensions f...

bernd authored 15 years ago

modules/email/vmail.php    104) output('<p style="font-size: 90%;padding-top: 0.5em; border-top: 1px solid black;">Hinweis: schokokeks.org 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 105) 
bernd Großer VMail-move

bernd authored 15 years ago

modules/email/vmail.php    106) }