f0ca633747824f54691daa1d30fa0106702183f9
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) 
Bernd Wurst Updated copyright notice (2...

Bernd Wurst authored 11 years ago

5) Written 2008-2013 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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>
Bernd Wurst Zeige mailserver_lock im We...

Bernd Wurst authored 11 years ago

42)   <tr><th>Domainname</th><th>Einstellung</th><th></th><th></th></tr>
bernd Großer VMail-move

bernd authored 16 years ago

43) ');
44) 
45) foreach ($domains AS $id => $dom) {
Bernd Wurst Zeige mailserver_lock im We...

Bernd Wurst authored 11 years ago

46)   $trextra = '';
47)   $extra = '';
bernd Großer VMail-move

bernd authored 16 years ago

48)   $type = maildomain_type($dom['type']);
bernd eliminate .php extensions f...

bernd authored 15 years ago

49)   $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

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

bernd authored 15 years ago

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

Bernd Wurst authored 11 years ago

54)   if ($dom['mailserver_lock']) {
55)     $trextra = ' style="background-color: #faa;"';
56)     $extra = '<strong>Mailserver-Sperre aktiv!</strong>';
57)   }
58)   output("<tr{$trextra}><td>{$dom['name']}</td><td>{$type}</td><td>{$edit}</td><td style=\"border: none;\">{$extra}</td></tr>\n");