354c05a4ddd678c49bcbba458bffa7d13482139a
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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

5) Written 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) 
Hanno Böck Change license from CC0 to...

Hanno Böck authored 1 year ago

9) This code is published under a 0BSD license.
Bernd Wurst Added license tags for CC0,...

Bernd Wurst authored 12 years ago

10) 
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.
12) */
13) 
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

14) require_once("includes/newsletter.php");
15) require_once("inc/base.php");
bernd Newsletter-Modul nur für ei...

bernd authored 13 years ago

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

bernd authored 13 years ago

17) 
18) title("Newsletter");
19) 
20) 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

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

bernd authored 13 years ago

22) 
23) $oldaddr = get_newsletter_address();
24) 
25) $yes = ' checked="checked" ';
26) $no = '';
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

27) if (!$oldaddr) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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

bernd authored 13 years ago

30) }
31) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

32) $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>
33) <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>
bernd Rudimentäres Newsletter-Arc...

bernd authored 13 years ago

34) 
35) <p><input type="submit" value="Speichern" /></p>';
36) 
37) 
38) 
39) output(html_form("newsletter", "save.php", "", $form));
40) 
41) output("<h3>Vergangene Newsletter</h3>
Bernd Wurst Zeige Newsletter für zwei J...

Bernd Wurst authored 8 years ago

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

bernd authored 13 years ago

43) 
44) output("<ul>");
45) $news = get_latest_news();
46) foreach ($news as $item) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

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