dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
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) 
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 Neues Modul für Mailman-Ver...

bernd authored 15 years ago

13) 
Bernd Wurst Mailman-Interface

Bernd Wurst authored 5 years ago

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

Bernd Wurst authored 10 years ago

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

bernd authored 15 years ago

16) require_once('mailman.php');
17) 
18) require_role(ROLE_SYSTEMUSER);
19) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 15 years ago

21) 
Bernd Wurst mailman warning hardcoded w...

Bernd Wurst authored 2 years ago

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

Bernd Wurst authored 2 years ago

26) 
Hanno Böck mailman url https

Hanno Böck authored 7 years ago

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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

30) 
Bernd Wurst Mailman-Interface

Bernd Wurst authored 5 years ago

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

Bernd Wurst authored 4 years ago

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

Bernd Wurst authored 5 years ago

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

Bernd Wurst authored 4 years ago

41)     $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

42)     output(html_form('mailman_filter', 'lists', '', $form));
43) }
44) 
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 2 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 3 years ago

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

Bernd Wurst authored 3 years ago

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

Hanno authored 5 years ago

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

Hanno authored 5 years ago

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

Hanno authored 5 years ago

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

bernd authored 15 years ago

79) 
Bernd Wurst show lastactivity and numbe...

Bernd Wurst authored 4 years ago

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

Bernd Wurst authored 5 years ago

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

Hanno authored 5 years ago

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

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

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

Bernd Wurst authored 3 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 3 years ago

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

Hanno authored 5 years ago

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

bernd authored 15 years ago

107) }
108) 
Bernd Wurst Mailman-Abschaltung Schritt...

Bernd Wurst authored 2 years ago

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

bernd authored 14 years ago

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

bernd authored 12 years ago

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

Bernd Wurst authored 6 years ago

113) <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 />