c208bd906b3991555db11b9229846c4601ca408c
bernd Großer VMail-move

bernd authored 16 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
5) Written 2008-2012 by schokokeks.org Hosting, namely
6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
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.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
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.
15) */
bernd Großer VMail-move

bernd authored 16 years ago

16) 
17) require_once('inc/base.php');
18) require_once('inc/security.php');
19) require_role(ROLE_SYSTEMUSER);
20) 
21) require_once('vmail.php');
22) 
23) $settings = domainsettings();
24) 
25) $domains = $settings['domains'];
26) $subdomains = $settings['subdomains'];
27) 
28) DEBUG($settings);
29) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

30) title("E-Mail-Verwaltung");
31) output('<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

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

bernd authored 15 years ago

35) <p>Diese Wahlmöglichkeit haben Sie pro Domain bzw. Subdomain. Eine parallel Nutzung beider Verfahren ist nicht möglich.
36) Wenn Sie eine Domain auf Webinterface-Verwaltung einrichten, dann werden eventuell vorhandene .courier-Dateien nicht mehr 
37) beachtet. Subdomains können grundsätzlich nur durch Administratoren eingerichtet und verändert werden.</p>
bernd Großer VMail-move

bernd authored 16 years ago

38) 
39) <h4>Ihre Domains sind momentan wie folgt konfiguriert:</h4>
40) 
41) <table>
42)   <tr><th>Domainname</th><th>Einstellung</th><th></th></tr>
43) ');
44) 
45) foreach ($domains AS $id => $dom) {
46)   $type = maildomain_type($dom['type']);
bernd eliminate .php extensions f...

bernd authored 15 years ago

47)   $edit = html_form('vmail_domainchange', 'domainchange', '', html_select('type', array('virtual' => 'Webinterface-Verwaltung', 'auto' => '.courier-Dateien', 'none' => 'keine E-Mails empfangen'), $dom['type']).' <input type="hidden" name="id" value="'.$id.'" /><input type="submit" value="ändern" />');
bernd Großer VMail-move

bernd authored 16 years ago

48)   if ($dom['type'] == 'manual')
49)     $edit = 'Kann nur von Admins geändert werden';
50)   if (domain_has_vmail_accounts($id))
bernd eliminate .php extensions f...

bernd authored 15 years ago

51)     $edit = 'Keine Änderung möglich, so lange noch '.internal_link("vmail", "E-Mail-Konten").' für diese Domain eingerichtet sind.';