0f4e83a18999053f547adf7a2c9129717f71833e
bernd Großer VMail-move

bernd authored 16 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 2 years 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 2 years 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) */
bernd Großer VMail-move

bernd authored 16 years ago

13) 
14) require_once('session/start.php');
15) require_once('vmail.php');
16) 
17) require_once("inc/debug.php");
18) global $debugmode;
19) 
20) require_role(ROLE_SYSTEMUSER);
21) 
22) check_form_token('vmail_domainchange');
23) 
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 10 years ago

24) foreach ($_POST as $key => $value) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

25)     if (strpos($key, "option-") === 0) {
26)         $id = substr($key, 7);
27)         $type = 'virtual';
28)         if ($value == 'manual') {
29)             $type = 'auto';
30)         } elseif ($value == 'off') {
31)             $type = 'none';
Bernd Wurst Erster Entwurf nomail-Feature

Bernd Wurst authored 1 year ago

32)         } elseif ($value == 'nomail') {
33)             $type = 'nomail';
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

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

Hanno Böck authored 1 year ago

35)         DEBUG('MAILCONFIG change request for id #' . $id . ' to ' . $value);
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

36)         change_domain($id, $type);
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 10 years ago

37)     }
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 1 year ago

38)     if (strpos($key, "dkim-") === 0) {
39)         $id = substr($key, 5);
40)         $type = 'none';
41)         if ($value == 'dkim') {
42)             $type = 'dkim';
43)         } elseif ($value == 'dmarc') {
44)             $type = 'dmarc';
45)         }
Hanno Böck Spaces between string conca...

Hanno Böck authored 1 year ago

46)         DEBUG('DKIM change request for id #' . $id . ' to ' . $value);
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 1 year ago

47)         change_domain_dkim($id, $type);
48)     }
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 10 years ago

49) }
bernd Großer VMail-move

bernd authored 16 years ago

50) 
51) if (!$debugmode) {
Hanno Fix coding style with php-c...

Hanno authored 6 years ago

52)     header('Location: domains');
53)     die();