Rudimentäres Newsletter-Arc...
bernd authored 13 years ago
|
1) <?php
|
Added license tags for CC0,...
Bernd Wurst authored 13 years ago
|
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4)
|
Copyright year update
Bernd Wurst authored 7 years ago
|
5) Written 2008-2018 by schokokeks.org Hosting, namely
|
Added license tags for CC0,...
Bernd Wurst authored 13 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)
|
Rudimentäres Newsletter-Arc...
bernd authored 13 years ago
|
17) require_once("includes/newsletter.php");
18) require_once("inc/base.php");
|
Newsletter-Modul nur für ei...
bernd authored 13 years ago
|
19) require_role(ROLE_CUSTOMER);
|
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>");
|
Momentan kann man nur eine...
bernd authored 13 years ago
|
24) //output("<p>Mehrere Adressen trennen Sie bitte durch Kommata voneinander.</p>");
|
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) {
31) $yes = '';
32) $no = ' checked="checked" ';
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>
|
Zeige Newsletter für zwei J...
Bernd Wurst authored 9 years ago
|
45) <p>Hier sehen Sie die Newsletter der vergangenen Jahre zum Nachlesen.</p>");
|