Browse code

Umstellung von filter_input_general() auf filter_output_html()

Bernd Wurst authored on 21/09/2019 17:07:48
Showing 1 changed files
... ...
@@ -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>");
Browse code

Fix coding style with php-cs-checker, see https://cs.sensiolabs.org/

Hanno authored on 26/06/2018 13:58:19
Showing 1 changed files
... ...
@@ -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
-
Browse code

Copyright year update

Bernd Wurst authored on 13/01/2018 06:07:05
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2014 by schokokeks.org Hosting, namely
5
+Written 2008-2018 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Zeige Newsletter für zwei Jahre zurück

Bernd Wurst authored on 19/02/2016 05:00:42
Showing 1 changed files
... ...
@@ -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();
Browse code

Lizenzinfos in eigenes Modul ausgelagert und Copyright auf 2014 angepasst

Bernd Wurst authored on 08/02/2014 05:45:07
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2013 by schokokeks.org Hosting, namely
5
+Written 2008-2014 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Updated copyright notice (2012 => 2013)

Bernd Wurst authored on 19/01/2013 10:49:50
Showing 1 changed files
... ...
@@ -2,7 +2,7 @@
2 2
 /*
3 3
 This file belongs to the Webinterface of schokokeks.org Hosting
4 4
 
5
-Written 2008-2012 by schokokeks.org Hosting, namely
5
+Written 2008-2013 by schokokeks.org Hosting, namely
6 6
   Bernd Wurst <bernd@schokokeks.org>
7 7
   Hanno Böck <hanno@schokokeks.org>
8 8
 
Browse code

Added license tags for CC0, README and COPYING

Bernd Wurst authored on 11/03/2012 15:40:04
Showing 1 changed files
... ...
@@ -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);
Browse code

Newsletter-Modul nur für eingeloggte Kunden

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1977 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on 14/04/2011 17:47:53
Showing 1 changed files
... ...
@@ -1,6 +1,7 @@
1 1
 <?php
2 2
 require_once("includes/newsletter.php");
3 3
 require_once("inc/base.php");
4
+require_role(ROLE_CUSTOMER);
4 5
 
5 6
 title("Newsletter");
6 7
 
Browse code

Momentan kann man nur eine Adresse angeben

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1965 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on 30/03/2011 17:48:15
Showing 1 changed files
... ...
@@ -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
 
Browse code

Rudimentäres Newsletter-Archiv-Modul. Versand des Newsletters fehlt komplett.

git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1964 87cf0b9e-d624-0410-a070-f6ee81989793

bernd authored on 30/03/2011 16:59:34
Showing 1 changed files
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
+