4b0ce369d7f552fce07730cfb56a7dd6324c9a95
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");
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>
bernd exklusivität der mail-verwa...

bernd authored 15 years ago

34) <p>Diese Wahlmöglichkeit haben Sie pro Domain bzw. Subdomain. Eine parallel Nutzung beider Verfahren ist nicht möglich.
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) 
38) <h4>Ihre Domains sind momentan wie folgt konfiguriert:</h4>
39) 
40) <table>
Bernd Wurst Zeige mailserver_lock im We...

Bernd Wurst authored 11 years ago

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

bernd authored 16 years ago

42) ');
43) 
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

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

Hanno authored 5 years ago

45) foreach ($domains as $id => $dom) {
46)     $odd = !$odd;
47)     $trextra = ($odd ? ' class="odd"' : ' class="even"');
48)     $edit_disabled = false;
49)     $notice = '';
50)     if ($dom['type'] == 'manual') {
51)         $edit_disabled = true;
52)         $notice = 'Kann nur von Admins geändert werden';
53)     }
54)     if (domain_has_vmail_accounts($id)) {
55)         $edit_disabled = true;
56)         $notice = 'Keine Änderung möglich, so lange noch '.internal_link("vmail", "E-Mail-Konten").' für diese Domain eingerichtet sind.';
57)     }
58)     if ($dom['mailserver_lock']) {
59)         $trextra .= ' style="background-color: #faa;"';
60)         $notice .= ' <strong>Mailserver-Sperre aktiv!</strong>';
61)     }
62)     $check_off = ($dom['type'] == 'none' ? ' checked="checked"' : '');
63)     $check_webinterface = ($dom['type'] == 'virtual' ? ' checked="checked"' : '');
64)     $check_manual = ($dom['type'] == 'auto' || $dom['type'] == 'manual' ? ' checked="checked"' : '');
Hanno remove whitespace in empty...

Hanno authored 5 years ago

65) 
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

66)     $buttons = '<span class="buttonset'.($edit_disabled ? ' disabled' : '').'" id="buttonset-'.$id.'">
67)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-webinterface" value="webinterface"'.$check_webinterface.' '.($edit_disabled ? ' disabled="disabled"' : '').'/>
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

68)          <label for="option-'.$id.'-webinterface">Webinterface</label>
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

69)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-manual" value="manual"'.$check_manual.' '.($edit_disabled ? ' disabled="disabled"' : '').'/>
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

70)          <label for="option-'.$id.'-manual">Manuell</label>
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

71)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-off" value="off"'.$check_off.' '.($edit_disabled ? ' disabled="disabled"' : '').'/>
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 9 years ago

72)          <label for="option-'.$id.'-off">Ausgeschaltet</label>
73)          <input type="submit" value="Speichern" />
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

74)       </span>';
Bernd Wurst email setting per domain test

Bernd Wurst authored 11 months ago

75)     
76)     if ($dom['type'] != 'none') {
77)         $check_dmarc = ($dom['dkim'] == 'dmarc' ? ' checked="checked"' : '');
78)         $check_dkim = ($dom['dkim'] == 'dkim' ? ' checked="checked"' : '');
79)         $check_dkimoff = ($dom['dkim'] == 'none' ? ' checked="checked"' : '');
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 11 months ago

80)         $buttons .= ' <p><label for="dkim-select-'.$id.'">DKIM-Einstellung: </label><select name="dkim-'.$id.'" id="dkim-select-'.$id.'" class="autosubmit">
Bernd Wurst email setting per domain test

Bernd Wurst authored 11 months ago

81)             <option value="dmarc" '.($dom['dkim'] == 'dmarc' ? 'selected' : '').'>DKIM + DMARC</option>
82)             <option value="dkim" '.($dom['dkim'] == 'dkim' ? 'selected' : '').'>Nur DKIM</option>
83)             <option value="none" '.($dom['dkim'] == 'none' ? 'selected' : '').'>DKIM ausgeschaltet</option>
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 11 months ago

84)         </select>
85)          <input class="hidden" type="submit" value="Speichern" /></p>
Bernd Wurst email setting per domain test

Bernd Wurst authored 11 months ago

86)       </span>';
87) 
88)     }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

89)     output("<tr{$trextra}><td>{$dom['name']}</td><td>".html_form('vmail_domainchange', 'domainchange', '', $buttons)."</td><td>{$notice}</td></tr>\n");
90)     if (array_key_exists($id, $subdomains)) {
91)         foreach ($subdomains[$id] as $subdom) {
92)             $odd = !$odd;
93)             $trextra = ($odd ? ' class="odd"' : ' class="even"');
94)             $edit_disabled = true;
95)             $check_webinterface = ($subdom['type'] == 'virtual' ? ' checked="checked"' : '');
96)             $check_manual = ($subdom['type'] == 'auto' || $subdom['type'] == 'manual' ? ' checked="checked"' : '');
97)             $id = $id.'-'.$subdom['name'];
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

98)             $buttons = '<span class="buttonset'.($edit_disabled ? ' disabled' : '').'" id="buttonset-'.$id.'">
99)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-webinterface" value="webinterface"'.$check_webinterface.' '.($edit_disabled ? ' disabled="disabled"' : '').'/>
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 9 years ago

100)          <label for="option-'.$id.'-webinterface">Webinterface</label>
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

101)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-manual" value="manual"'.$check_manual.' '.($edit_disabled ? ' disabled="disabled"' : '').'/>
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 9 years ago

102)          <label for="option-'.$id.'-manual">Manuell</label>
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

103)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-off" value="off"'.($edit_disabled ? ' disabled="disabled"' : '').'/>
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 9 years ago

104)          <label for="option-'.$id.'-off">Ausgeschaltet</label>
105)       </span>';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

106)             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");
107)         }