28667e96bdcc072a7485ff50021f54f555c59ea3
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 2 years 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 2 years 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 6 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);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

26)         if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

27)             header('Location: newsletter');
28)         }
29)     } elseif ($sure === false) {
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

30)         if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

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 6 years ago

35)     check_form_token('newsletter');
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

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

Hanno authored 6 years ago

37)         system_failure("Keine gültige E-Mail-Adresse!");
38)     }
39)     set_newsletter_address($_REQUEST['recipient']);
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 1 year ago

40)     if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

41)         header('Location: newsletter');
42)     }