dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 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) */
13) 
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

14) require_once("includes/newsletter.php");
15) require_once("inc/security.php");
16) require_once("inc/base.php");
17) 
18) 
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

19) if ((isset($_REQUEST['newsletter']) && $_REQUEST['newsletter'] == 'no') || (isset($_REQUEST['recipient']) && $_REQUEST['recipient'] == "")) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

20)     $sure = user_is_sure();
21)     if ($sure === null) {
22)         check_form_token('newsletter');
23)         are_you_sure("newsletter=no", "Wenn Sie keinen Newsletter abonnieren, erhalten Sie von uns keine Informationen zu laufenden Änderungen bei schokokeks.org. Beachten Sie bitte dennoch regelmäßig die Einträge auf dieser Website, unser Weblog und unsere Status-Seite. Möchten Sie den Newsletter wirklich abbestellen?");
24)     } elseif ($sure === true) {
25)         set_newsletter_address(null);
26)         if (! $debugmode) {
27)             header('Location: newsletter');
28)         }
29)     } elseif ($sure === false) {
30)         if (! $debugmode) {
31)             header('Location: newsletter');
32)         }
33)     }
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

34) } else {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

35)     check_form_token('newsletter');
Bernd Wurst Umstellung von filter_input...

Bernd Wurst authored 4 years ago

36)     if (! check_emailaddr($_REQUEST['recipient'])) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

37)         system_failure("Keine gültige E-Mail-Adresse!");
38)     }
39)     set_newsletter_address($_REQUEST['recipient']);
40)     if (! $debugmode) {
41)         header('Location: newsletter');
42)     }