... | ... |
@@ -2,14 +2,11 @@ |
2 | 2 |
/* |
3 | 3 |
This file belongs to the Webinterface of schokokeks.org Hosting |
4 | 4 |
|
5 |
-Written 2008-2018 by schokokeks.org Hosting, namely |
|
5 |
+Written by schokokeks.org Hosting, namely |
|
6 | 6 |
Bernd Wurst <bernd@schokokeks.org> |
7 | 7 |
Hanno Böck <hanno@schokokeks.org> |
8 | 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/ |
|
9 |
+This code is published under a 0BSD license. |
|
13 | 10 |
|
14 | 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. |
15 | 12 |
*/ |
... | ... |
@@ -32,7 +32,7 @@ if (! $oldaddr) { |
32 | 32 |
$no = ' checked="checked" '; |
33 | 33 |
} |
34 | 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> |
|
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_output_html($oldaddr).'" maxlength="255" /></p> |
|
36 | 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 | 37 |
|
38 | 38 |
<p><input type="submit" value="Speichern" /></p>'; |
... | ... |
@@ -47,6 +47,6 @@ output("<h3>Vergangene Newsletter</h3> |
47 | 47 |
output("<ul>"); |
48 | 48 |
$news = get_latest_news(); |
49 | 49 |
foreach ($news as $item) { |
50 |
- output("<li>".internal_link("read", $item['date'].': '.$item['subject'], "id=".$item['id'])."</li>"); |
|
50 |
+ output("<li>".internal_link("read", $item['date'].': '.filter_output_html($item['subject']), "id=".$item['id'])."</li>"); |
|
51 | 51 |
} |
52 | 52 |
output("</ul>"); |
... | ... |
@@ -8,7 +8,7 @@ Written 2008-2018 by schokokeks.org Hosting, namely |
8 | 8 |
|
9 | 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 | 10 |
|
11 |
-You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
11 |
+You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see |
|
12 | 12 |
http://creativecommons.org/publicdomain/zero/1.0/ |
13 | 13 |
|
14 | 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. |
... | ... |
@@ -28,8 +28,8 @@ $oldaddr = get_newsletter_address(); |
28 | 28 |
$yes = ' checked="checked" '; |
29 | 29 |
$no = ''; |
30 | 30 |
if (! $oldaddr) { |
31 |
- $yes = ''; |
|
32 |
- $no = ' checked="checked" '; |
|
31 |
+ $yes = ''; |
|
32 |
+ $no = ' checked="checked" '; |
|
33 | 33 |
} |
34 | 34 |
|
35 | 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> |
... | ... |
@@ -47,9 +47,6 @@ output("<h3>Vergangene Newsletter</h3> |
47 | 47 |
output("<ul>"); |
48 | 48 |
$news = get_latest_news(); |
49 | 49 |
foreach ($news as $item) { |
50 |
- output("<li>".internal_link("read", $item['date'].': '.$item['subject'], "id=".$item['id'])."</li>"); |
|
50 |
+ output("<li>".internal_link("read", $item['date'].': '.$item['subject'], "id=".$item['id'])."</li>"); |
|
51 | 51 |
} |
52 | 52 |
output("</ul>"); |
53 |
- |
|
54 |
- |
|
55 |
- |
... | ... |
@@ -42,7 +42,7 @@ $form = '<p><input type="radio" id="newsletter_yes" name="newsletter" value="yes |
42 | 42 |
output(html_form("newsletter", "save.php", "", $form)); |
43 | 43 |
|
44 | 44 |
output("<h3>Vergangene Newsletter</h3> |
45 |
-<p>Hier sehen Sie die Newsletter des vergangenen Jahres zum Nachlesen.</p>"); |
|
45 |
+<p>Hier sehen Sie die Newsletter der vergangenen Jahre zum Nachlesen.</p>"); |
|
46 | 46 |
|
47 | 47 |
output("<ul>"); |
48 | 48 |
$news = get_latest_news(); |
... | ... |
@@ -1,4 +1,19 @@ |
1 | 1 |
<?php |
2 |
+/* |
|
3 |
+This file belongs to the Webinterface of schokokeks.org Hosting |
|
4 |
+ |
|
5 |
+Written 2008-2012 by schokokeks.org Hosting, namely |
|
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 |
+ |
|
2 | 17 |
require_once("includes/newsletter.php"); |
3 | 18 |
require_once("inc/base.php"); |
4 | 19 |
require_role(ROLE_CUSTOMER); |
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1977 87cf0b9e-d624-0410-a070-f6ee81989793
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1965 87cf0b9e-d624-0410-a070-f6ee81989793
... | ... |
@@ -5,7 +5,7 @@ require_once("inc/base.php"); |
5 | 5 |
title("Newsletter"); |
6 | 6 |
|
7 | 7 |
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>"); |
8 |
-output("<p>Mehrere Adressen trennen Sie bitte durch Kommata voneinander.</p>"); |
|
8 |
+//output("<p>Mehrere Adressen trennen Sie bitte durch Kommata voneinander.</p>"); |
|
9 | 9 |
|
10 | 10 |
$oldaddr = get_newsletter_address(); |
11 | 11 |
|
git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1964 87cf0b9e-d624-0410-a070-f6ee81989793
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,39 @@ |
1 |
+<?php |
|
2 |
+require_once("includes/newsletter.php"); |
|
3 |
+require_once("inc/base.php"); |
|
4 |
+ |
|
5 |
+title("Newsletter"); |
|
6 |
+ |
|
7 |
+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>"); |
|
8 |
+output("<p>Mehrere Adressen trennen Sie bitte durch Kommata voneinander.</p>"); |
|
9 |
+ |
|
10 |
+$oldaddr = get_newsletter_address(); |
|
11 |
+ |
|
12 |
+$yes = ' checked="checked" '; |
|
13 |
+$no = ''; |
|
14 |
+if (! $oldaddr) { |
|
15 |
+ $yes = ''; |
|
16 |
+ $no = ' checked="checked" '; |
|
17 |
+} |
|
18 |
+ |
|
19 |
+$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> |
|
20 |
+<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> |
|
21 |
+ |
|
22 |
+<p><input type="submit" value="Speichern" /></p>'; |
|
23 |
+ |
|
24 |
+ |
|
25 |
+ |
|
26 |
+output(html_form("newsletter", "save.php", "", $form)); |
|
27 |
+ |
|
28 |
+output("<h3>Vergangene Newsletter</h3> |
|
29 |
+<p>Hier sehen Sie die Newsletter des vergangenen Jahres zum Nachlesen.</p>"); |
|
30 |
+ |
|
31 |
+output("<ul>"); |
|
32 |
+$news = get_latest_news(); |
|
33 |
+foreach ($news as $item) { |
|
34 |
+ output("<li>".internal_link("read", $item['date'].': '.$item['subject'], "id=".$item['id'])."</li>"); |
|
35 |
+} |
|
36 |
+output("</ul>"); |
|
37 |
+ |
|
38 |
+ |
|
39 |
+ |