9086c9ad77db90633e0629e9e86a88366265ded0
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 Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 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) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

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);
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

20) require_once('inc/jquery.php');
21) javascript('domains.js');
bernd Großer VMail-move

bernd authored 16 years ago

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

bernd authored 13 years ago

32) title("E-Mail-Verwaltung");
33) 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

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

bernd authored 15 years ago

37) <p>Diese Wahlmöglichkeit haben Sie pro Domain bzw. Subdomain. Eine parallel Nutzung beider Verfahren ist nicht möglich.
38) Wenn Sie eine Domain auf Webinterface-Verwaltung einrichten, dann werden eventuell vorhandene .courier-Dateien nicht mehr 
39) 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

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

Bernd Wurst authored 11 years ago

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

bernd authored 16 years ago

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

Bernd Wurst authored 9 years ago

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

Hanno authored 5 years ago

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

Hanno authored 5 years ago

68) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

69)     $buttons = '<span class="buttonset'.($edit_disabled ? ' disabled':'').'" id="buttonset-'.$id.'">
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

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

Bernd Wurst authored 9 years ago

74)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-off" value="off"'.$check_off.' '.($edit_disabled ? ' disabled="disabled"':'').'/>
75)          <label for="option-'.$id.'-off">Ausgeschaltet</label>
76)          <input type="submit" value="Speichern" />
Bernd Wurst Neues Layout der Rechnungen...

Bernd Wurst authored 9 years ago

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

Hanno authored 5 years ago

78)     output("<tr{$trextra}><td>{$dom['name']}</td><td>".html_form('vmail_domainchange', 'domainchange', '', $buttons)."</td><td>{$notice}</td></tr>\n");
79)     if (array_key_exists($id, $subdomains)) {
80)         foreach ($subdomains[$id] as $subdom) {
81)             $odd = !$odd;
82)             $trextra = ($odd ? ' class="odd"' : ' class="even"');
83)             $edit_disabled = true;
84)             $check_webinterface = ($subdom['type'] == 'virtual' ? ' checked="checked"' : '');
85)             $check_manual = ($subdom['type'] == 'auto' || $subdom['type'] == 'manual' ? ' checked="checked"' : '');
86)             $id = $id.'-'.$subdom['name'];
87)             $buttons = '<span class="buttonset'.($edit_disabled ? ' disabled':'').'" id="buttonset-'.$id.'">
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 9 years ago

88)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-webinterface" value="webinterface"'.$check_webinterface.' '.($edit_disabled ? ' disabled="disabled"':'').'/>
89)          <label for="option-'.$id.'-webinterface">Webinterface</label>
90)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-manual" value="manual"'.$check_manual.' '.($edit_disabled ? ' disabled="disabled"':'').'/>
91)          <label for="option-'.$id.'-manual">Manuell</label>
92)          <input type="radio" name="option-'.$id.'" id="option-'.$id.'-off" value="off"'.($edit_disabled ? ' disabled="disabled"':'').'/>
93)          <label for="option-'.$id.'-off">Ausgeschaltet</label>
94)       </span>';
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

95)             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");
96)         }