$fDescription, 'aliases' => $fAliases, 'mailboxes' => $fMailboxes, 'maxquota' => $fMaxquota, 'quota' => $fDomainquota, 'backupmx' => $sqlBackupmx, 'active' => $sqlActive, ); if($CONF['transport'] != 'NO') { # only change transport if it is allowed in config. Otherwise, keep the old value. $db_values['transport'] =$fTransport; } $result = db_update('domain', 'domain', $domain, $db_values); if ($result == 1) { header ("Location: list-domain.php"); exit; } else { flash_error($PALANG['pAdminEdit_domain_result_error']); } } $smarty->assign ('mode', 'edit'); $smarty->assign ('pAdminCreate_domain_domain_text_error', ''); $smarty->assign ('domain', $domain); $smarty->assign ('tDescription', $tDescription); $smarty->assign ('tAliases', $tAliases); $smarty->assign ('tMailboxes', $tMailboxes); $smarty->assign ('tMaxquota', $tMaxquota); $smarty->assign ('tDomainquota', $tDomainquota); $smarty->assign ('select_options', select_options($CONF['transport_options'], array($tTransport)), false); if ($tBackupmx) $smarty->assign ('tBackupmx', ' checked="checked"'); if ($tActive) $smarty->assign ('tActive', ' checked="checked"'); $smarty->assign ('smarty_template', 'admin_edit-domain'); $smarty->display ('index.tpl'); /* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */