dcc202fb249a446ac15c7cf413b9f1b4a3f31b58
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';
32)         }
33)         DEBUG('change request for id #'.$id.' to '.$value);
34)         change_domain($id, $type);
Bernd Wurst Redesign der Domain-Mail-Ve...

Bernd Wurst authored 10 years ago

35)     }
36) }
bernd Großer VMail-move

bernd authored 16 years ago

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

Hanno authored 6 years ago

39)     header('Location: domains');
40)     die();