c42127d3cab5c78430e578a07038f54f8cdff459
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) 
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 6 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) */
16) 
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

17) require_once("includes/newsletter.php");
18) require_once("inc/security.php");
19) require_once("inc/base.php");
20) 
21) 
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

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

Hanno authored 6 years ago

23)     $sure = user_is_sure();
24)     if ($sure === null) {
25)         check_form_token('newsletter');
26)         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?");
27)     } elseif ($sure === true) {
28)         set_newsletter_address(null);
29)         if (! $debugmode) {
30)             header('Location: newsletter');
31)         }
32)     } elseif ($sure === false) {
33)         if (! $debugmode) {
34)             header('Location: newsletter');
35)         }
36)     }
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

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

Hanno authored 6 years ago

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

Bernd Wurst authored 5 years ago

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

Hanno authored 6 years ago

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