5effc2bd7685822df276c1372dab480cff321941
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 Lizenzinfos in eigenes Modu...

Bernd Wurst authored 10 years ago

5) Written 2008-2014 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) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
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'] == "")) {
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

23)   $sure = user_is_sure();
24)   if ($sure === NULL)
25)   {
26)     check_form_token('newsletter');
27)     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?");
28)   }
29)   elseif ($sure === true)
30)   {
31)     set_newsletter_address(NULL);
32)     if (! $debugmode)
33)       header('Location: newsletter');
34)   }
35)   elseif ($sure === false)
36)   {
37)     if (! $debugmode)
38)       header('Location: newsletter');
39)   }
40) } else {
41)   check_form_token('newsletter');
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

42)   if (! check_emailaddr($_REQUEST['recipient']) || filter_input_general($_REQUEST['recipient']) != $_REQUEST['recipient']) {
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

43)     system_failure("Keine gültige E-Mail-Adresse!");
44)   }
Bernd Wurst * Weitere Module auf prepar...

Bernd Wurst authored 10 years ago

45)   set_newsletter_address($_REQUEST['recipient']);