ec5ed2ed870b5374ab2c05502621d0c161c3c2d8
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 5 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/base.php");
bernd Newsletter-Modul nur für ei...

bernd authored 13 years ago

19) require_role(ROLE_CUSTOMER);
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

20) 
21) title("Newsletter");
22) 
23) output("<p>Mit unserem Newsletter informieren wir Sie unregelmäßig (typischer Weise maximal einmal im Monat) über Änderungen und neue Möglichkeiten bei schokokeks.org. Es handelt sich in der Regel um techniche Änderungen, geplante Wartungsarbeiten oder neue Möglichkeiten, die Ihren Benutzeraccount bei schokokeks.org betreffen.</p>");
bernd Momentan kann man nur eine...

bernd authored 13 years ago

24) //output("<p>Mehrere Adressen trennen Sie bitte durch Kommata voneinander.</p>");
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

25) 
26) $oldaddr = get_newsletter_address();
27) 
28) $yes = ' checked="checked" ';
29) $no = '';
30) if (! $oldaddr) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

31)     $yes = '';
32)     $no = ' checked="checked" ';
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

33) }
34) 
35) $form = '<p><input type="radio" id="newsletter_yes" name="newsletter" value="yes" '.$yes.' /> <label for="newsletter_yes">Newsletter soll gesendet werden an:</label> <input type="text" name="recipient" id="recipient" value="'.filter_input_general($oldaddr).'" maxlength="255" /></p>
36) <p><input type="radio" id="newsletter_no" name="newsletter" value="no" '.$no.' /> <label for="newsletter_no">Ich möchte gar keinen Newsletter erhalten.</label></p>
37) 
38) <p><input type="submit" value="Speichern" /></p>';
39) 
40) 
41) 
42) output(html_form("newsletter", "save.php", "", $form));
43) 
44) output("<h3>Vergangene Newsletter</h3>
Bernd Wurst Zeige Newsletter für zwei J...

Bernd Wurst authored 8 years ago

45) <p>Hier sehen Sie die Newsletter der vergangenen Jahre zum Nachlesen.</p>");
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

46) 
47) output("<ul>");
48) $news = get_latest_news();
49) foreach ($news as $item) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

50)     output("<li>".internal_link("read", $item['date'].': '.$item['subject'], "id=".$item['id'])."</li>");