01d168580c1be287606910d743dc2935b31fa8aa
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

1) <?php
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 by schokokeks.org Hosting, namely
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) 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.
10) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) 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.
15) */
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

16) 
17) require_once('inc/debug.php');
18) require_once('inc/security.php');
19) 
20) require_once('greylisting.php');
21) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

22) title("Ausnahmeliste für Greylisting");
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

23) 
24) require_role(ROLE_SYSTEMUSER);
25) 
26) $whitelist = whitelist_entries();
27) DEBUG($whitelist);
28) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

29) output("<p>Als mittlerweile sehr bewährte Methode gegen unerwünschte E-Mails (»Spam«)
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

30) setzen wir Greylisting ein. Diese Technik arbeitet sehr erfolgreich bei vergleichsweise
31) geringem Aufwand.</p>
32) <p>Ein möglicher Nachteil für den Empfänger besteht allerdings darin, dass E-Mails 
33) von einem eigentlich legitimen Absender, der an keinen unserer Benutzer bisher
34) E-Mails gesendet hat, einige Zeit verspätet zugestellt werden.</p>
35) <p>Sofern Sie eine derartige E-Mail erwarten, also z.B. sich auf einer fremden Website
bernd UI-Verbesserungen Greylisting

bernd authored 13 years ago

36) mit Ihrer E-Mail-Adresse anmelden möchten oder ähnliches, dann können Sie hier <strong>Ihre 
37) E-Mail-Adresse</strong> eintragen. E-Mails an diese Adresse werden dann umgehend zugestellt.</p>
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

38) <p>Dabei können Sie Adressen wahlweise nur kurzzeitig oder dauerhaft vom Greylisting ausnehmen. 
39) Sie können auch lediglich einen Domainnamen angeben, dann sind sämtliche Adressen innerhalb 
40) dieser Domain ausgenommen.</p>
41) ");
42) 
43) $form = "<table>
bernd UI-Verbesserungen Greylisting

bernd authored 13 years ago

44)     <tr><th>Empfänger-Adresse</th><th>seit</th><th>bis</th><th> </th></tr>
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

45)     ";
46) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

47) foreach ($whitelist as $entry) {
48)     $end = $entry['expire'];
49)     if (! $end) {
50)         $end = '<em>unbegrenzt</em>';
51)     }
52)     $local = $entry['local'];
53)     if (empty($local)) {
54)         $local = '*';
55)     }
56)     $form .= "<tr><td>{$local}@{$entry['domain']}</td><td>{$entry['date']}</td><td>{$end}</td><td>".internal_link("save", "<img src=\"{$prefix}images/delete.png\" alt=\"Eintrag löschen\" title=\"Diesen Eintrag löschen\" style=\"width: 16px; height: 16px;\" />", "action=delete&id={$entry['id']}")."</td></tr>\n";
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

57) }
58) 
bernd 30 Tage greylisting-ausnahmen

bernd authored 14 years ago

59) $form .= '<tr><td><input type="text" name="address" /></td><td>-</td><td>'.html_select('expire', array('none' => 'Unbegrenzt', '30' => '30 Minuten', '60' => '1 Stunde', '720' => '12 Stunden', '1440' => '1 Tag', '2880' => '2 Tage', '10080' => '1 Woche', '43200' => '30 Tage'), '1440').'</td><td></td></tr>';
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

60) 
61) $form .= '</table>';
62) 
63) $form .= '<p><input type="submit" value="Speichern" /></p>';
64) 
bernd eliminate .php extensions f...

bernd authored 15 years ago

65) output(html_form('greylisting_add', 'save', 'action=add', $form));