6efb0f7feaf975fbd8f244a819a24166901cad85
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

1) <?php
2) 
3) require_once('inc/base.php');
4) require_once('mailman.php');
5) 
6) require_role(ROLE_SYSTEMUSER);
7) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 15 years ago

9) 
bernd Mailman-URL war falsch

bernd authored 12 years ago

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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

13) 
14) $lists = get_lists();
15) 
16) if (! empty($lists))
17) {
bernd Hinweis zum periodischen Up...

bernd authored 12 years ago

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

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

bernd authored 12 years ago

21)     $size = $list['archivesize'];
22)     $sizestr = $size.' Bytes';
23)     if (! $size) {
24)       $sizestr = '<em>Kein Archiv</em>';
25)     }
26)     else {
27)       $sizestr = sprintf('%.2f', $size/(1024*1024)).' MB';
28)     }
29) 
30) 
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

31)     $style = '';
32)     $status = 'In Betrieb';
33)     if ($list['status'] == 'delete')
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

42)     }
bernd Bugfix und Fehler-Status

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 12 years ago

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

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

bernd authored 14 years ago

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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

56) }
57) else
58) {
59)   // keine Listen
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

bernd authored 15 years ago

61) }
62) 
bernd addnew() eingeführt

bernd authored 14 years ago

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

bernd authored 12 years ago

65) <p><strong>Hinweise:</strong><br />
66) <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 />
67) <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");