354c05a4ddd678c49bcbba458bffa7d13482139a
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
11) 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.
12) */
bernd Neues Modul: Kann greylisti...

bernd authored 16 years ago

13) 
14) require_once('inc/debug.php');
15) require_once('inc/security.php');
16) 
17) require_once('greylisting.php');
18) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 16 years ago

20) 
21) require_role(ROLE_SYSTEMUSER);
22) 
23) $whitelist = whitelist_entries();
24) DEBUG($whitelist);
25) 
bernd Benutze überall title() sta...

bernd authored 13 years ago

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

bernd authored 16 years ago

27) setzen wir Greylisting ein. Diese Technik arbeitet sehr erfolgreich bei vergleichsweise
28) geringem Aufwand.</p>
29) <p>Ein möglicher Nachteil für den Empfänger besteht allerdings darin, dass E-Mails 
30) von einem eigentlich legitimen Absender, der an keinen unserer Benutzer bisher
31) E-Mails gesendet hat, einige Zeit verspätet zugestellt werden.</p>
32) <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

33) mit Ihrer E-Mail-Adresse anmelden möchten oder ähnliches, dann können Sie hier <strong>Ihre 
34) 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

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

bernd authored 13 years ago

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

42)     ";
43) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

44) foreach ($whitelist as $entry) {
45)     $end = $entry['expire'];
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

46)     if (!$end) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

47)         $end = '<em>unbegrenzt</em>';
48)     }
49)     $local = $entry['local'];
50)     if (empty($local)) {
51)         $local = '*';
52)     }
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

53)     $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

54) }
55) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

56) $form .= '<tr><td><input type="text" name="address" /></td><td>-</td><td>' . html_select('expire', ['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

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

bernd authored 15 years ago

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