654590762f73470f9cc61b17ad0fab4cdf424ef2
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) 
8) $title = 'Mailinglisten';
9) 
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

10) output('<h3>Mailinglisten</h3>
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

11) <p>Mit <a href="http://www.mailman.org">Mailman</a> bieten wir Ihnen eine umfangreiche Lösung für E-Mail-Verteilerlisten an. <a href="https://wiki.schokokeks.org/E-Mail/Mailinglisten">In unserem Wiki</a> sind die Möglichkeiten einer Mailingliste detaillierter beschrieben.</p>
12) <p>Auf dieser Seite können Sie Ihre Mailinglisten verwalten.</p>
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

bernd authored 15 years ago

14) 
15) $lists = get_lists();
16) 
17) if (! empty($lists))
18) {
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

19)   output("<table>\n<tr><th>Listenname</th><th>Verwalter</th><th>Status</th><th>&nbsp;</th></tr>\n");
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

20)   foreach ($lists AS $list)
21)   {
22)     $style = '';
23)     $status = 'In Betrieb';
24)     if ($list['status'] == 'delete')
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

33)     }
bernd Bugfix und Fehler-Status

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

39) 
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

40)     output("<tr><td{$style}><strong>{$list['listname']}</strong>@{$list['fqdn']}</td><td{$style}>{$list['admin']}</td><td>{$status}</td>");
bernd Neues Modul für Mailman-Ver...

bernd authored 15 years ago

41)     if ($list['status'] == 'running')
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

47) }
48) else
49) {
50)   // keine Listen
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

bernd authored 15 years ago

52) }
53) 
bernd addnew() eingeführt

bernd authored 14 years ago

54) addnew('newlist', 'Neue Mailingliste anlegen');
55) output("
bernd Formulierung

bernd authored 14 years ago

56) <p><strong>Hinweis:</strong> 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.</p>\n");