84e38c4c49355cb6294f7da8e6c9693b14d932ee
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 6 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 11 months 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 15 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 11 months 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>
Bernd Wurst DMARC-Warnung deutlicher

Bernd Wurst authored 5 months ago

40) 
Bernd Wurst DMARC-Warnung entschärft

Bernd Wurst authored 2 months ago

41) <p class="warning"><strong>BITTE BEACHTEN:</strong> Lesen Sie bitte die <a href="https://wiki.schokokeks.org/E-Mail/DKIM">Informationen zu DKIM / DMARC</a>, insbesondere den Abschnitt "Mails von PHP-Applikationen und anderen serverseitigen Anwendungen".</p>
Bernd Wurst DKIM-Hinweis und Wiki-Link

Bernd Wurst authored 11 months ago

42) 
bernd Großer VMail-move

bernd authored 16 years ago

43) <h4>Ihre Domains sind momentan wie folgt konfiguriert:</h4>
44) 
45) <table>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 9 years ago

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

Hanno authored 5 years ago

50) foreach ($domains as $id => $dom) {
51)     $odd = !$odd;
52)     $trextra = ($odd ? ' class="odd"' : ' class="even"');
53)     $edit_disabled = false;
54)     $notice = '';
Bernd Wurst Hinweis auf existierende Ma...

Bernd Wurst authored 3 weeks ago

55)     $tooltip = '';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

56)     if ($dom['type'] == 'manual') {
57)         $edit_disabled = true;
58)         $notice = 'Kann nur von Admins geändert werden';
Bernd Wurst Hinweis auf existierende Ma...

Bernd Wurst authored 3 weeks ago

59)         $tooltip = 'Kann nur von Admins geändert werden';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

60)     }
61)     if (domain_has_vmail_accounts($id)) {
62)         $edit_disabled = true;
Bernd Wurst Link mit filter

Bernd Wurst authored 3 weeks ago

63)         $notice = 'Es gibt ' . internal_link("vmail", "E-Mail-Konten für diese Domain", "filter={$dom['name']}") . '.';
Bernd Wurst Hinweis auf existierende Ma...

Bernd Wurst authored 3 weeks ago

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

Hanno authored 5 years ago

65)     }
66)     if ($dom['mailserver_lock']) {
67)         $trextra .= ' style="background-color: #faa;"';
68)         $notice .= ' <strong>Mailserver-Sperre aktiv!</strong>';
69)     }
Bernd Wurst Erster Entwurf nomail-Feature

Bernd Wurst authored 5 months ago

70)     $check_nomail = ($dom['type'] == 'nomail' ? ' checked="checked"' : '');
Bernd Wurst Nomail als checkbox

Bernd Wurst authored 5 months ago

71)     $check_off = (($dom['type'] == 'none' || $dom['type'] == 'nomail') ? ' checked="checked"' : '');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

72)     $check_webinterface = ($dom['type'] == 'virtual' ? ' checked="checked"' : '');
73)     $check_manual = ($dom['type'] == 'auto' || $dom['type'] == 'manual' ? ' checked="checked"' : '');
Hanno remove whitespace in empty...

Hanno authored 5 years ago

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

Hanno Böck authored 6 months ago

75)     $buttons = '<span class="buttonset' . ($edit_disabled ? ' disabled' : '') . '" id="buttonset-' . $id . '">
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

76)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-webinterface" value="webinterface"' . $check_webinterface . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '>
Bernd Wurst Hinweis auf existierende Ma...

Bernd Wurst authored 3 weeks ago

77)          <label title="' . $tooltip . '" for="option-' . $id . '-webinterface">Webinterface</label>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

78)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-manual" value="manual"' . $check_manual . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '>
Bernd Wurst Hinweis auf existierende Ma...

Bernd Wurst authored 3 weeks ago

79)          <label title="' . $tooltip . '" for="option-' . $id . '-manual">Manuell</label>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

80)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-off" value="off"' . $check_off . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '>
Bernd Wurst Hinweis auf existierende Ma...

Bernd Wurst authored 3 weeks ago

81)          <label title="' . $tooltip . '" for="option-' . $id . '-off">Ausgeschaltet</label>';
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

82)     $buttons .= '<input type="submit" value="Speichern">
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

83)       </span>';
Bernd Wurst Nomail als checkbox

Bernd Wurst authored 5 months ago

84)     if ($dom['type'] == 'nomail' || $dom['type'] == 'none') {
Bernd Wurst Wiki-Link für Nomail-Option

Bernd Wurst authored 5 months ago

85)         $notice .= '<a href="https://wiki.schokokeks.org/E-Mail/Keine-Mailnutzung">Hinweise zur Verhinderung der Mail-Nutzung</a>';
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

86)         $buttons .= '<span class="nomail"><input type="checkbox" class="nomail autosubmit" name="nomail-' . $id . '" id="option-' . $id . '-nomail" value="nomail"' . $check_nomail . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '>
Bernd Wurst Nomail als checkbox

Bernd Wurst authored 5 months ago

87)                      <label class="nomail" for="option-' . $id . '-nomail">Mail-Nutzung verhindern</label>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

88)          <input class="hidden" type="submit" value="Speichern"></span>';
Bernd Wurst Nomail als checkbox

Bernd Wurst authored 5 months ago

89)     }
Hanno Böck codingstyle

Hanno Böck authored 11 months ago

90) 
Bernd Wurst Erster Entwurf nomail-Feature

Bernd Wurst authored 5 months ago

91)     if ($dom['type'] != 'none' && $dom['type'] != 'nomail' && $dom['dns'] == 1) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

92)         $buttons .= '&nbsp;<select name="dkim-' . $id . '" id="dkim-select-' . $id . '" class="autosubmit">
Bernd Wurst DKIM+DMARC per default eins...

Bernd Wurst authored 3 weeks ago

93)             <option value="dmarc" ' . ($dom['dkim'] == 'dmarc' ? 'selected' : '') . '>DKIM+DMARC (Standard)</option>
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

94)             <option value="dkim" ' . ($dom['dkim'] == 'dkim' ? 'selected' : '') . '>Nur DKIM</option>
95)             <option value="none" ' . ($dom['dkim'] == 'none' ? 'selected' : '') . '>DKIM ausgeschaltet</option>
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 11 months ago

96)         </select>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

97)          <input class="hidden" type="submit" value="Speichern">
Bernd Wurst DKIM-Einstellungen nur bei...

Bernd Wurst authored 11 months ago

98)       ';
Bernd Wurst DKIM-Hinweis und Wiki-Link

Bernd Wurst authored 11 months ago

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

Bernd Wurst authored 11 months ago

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

Bernd Wurst authored 11 months ago

101)     }
Hanno Böck Fix codingstyle

Hanno Böck authored 3 months ago

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

Hanno authored 5 years ago

103)     if (array_key_exists($id, $subdomains)) {
104)         foreach ($subdomains[$id] as $subdom) {
105)             $odd = !$odd;
106)             $trextra = ($odd ? ' class="odd"' : ' class="even"');
107)             $edit_disabled = true;
108)             $check_webinterface = ($subdom['type'] == 'virtual' ? ' checked="checked"' : '');
109)             $check_manual = ($subdom['type'] == 'auto' || $subdom['type'] == 'manual' ? ' checked="checked"' : '');
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

110)             $id = $id . '-' . $subdom['name'];
111)             $buttons = '<span class="buttonset' . ($edit_disabled ? ' disabled' : '') . '" id="buttonset-' . $id . '">
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

112)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-webinterface" value="webinterface"' . $check_webinterface . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '>
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

113)          <label for="option-' . $id . '-webinterface">Webinterface</label>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

114)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-manual" value="manual"' . $check_manual . ' ' . ($edit_disabled ? ' disabled="disabled"' : '') . '>
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

115)          <label for="option-' . $id . '-manual">Manuell</label>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

116)          <input type="radio" name="option-' . $id . '" id="option-' . $id . '-off" value="off"' . ($edit_disabled ? ' disabled="disabled"' : '') . '>
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

117)          <label for="option-' . $id . '-off">Ausgeschaltet</label>
Bernd Wurst DKIM-Einstellungen nur bei...

Bernd Wurst authored 11 months ago

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

Hanno authored 5 years ago

119)             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");
120)         }
bernd Großer VMail-move

bernd authored 16 years ago

121)     }
122) }
123) output('</table>
Hanno Böck Add extraid parameter for f...

Hanno Böck authored 3 months ago

124) <br>');