4b0ce369d7f552fce07730cfb56a7dd6324c9a95
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 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) */
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 9 years ago

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

Hanno authored 5 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';
32)         }
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 11 months ago

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

Hanno authored 5 years ago

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

Bernd Wurst authored 9 years ago

35)     }
Bernd Wurst DKIM-Auswahl eingebaut

Bernd Wurst authored 11 months ago

36)     if (strpos($key, "dkim-") === 0) {
37)         $id = substr($key, 5);
38)         $type = 'none';
39)         if ($value == 'dkim') {
40)             $type = 'dkim';
41)         } elseif ($value == 'dmarc') {
42)             $type = 'dmarc';
43)         }
44)         DEBUG('DKIM change request for id #'.$id.' to '.$value);
45)         change_domain_dkim($id, $type);
46)     }
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 9 years ago

47) }
bernd Großer VMail-move

bernd authored 16 years ago

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

Hanno authored 5 years ago

50)     header('Location: domains');
51)     die();