354c05a4ddd678c49bcbba458bffa7d13482139a
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) 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.
12) */
bernd Großer VMail-move

bernd authored 16 years ago

13) 
14) require_once('inc/base.php');
15) require_once('inc/security.php');
16) require_role(ROLE_SYSTEMUSER);
Bernd Wurst removed jquery and jqueryUI...

Bernd Wurst authored 1 year ago

17) require_once('inc/javascript.php');
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

18) javascript('domains.js');
bernd Großer VMail-move

bernd authored 16 years ago

19) 
20) require_once('vmail.php');
21) 
22) $settings = domainsettings();
23) 
24) $domains = $settings['domains'];
25) $subdomains = $settings['subdomains'];
26) 
27) DEBUG($settings);
28) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

29) title("E-Mail-Verwaltung");
Hanno Böck Spaces between string conca...

Hanno Böck authored 7 months ago

30) 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

31) <ol><li>Sie können einfache E-Mail-Konten erstellen, die ankommende E-Mails speichern oder weiterleiten.</li>
32) <li>Sie können die manuelle Verwaltung wählen, bei der Sie passende .courier-Dateien für den Empfang und
33) manuelle POP3/IMAP-Konten für den Abruf erstellen können.</li></ol>
Hanno Böck Rechtschreibung, typos

Hanno Böck authored 1 year ago

34) <p>Diese Wahlmöglichkeit haben Sie pro Domain bzw. Subdomain. Eine parallele Nutzung beider Verfahren ist nicht möglich.
bernd exklusivität der mail-verwa...

bernd authored 16 years ago

35) Wenn Sie eine Domain auf Webinterface-Verwaltung einrichten, dann werden eventuell vorhandene .courier-Dateien nicht mehr 
36) 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

37) 
Bernd Wurst DKIM-Hinweis und Wiki-Link

Bernd Wurst authored 1 year ago

38) <p><strong>DKIM:</strong> Für jede Domain können Sie zudem einstellen, ob die ausgehenden Mails eine DKIM-Signatur bekommen 
39) sollen bzw. ob zusätzlich eine DMARC-Policy veröffentlicht werden soll.</p>
40) <p><a href="https://wiki.schokokeks.org/E-Mail/DKIM">Mehr Informationen zu DKIM / DMARC</a></p>
41) 
bernd Großer VMail-move

bernd authored 16 years ago

42) <h4>Ihre Domains sind momentan wie folgt konfiguriert:</h4>
43) 
44) <table>
Bernd Wurst Zeige mailserver_lock im We...

Bernd Wurst authored 11 years ago

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

bernd authored 16 years ago

46) ');
47) 
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

48) $odd = true;
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

49) foreach ($domains as $id => $dom) {
50)     $odd = !$odd;
51)     $trextra = ($odd ? ' class="odd"' : ' class="even"');
52)     $edit_disabled = false;
53)     $notice = '';
54)     if ($dom['type'] == 'manual') {
55)         $edit_disabled = true;
56)         $notice = 'Kann nur von Admins geändert werden';
57)     }
58)     if (domain_has_vmail_accounts($id)) {
59)         $edit_disabled = true;
Hanno Böck Spaces between string conca...

Hanno Böck authored 7 months ago

60)         $notice = 'Keine Änderung möglich, solange noch ' . internal_link("vmail", "E-Mail-Konten") . ' für diese Domain eingerichtet sind.';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

61)     }
62)     if ($dom['mailserver_lock']) {
63)         $trextra .= ' style="background-color: #faa;"';
64)         $notice .= ' <strong>Mailserver-Sperre aktiv!</strong>';
65)     }
66)     $check_off = ($dom['type'] == 'none' ? ' checked="checked"' : '');
67)     $check_webinterface = ($dom['type'] == 'virtual' ? ' checked="checked"' : '');
68)     $check_manual = ($dom['type'] == 'auto' || $dom['type'] == 'manual' ? ' checked="checked"' : '');
Hanno remove whitespace in empty...

Hanno authored 5 years ago

69) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 7 months ago

70)     $buttons = '<span class="buttonset' . ($edit_disabled ? ' disabled' : '') . '" id="buttonset-' . $id . '">
71)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-webinterface" value="webinterface"' . $check_webinterface . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/>
72)          <label for="option-' . $id . '-webinterface">Webinterface</label>
73)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-manual" value="manual"' . $check_manual . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/>
74)          <label for="option-' . $id . '-manual">Manuell</label>
75)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-off" value="off"' . $check_off . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/>
76)          <label for="option-' . $id . '-off">Ausgeschaltet</label>
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 9 years ago

77)          <input type="submit" value="Speichern" />
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

78)       </span>';
Hanno Böck codingstyle

Hanno Böck authored 1 year ago

79) 
Bernd Wurst DKIM-Einstellungen nur bei...

Bernd Wurst authored 1 year ago

80)     if ($dom['type'] != 'none' && $dom['dns'] == 1) {
Bernd Wurst email setting per domain test

Bernd Wurst authored 1 year ago

81)         $check_dmarc = ($dom['dkim'] == 'dmarc' ? ' checked="checked"' : '');
82)         $check_dkim = ($dom['dkim'] == 'dkim' ? ' checked="checked"' : '');
83)         $check_dkimoff = ($dom['dkim'] == 'none' ? ' checked="checked"' : '');
Hanno Böck Spaces between string conca...

Hanno Böck authored 7 months ago

84)         $buttons .= '&nbsp;<select name="dkim-' . $id . '" id="dkim-select-' . $id . '" class="autosubmit">
85)             <option value="dmarc" ' . ($dom['dkim'] == 'dmarc' ? 'selected' : '') . '>DKIM + DMARC</option>
86)             <option value="dkim" ' . ($dom['dkim'] == 'dkim' ? 'selected' : '') . '>Nur DKIM</option>
87)             <option value="none" ' . ($dom['dkim'] == 'none' ? 'selected' : '') . '>DKIM ausgeschaltet</option>
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 1 year ago

88)         </select>
Bernd Wurst DKIM-Einstellungen nur bei...

Bernd Wurst authored 1 year ago

89)          <input class="hidden" type="submit" value="Speichern" />
90)       ';
Bernd Wurst DKIM-Hinweis und Wiki-Link

Bernd Wurst authored 1 year ago

91)     } else {
Bernd Wurst DKIM-Einstellungen nur bei...

Bernd Wurst authored 1 year ago

92)         //$buttons .= 'Sie können keine DKIM-Einstellung vornehmen, wenn der Mail-Empfang ausgeschaltet ist.';
Bernd Wurst email setting per domain test

Bernd Wurst authored 1 year ago

93)     }
Hanno Böck Spaces between string conca...

Hanno Böck authored 7 months ago

94)     output("<tr{$trextra}><td>{$dom['name']}</td><td class=\"nowrap\">" . html_form('vmail_domainchange', 'domainchange', '', $buttons) . "</td><td>{$notice}</td></tr>\n");
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

95)     if (array_key_exists($id, $subdomains)) {
96)         foreach ($subdomains[$id] as $subdom) {
97)             $odd = !$odd;
98)             $trextra = ($odd ? ' class="odd"' : ' class="even"');
99)             $edit_disabled = true;
100)             $check_webinterface = ($subdom['type'] == 'virtual' ? ' checked="checked"' : '');
101)             $check_manual = ($subdom['type'] == 'auto' || $subdom['type'] == 'manual' ? ' checked="checked"' : '');
Hanno Böck Spaces between string conca...

Hanno Böck authored 7 months ago

102)             $id = $id . '-' . $subdom['name'];
103)             $buttons = '<span class="buttonset' . ($edit_disabled ? ' disabled' : '') . '" id="buttonset-' . $id . '">
104)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-webinterface" value="webinterface"' . $check_webinterface . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/>
105)          <label for="option-' . $id . '-webinterface">Webinterface</label>
106)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-manual" value="manual"' . $check_manual . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '/>
107)          <label for="option-' . $id . '-manual">Manuell</label>
108)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-off" value="off"' . ($edit_disabled ? ' disabled="disabled"' : '') . '/>
109)          <label for="option-' . $id . '-off">Ausgeschaltet</label>
Bernd Wurst DKIM-Einstellungen nur bei...

Bernd Wurst authored 1 year ago

110)       </span>';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

111)             output("<tr{$trextra}><td>{$subdom['name']}.{$dom['name']}</td><td>{$buttons}</td><td>Subdomains können nur von Admins geändert werden!</td></tr>\n");
112)         }