SF.net SVN: postfixadmin:[504] trunk/edit-domain.php
Brought to you by:
christian_boltz,
gingerdog
|
From: <chr...@us...> - 2008-12-23 00:03:13
|
Revision: 504
http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=504&view=rev
Author: christian_boltz
Date: 2008-12-23 00:03:08 +0000 (Tue, 23 Dec 2008)
Log Message:
-----------
edit-domain.php:
- only change transport if $CONF['transport'] is YES. Otherwise leave it
untouched (instead of changing it to $CONF['transport_default'])
Modified Paths:
--------------
trunk/edit-domain.php
Modified: trunk/edit-domain.php
===================================================================
--- trunk/edit-domain.php 2008-12-15 21:29:08 UTC (rev 503)
+++ trunk/edit-domain.php 2008-12-23 00:03:08 UTC (rev 504)
@@ -99,8 +99,12 @@
$sqlActive = db_get_boolean(False);
}
+ $sqltransport = "";
+ if($CONF['transport'] != 'NO') { # only change transport if it is allowed in config. Otherwise, keep the old value.
+ $sqltransport = "transport='$fTransport',";
+ }
- $result = db_query ("UPDATE $table_domain SET description='$fDescription',aliases=$fAliases,mailboxes=$fMailboxes,maxquota=$fMaxquota,transport='$fTransport',backupmx='$sqlBackupmx',active='$sqlActive',modified=NOW() WHERE domain='$domain'");
+ $result = db_query ("UPDATE $table_domain SET description='$fDescription',aliases=$fAliases,mailboxes=$fMailboxes,maxquota=$fMaxquota,$sqltransport backupmx='$sqlBackupmx',active='$sqlActive',modified=NOW() WHERE domain='$domain'");
if ($result['rows'] == 1)
{
header ("Location: list-domain.php");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|