c7bd11a7e0846631a6572b8eced34d7fe4645c67
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 Allgemeinere Formulierungen...

bernd authored 13 years ago

10) output('<p>Mit <a href="http://www.mailman.org">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 zu Mailman-Domains...

bernd authored 15 years ago

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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

32)     }
bernd Bugfix und Fehler-Status

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

38) 
bernd hinweis zu Mailman-Domains...

bernd authored 15 years ago

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

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

bernd authored 14 years ago

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

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 15 years ago

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

bernd authored 14 years ago

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

bernd authored 14 years ago

55) <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");