c208bd906b3991555db11b9229846c4601ca408c
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) 
5) Written 2008-2012 by schokokeks.org Hosting, namely
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 15 years ago

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

bernd authored 13 years ago

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

bernd authored 15 years ago

23) 
bernd Mailman-URL war falsch

bernd authored 12 years ago

24) output('<p>Mit <a href="http://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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 12 years ago

32)   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 15 years ago

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

bernd authored 12 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

56)     }
bernd Bugfix und Fehler-Status

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 12 years ago

63)     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 15 years ago

64)     if ($list['status'] == 'running')
bernd Tag-Verschachtelungsfehler

bernd authored 14 years ago

65)       output("<td>".internal_link('save', "<img src=\"{$prefix}images/delete.png\" />", "action=delete&id={$list['id']}")."</td></tr>\n");
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

70) }
71) else
72) {
73)   // keine Listen
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

bernd authored 15 years ago

75) }
76) 
bernd addnew() eingeführt

bernd authored 14 years ago

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

bernd authored 12 years ago

79) <p><strong>Hinweise:</strong><br />
80) <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 dann nicht automatisch geändert sondern bezeichnet den Verwalter, den Sie beim Anlegen der Liste benannt haben.<br />
81) <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");