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

bernd authored 14 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) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
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 14 years ago

16) 
17) require_once('inc/base.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 14 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 14 years ago

24) 
Hanno Böck mailman url https

Hanno Böck authored 7 years ago

25) 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 14 years ago

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

bernd authored 14 years ago

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

bernd authored 14 years ago

28) 
29) $lists = get_lists();
30) 
31) if (! empty($lists))
32) {
bernd Hinweis zum periodischen Up...

bernd authored 12 years ago

33)   output("<table>\n<tr><th>Listenname</th><th>Verwalter<sup>1</sup></th><th>Status</th><th>Archivgröße<sup>2</sup></th><th>&nbsp;</th></tr>\n");
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

34)   foreach ($lists AS $list)
35)   {
bernd Zeige Archivgröße der Maili...

bernd authored 12 years ago

36)     $size = $list['archivesize'];
37)     $sizestr = $size.' Bytes';
38)     if (! $size) {
39)       $sizestr = '<em>Kein Archiv</em>';
40)     }
41)     else {
42)       $sizestr = sprintf('%.2f', $size/(1024*1024)).' MB';
43)     }
44) 
45) 
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

46)     $style = '';
47)     $status = 'In Betrieb';
48)     if ($list['status'] == 'delete')
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

49)     {
50)       $style = ' style="text-decoration: line-through;" ';
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

51)       $status = 'Wird gelöscht';
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

52)     }
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

53)     elseif ($list['status'] == 'pending')
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

54)     {
55)       $style = ' style="text-decoration: underline;" ';
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

56)       $status = 'Wird angelegt';
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

57)     }
Bernd Wurst Ermögliche das Rücksetzen d...

Bernd Wurst authored 6 years ago

58)     elseif ($list['status'] == 'newpw')
59)     {
60)       $style = ' style="font-style: italic;" ';
61)       $status = 'Neues Passwort angefordert';
62)     }
bernd Bugfix und Fehler-Status

bernd authored 14 years ago

63)     elseif ($list['status'] == 'failure')
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

64)     {
65)       $style = ' style="font-style: italic;" ';
bernd Bugfix und Fehler-Status

bernd authored 14 years ago

66)       $status = 'Fehler bei der Erstellung';
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

67)     }
Bernd Wurst Ermögliche das Rücksetzen d...

Bernd Wurst authored 6 years ago

68)     
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

69) 
bernd Zeige Archivgröße der Maili...

bernd authored 12 years ago

70)     output("<tr><td{$style}><strong>{$list['listname']}</strong>@{$list['fqdn']}</td><td{$style}>{$list['admin']}</td><td>{$status}</td><td style=\"text-align: right;\">{$sizestr}</td>");
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

71)     if ($list['status'] == 'running')
Bernd Wurst Besseres Icon für Passwortä...

Bernd Wurst authored 6 years ago

72)       output("<td>".internal_link('save', other_icon("lock.png", "Neues Passwort anfordern"), "action=newpw&id={$list['id']}")." ".internal_link('save', icon_delete("Mailingliste löschen"), "action=delete&id={$list['id']}")." <a href=\"https://".config('mailman_host')."/mailman/admin.cgi/{$list['listname']}\">".other_icon("database_go.png", "Listen-Verwaltung aufrufen")."</a></td></tr>\n");
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

73)     else
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

74)       output("<td>&#160;</td></tr>\n");
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

75)   }
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

76)   output("</table>");
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

77) }
78) else
79) {
80)   // keine Listen
bernd hinweis zu Mailman-Domains...

bernd authored 14 years ago

81)   output('<p><em>Sie betreiben bisher keine Mailinglisten.</em></p>');
bernd Neues Modul für Mailman-Ver...

bernd authored 14 years ago

82) }
83) 
bernd addnew() eingeführt

bernd authored 14 years ago

84) addnew('newlist', 'Neue Mailingliste anlegen');
85) output("
bernd Hinweis zum periodischen Up...

bernd authored 12 years ago

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

Bernd Wurst authored 6 years ago

87) <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 />
bernd Hinweis zum periodischen Up...

bernd authored 12 years ago

88) <sup>2</sup>) Die Größe der Archive wird in regelmäßigen Abständen eingelesen. Der hier angezeigte Wert ist möglicherweise nicht mehr aktuell.</p>\n");