9086c9ad77db90633e0629e9e86a88366265ded0
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) 
Bernd Wurst Copyright year update

Bernd Wurst authored 6 years ago

5) Written 2008-2018 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) 
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) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

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) 
17) require_once('inc/debug.php');
18) require_once('inc/security.php');
19) require_once('inc/icons.php');
20) 
21) require_once('vmail.php');
22) 
23) $section = 'email_vmail';
24) require_role(array(ROLE_SYSTEMUSER));
25) 
26) if (! isset($_REQUEST['account'])) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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

Bernd Wurst authored 9 years ago

28) }
29) $id = $_REQUEST['account'];
30) $account = get_account_details($id);
31) 
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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

Bernd Wurst authored 9 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 9 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 9 years ago

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

Bernd Wurst authored 9 years ago

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

Bernd Wurst authored 9 years ago

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

Bernd Wurst authored 9 years ago

43) 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

44) <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>');
45) 
46) $form = "<h4>Text der Fehlermeldung</h4>".
47)   "<p><textarea cols=\"80\" rows=\"10\" name=\"smtpreply\" id=\"smtpreply\">{$account['smtpreply']}</textarea></p>";
48) 
Bernd Wurst Abbrechen-Link korrigiert

Bernd Wurst authored 9 years ago

49) $form .= '<p><input id="submit" type="submit" value="Speichern" />&#160;&#160;&#160;&#160;';
50) if ($suspended) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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

Bernd Wurst authored 9 years ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 9 years ago

54) }
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

55) output(html_form('vmail_edit_mailbox', 'save', 'action=suspend&id='.$id, $form));
56) 
57) if ($suspended) {
Hanno Fix coding style with php-c...

Hanno authored 5 years ago

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