c323a80b60ecfbae97c8beb03a0275f9a6161ee5
bernd Neues Modul für Mailman-Ver...

bernd authored 15 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 Neues Modul für Mailman-Ver...

bernd authored 15 years ago

16) 
Bernd Wurst Mailman-Interface

Bernd Wurst authored 5 years ago

17) require_once('inc/jquery.php');
Bernd Wurst Zeige Link zur Mailman-List...

Bernd Wurst authored 10 years ago

18) require_once('inc/icons.php');
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

19) require_once('mailman.php');
20) 
21) require_role(ROLE_SYSTEMUSER);
22) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

23) title('Mailinglisten');
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

24) 
Bernd Wurst mailman warning hardcoded w...

Bernd Wurst authored 2 years ago

25) output('<div class="warning">
26)     <p><strong>Bitte beachten Sie: Der Mailinglisten-Dienst wird zum Jahresende 2022 eingestellt. Das Anlegen neuer Listen ist nicht mehr möglich.<br>
27)     Wenden Sie sich bitte frühzeitig an den Support, wenn Sie Unterstützung beim Umzug zu einem anderen Dienstleister benötigen.</strong></p>
28)     </div>');
Bernd Wurst Mailman-Abschaltung Schritt...

Bernd Wurst authored 2 years ago

29) 
Hanno Böck mailman url https

Hanno Böck authored 7 years ago

30) output('<p>Mit <a href="https://www.gnu.org/software/mailman/index.html">Mailman</a> bieten wir Ihnen eine umfangreiche Lösung für E-Mail-Verteilerlisten an.</p>
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

31) <p>Auf dieser Seite können Sie Ihre Mailinglisten verwalten.</p>
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

32) ');
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

33) 
Bernd Wurst Mailman-Interface

Bernd Wurst authored 5 years ago

34) $filter = "";
35) if (isset($_REQUEST['filter']) && $_REQUEST['filter'] != '') {
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 4 years ago

36)     $filter = $_REQUEST['filter'];
Bernd Wurst Mailman-Interface

Bernd Wurst authored 5 years ago

37) }
38) $lists = get_lists($filter);
39) 
40) 
41) // Filter-Funktion
42) if (count($lists) > 10 || $filter) {
43)     javascript();
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 4 years ago

44)     $form = '<p><label for="filter">Filter für die Anzeige:</label> <input type="text" name="filter" id="filter" value="'.filter_output_html($filter).'"><button type="button" id="clear" title="Filter leeren">&times;</button><input type="submit" value="Filtern!"></p>';
Bernd Wurst Mailman-Interface

Bernd Wurst authored 5 years ago

45)     output(html_form('mailman_filter', 'lists', '', $form));
46) }
47) 
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

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

Hanno authored 5 years ago

49) if (! empty($lists)) {
Bernd Wurst Mailman-Abschaltung Schritt...

Bernd Wurst authored 2 years ago

50)     #addnew('newlist', 'Neue Mailingliste anlegen');
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

51)     output('<div id="mailman_lists_container">');
52)     foreach ($lists as $list) {
53)         $size = $list['archivesize'];
54)         $sizestr = $size.' Bytes';
55)         if (! $size) {
56)             $sizestr = '<em>Kein Archiv</em>';
57)         } else {
58)             $sizestr = sprintf('%.2f', $size/(1024*1024)).' MB';
59)         }
60) 
61) 
62)         $class = 'regular';
63)         $status = 'In Betrieb (erstellt am '.strftime('%d.%m.%Y', strtotime($list['created'])).')';
64)         if ($list['status'] == 'delete') {
65)             $class = 'deleted';
66)             $status = 'Wird gelöscht';
Bernd Wurst mailman: hide deeleted lists

Bernd Wurst authored 3 years ago

67)         } elseif ($list['status'] == 'deleted') {
68)             # liste ist schon gelöscht
Bernd Wurst typo

Bernd Wurst authored 3 years ago

69)             continue;
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

70)         } elseif ($list['status'] == 'pending') {
71)             $class = 'new';
72)             $status = 'Wird angelegt';
73)         } elseif ($list['status'] == 'newpw') {
74)             $class = 'edited';
75)             $status = 'Neues Passwort angefordert';
76)         } elseif ($list['status'] == 'failure') {
77)             $class = 'error';
78)             $status = 'Fehler bei der Erstellung';
79)         }
Hanno remove whitespace in empty...

Hanno authored 5 years ago

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

Hanno authored 5 years ago

81)         $admin = str_replace(',', ', ', $list['admin']);
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

82) 
Bernd Wurst show lastactivity and numbe...

Bernd Wurst authored 4 years ago

83)         $lastactivity = $list['lastactivity'];
84)         if (! $lastactivity || $lastactivity < '2000') {
85)             $lastactivity = '<em>nie</em>';
86)         }
Bernd Wurst Füge Leerzeichen in die Auf...

Bernd Wurst authored 5 years ago

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

Hanno authored 5 years ago

88)         output("<div class=\"mailman_list $class\"><p class=\"listname\"><span class=\"listname\">{$list['listname']}</span>@{$list['fqdn']}</p>
Bernd Wurst show lastactivity and numbe...

Bernd Wurst authored 4 years ago

89)         <p class=\"listadmin\">Verwalter: {$admin}</p><p class=\"status\">Status: {$status}<br/>Anzahl Mitglieder: {$list['subscribers']}<br/>Letzte Nutzung: {$lastactivity}</p><p class=\"archivesize\">Archivgröße: {$sizestr}</p>");
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

90)         if ($list['status'] == 'running') {
Bernd Wurst basic mailman3 support (no...

Bernd Wurst authored 3 years ago

91)             if ($list['backend'] == 'mailman' || $list['backend'] === null) {
92)                 output("<p class=\"operations\">".
93)                     internal_link('save', other_icon("lock.png", "Neues Passwort anfordern").' Neues Passwort anfordern', "action=newpw&id={$list['id']}")."<br>".
94)                     internal_link('save', icon_delete("Mailingliste löschen").' Liste löschen', "action=delete&id={$list['id']}")."<br>".
95)                     "<a href=\"https://".config('mailman_host')."/mailman/admin.cgi/{$list['listname']}\">".other_icon("database_go.png", "Listen-Verwaltung aufrufen")." Verwaltung aufrufen</a>".
96)                     "</p>\n");
97)             } elseif ($list['backend'] == 'mailman3') {
98)                 output("<p class=\"operations\">".
99)                     internal_link('save', icon_delete("Mailingliste löschen").' Liste löschen', "action=delete&id={$list['id']}")."<br>".
100)                     "<a href=\"https://".$list['urlhost']."/postorius/lists/{$list['listname']}.{$list['fqdn']}\">".other_icon("database_go.png", "Listen-Verwaltung aufrufen")." Verwaltung aufrufen</a>".
101)                     "</p>\n");
102)             }
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

103)         }
Bernd Wurst basic mailman3 support (no...

Bernd Wurst authored 3 years ago

104)         output("</div>\n");
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

105)     }
106)     output("</div>");
107) } else {
108)     // keine Listen
109)     output('<p><em>Sie betreiben bisher keine Mailinglisten.</em></p>');
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

110) }
111) 
Bernd Wurst Mailman-Abschaltung Schritt...

Bernd Wurst authored 2 years ago

112) # 2021-11-13, Ab sofort keine neuen Mailinglisten mehr
113) #addnew('newlist', 'Neue Mailingliste anlegen');
bernd addnew() eingeführt

bernd authored 14 years ago

114) output("
bernd Hinweis zum periodischen Up...

bernd authored 12 years ago

115) <p><strong>Hinweise:</strong><br />
Bernd Wurst Formulierung geändert

Bernd Wurst authored 6 years ago

116) <sup>1</sup>) Sie können später im Webinterface von Mailman einen abweichenden oder auch mehrere Verwalter eintragen. Die Information auf dieser Seite wird zyklisch synchronisiert.<br />