bernd
* alle internen Links sinnvoll (und gleichartig!) encoden * Automatischer Upgrader für Drupal funktioniert jetzt
bernd commited d5f2f3f at 2009-03-07 14:48:53
<?php
require_once('session/start.php');
require_once('vmail.php');
require_role(ROLE_SYSTEMUSER);
require_once("inc/debug.php");
global $debugmode;
if ($_GET['action'] == 'edit')
{
check_form_token('vmail_edit_mailbox');
$id = (int) $_GET['id'];
$account = empty_account();
$account['id'] = NULL;
if ($id)
$account['id'] = $id;
$account['local'] = $_POST['local'];
$account['domain'] = (int) $_POST['domain'];
$account['spamfilter'] = $_POST['spamfilter_action'];
$account['password'] = $_POST['password'];
if (($account['password'] == '') && ($_POST['mailbox'] == 'yes'))
system_failure("Sie haben ein leeres Passwort eingegeben!");
if ($_POST['password'] == '**********')
$account['password'] = '';
if ($_POST['mailbox'] != 'yes')
{
$account['password'] = NULL;
$account['spamfilter'] = 'none';
}
if ($_POST['forward'] == 'yes')
{
$num = 1;
while (true)
{
if (! isset($_POST['forward_to_'.$num]))
break;
if ($_POST['forward_to_'.$num] == '')
break;
$fwd = array("spamfilter" => $_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.");
}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX