modules/email/domainchange.php
8d3da690
 <?php
 
 require_once('session/start.php');
 require_once('vmail.php');
 
 require_once("inc/debug.php");
 global $debugmode;
 
 require_role(ROLE_SYSTEMUSER);
 
 check_form_token('vmail_domainchange');
 
 if (! $_POST['type'] || ! $_POST['id'])
   system_failure("Unvollständige POST-Daten");
 
 change_domain($_POST['id'], $_POST['type']);
 
 if (!$debugmode) {
63a0529b
   header('Location: domains');
8d3da690
   die();
 }