Hanno Böck 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. You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/ 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. */ require_once('inc/jquery.php'); require_once('inc/icons.php'); require_once('mailman.php'); require_role(ROLE_SYSTEMUSER); title('Mailinglisten'); output('

Mit Mailman bieten wir Ihnen eine umfangreiche Lösung für E-Mail-Verteilerlisten an.

Auf dieser Seite können Sie Ihre Mailinglisten verwalten.

'); $filter = ""; if (isset($_REQUEST['filter']) && $_REQUEST['filter'] != '') { $filter = $_REQUEST['filter']; } $lists = get_lists($filter); // Filter-Funktion if (count($lists) > 10 || $filter) { javascript(); $form = '

'; output(html_form('mailman_filter', 'lists', '', $form)); } if (! empty($lists)) { addnew('newlist', 'Neue Mailingliste anlegen'); output('
'); foreach ($lists as $list) { $size = $list['archivesize']; $sizestr = $size.' Bytes'; if (! $size) { $sizestr = 'Kein Archiv'; } else { $sizestr = sprintf('%.2f', $size/(1024*1024)).' MB'; } $class = 'regular'; $status = 'In Betrieb (erstellt am '.strftime('%d.%m.%Y', strtotime($list['created'])).')'; if ($list['status'] == 'delete') { $class = 'deleted'; $status = 'Wird gelöscht'; } elseif ($list['status'] == 'deleted') { # liste ist schon gelöscht continue } elseif ($list['status'] == 'pending') { $class = 'new'; $status = 'Wird angelegt'; } elseif ($list['status'] == 'newpw') { $class = 'edited'; $status = 'Neues Passwort angefordert'; } elseif ($list['status'] == 'failure') { $class = 'error'; $status = 'Fehler bei der Erstellung'; } $admin = str_replace(',', ', ', $list['admin']); $lastactivity = $list['lastactivity']; if (! $lastactivity || $lastactivity < '2000') { $lastactivity = 'nie'; } output("

{$list['listname']}@{$list['fqdn']}

Verwalter: {$admin}

Status: {$status}
Anzahl Mitglieder: {$list['subscribers']}
Letzte Nutzung: {$lastactivity}

Archivgröße: {$sizestr}

"); if ($list['status'] == 'running') { if ($list['backend'] == 'mailman' || $list['backend'] === null) { output("

". internal_link('save', other_icon("lock.png", "Neues Passwort anfordern").' Neues Passwort anfordern', "action=newpw&id={$list['id']}")."
". internal_link('save', icon_delete("Mailingliste löschen").' Liste löschen', "action=delete&id={$list['id']}")."
". "".other_icon("database_go.png", "Listen-Verwaltung aufrufen")." Verwaltung aufrufen". "

\n"); } elseif ($list['backend'] == 'mailman3') { output("

". internal_link('save', icon_delete("Mailingliste löschen").' Liste löschen', "action=delete&id={$list['id']}")."
". "".other_icon("database_go.png", "Listen-Verwaltung aufrufen")." Verwaltung aufrufen". "

\n"); } } output("
\n"); } output("
"); } else { // keine Listen output('

Sie betreiben bisher keine Mailinglisten.

'); } addnew('newlist', 'Neue Mailingliste anlegen'); output("

Hinweise:
1) Sie können später im Webinterface von Mailman einen abweichenden oder auch mehrere Verwalter eintragen. Die Information auf dieser Seite wird zyklisch synchronisiert.
2) Die Größe der Archive wird in regelmäßigen Abständen eingelesen. Der hier angezeigte Wert ist möglicherweise nicht mehr aktuell.

\n");