hanno
XML-Fehler
hanno commited 9019452 at 2007-08-09 19:14:43
<?php
require_once('session/start.php');
require_once('class/domain.php');
require_once('mailaccounts.php');
require_role(ROLE_SYSTEMUSER);
$user = $_SESSION['userinfo'];
$title = "E-Mail-Accounts";
if (isset($_GET['action']) && $_GET['action'] == 'save')
{
if (isset($_GET['id']))
{
check_form_token('imap_accounts_edit');
$account = $_POST['user'].'@'.$_POST['domain'];
if (isset($_POST['enabled']) && $_POST['enabled'] == 'true')
$enabled = 'Y';
else
$enabled = 'N';
$acc = array('id' => $_GET['id'], 'account' => $account, 'mailbox' => $_POST['mailbox'], 'enabled' => $enabled);
if ($_POST['password'] != '')
$acc['password'] = $_POST['password'];
$error = check_valid($acc);
if ($error != "")
{
input_error($error);
$title = "E-Mail-Accounts";
output("");
}
else
{
change_mailaccount($_GET['id'], $acc);
if (! $debugmode)
header('Location: accounts.php');
die();
}
}
elseif (isset($_POST['create']))
{
check_form_token('imap_accounts_create');
$account = $_POST['user'].'@'.$_POST['domain'];
if (isset($_POST['enabled']) && $_POST['enabled'] == 'true')
$enabled = 'Y';
else
$enabled = 'N';
$acc = array('account' => $account, 'mailbox' => $_POST['mailbox'], 'enabled' => $enabled);
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX