86a998cc45a0bc186446c40ca878b3f57df85795
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

1) <?php
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 SMTP-seitige Autoresponder...

Bernd Wurst authored 9 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 SMTP-seitige Autoresponder...

Bernd Wurst authored 9 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) 
14) require_once('inc/debug.php');
15) require_once('inc/security.php');
16) require_once('inc/icons.php');
17) 
18) require_once('vmail.php');
19) 
20) $section = 'email_vmail';
Hanno Böck Codingstyle PSR12 + array s...

Hanno Böck authored 2 years ago

21) require_role([ROLE_SYSTEMUSER]);
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

22) 
Hanno Böck Fix not operator (!) spaces

Hanno Böck authored 6 months ago

23) if (!isset($_REQUEST['account'])) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

24)     system_failure("Fehler beim Aufruf dieser Seite");
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

25) }
26) $id = $_REQUEST['account'];
27) $account = get_account_details($id);
28) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

29) $suspended = false;
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

30) if ($account['smtpreply']) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

31)     $suspended = true;
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

32) } else {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

33)     $account['smtpreply'] = 'Diese E-Mail-Adresse wird nicht mehr verwendet. 
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

34) 
35) Bitte besuchen Sie unsere Website um eine aktuelle Kontaktmöglichkeit zu finden.';
36) }
37) 
Bernd Wurst Update auf nicht mehr so ne...

Bernd Wurst authored 9 years ago

38) title("E-Mail-Adresse stilllegen");
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

39) 
Bernd Wurst Update auf nicht mehr so ne...

Bernd Wurst authored 9 years ago

40) output('<p>Mit dieser Funktion können Sie eine E-Mail-Adresse stilllegen (so werden keine Nachrichten für diese Adresse angenommen) und dabei dem Absender einen eigenen, hier festgelegten Fehlertext zukommen lassen. Diese Methode hat nicht die Probleme, die ein klassische Autoresponder verursacht, da keine Antwort-E-Mails versendet werden. Der Absender erhält von seinem Mail-Server eine Fehlermeldung mit dem entsprechenden Text.</p>
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

41) <p><strong>Wichtig:</strong> Dieses Verfahren funktioniert nur, wenn die E-Mails wirklich nicht angenommen werden (Annahme wird verweigert), somit sind keine Weiterleitung und keine Speicherung möglich. Sie können aber natürlich im Text auf eine andere E-Mail-Adresse hinweisen.</p>');
42) 
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

43) $form = "<h4>Text der Fehlermeldung</h4>" .
44)   "<p><textarea cols=\"80\" rows=\"10\" name=\"smtpreply\" id=\"smtpreply\">" . filter_output_html($account['smtpreply']) . "</textarea></p>";
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

45) 
Hanno Böck Remaining HTML fixes email,...

Hanno Böck authored 3 months ago

46) $form .= '<p><input id="submit" type="submit" value="Speichern">&#160;&#160;&#160;&#160;';
Bernd Wurst Abbrechen-Link korrigiert

Bernd Wurst authored 9 years ago

47) if ($suspended) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

48)     $form .= internal_link('vmail', 'Abbrechen') . '</p>';
Bernd Wurst Abbrechen-Link korrigiert

Bernd Wurst authored 9 years ago

49) } else {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

50)     $form .= internal_link('edit', 'Abbrechen', "id=" . $id) . '</p>';
Bernd Wurst Abbrechen-Link korrigiert

Bernd Wurst authored 9 years ago

51) }
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

52) output(html_form('vmail_edit_mailbox', 'save', 'action=suspend&id=' . $id, $form));
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

53) 
54) if ($suspended) {
Hanno Böck Spaces between string conca...

Hanno Böck authored 6 months ago

55)     output("<p><strong>" . internal_link('save', 'Stilllegung aufheben', 'action=unsuspend&id=' . $account['id']) . "</strong></p>");