$_POST['spamfilter_action_'.$num], "destination" => $_POST['forward_to_'.$num]); array_push($account['forwards'], $fwd); $num++; } if ($num == 1) system_failure("Bitte mindestens eine Weiterleitungsadresse angeben."); } if (($_POST['forward']!='yes') && ($_POST['mailbox']!='yes')) system_failure("Entweder eine Mailbox oder eine Weiterleitung muss angegeben werden!"); DEBUG($account); save_vmail_account($account); if (! ($debugmode || we_have_an_error())) header('Location: vmail'); } elseif ($_GET['action'] == 'delete') { $title = "E-mail-Adresse löschen"; $section = 'vmail_vmail'; $account = get_account_details( (int) $_GET['id'] ); $domain = NULL; $domains = get_vmail_domains(); foreach ($domains as $dom) if ($dom->id == $account['domain']) { $domain = $dom->domainname; break; } $account_string = $account['local'] . "@" . $domain; $sure = user_is_sure(); if ($sure === NULL) { are_you_sure("action=delete&id={$account['id']}", "Möchten Sie die E-Mail-Adresse »{$account_string}« wirklich löschen?"); } elseif ($sure === true) { delete_account($account['id']); if (! $debugmode) header("Location: vmail"); } elseif ($sure === false) { if (! $debugmode) header("Location: vmail"); } } else system_failure("Unimplemented action"); output(''); ?>