<?php
/*
This file belongs to the Webinterface of schokokeks.org Hosting
Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst <bernd@schokokeks.org>
Hanno Böck <hanno@schokokeks.org>
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('<div class="warning">
<p><strong>Bitte beachten Sie: Der Mailinglisten-Dienst wird zum Jahresende 2022 eingestellt. Das Anlegen neuer Listen ist nicht mehr möglich.<br>
Wenden Sie sich bitte frühzeitig an den Support, wenn Sie Unterstützung beim Umzug zu einem anderen Dienstleister benötigen.</strong></p>
</div>');
output('<p>Mit <a href="https://www.gnu.org/software/mailman/index.html">Mailman</a> bieten wir Ihnen eine umfangreiche Lösung für E-Mail-Verteilerlisten an.</p>
<p>Auf dieser Seite können Sie Ihre Mailinglisten verwalten.</p>
');
$filter = "";
if (isset($_REQUEST['filter']) && $_REQUEST['filter'] != '') {
$filter = $_REQUEST['filter'];
}
$lists = get_lists($filter);
// Filter-Funktion
if (count($lists) > 10 || $filter) {
javascript();
$form = '<p><label for="filter">Filter für die Anzeige:</label> <input type="text" name="filter" id="filter" value="'.filter_output_html($filter).'"><button type="button" id="clear" title="Filter leeren">×</button><input type="submit" value="Filtern!"></p>';
output(html_form('mailman_filter', 'lists', '', $form));
}
if (! empty($lists)) {
#addnew('newlist', 'Neue Mailingliste anlegen');
output('<div id="mailman_lists_container">');