SF.net SVN: postfixadmin:[1479] branches/postfixadmin-2.3
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2013-06-16 16:39:38
|
Revision: 1479 http://sourceforge.net/p/postfixadmin/code/1479 Author: christian_boltz Date: 2013-06-16 16:39:36 +0000 (Sun, 16 Jun 2013) Log Message: ----------- edit-mailbox.php: - when enabling/disabling a mailbox, also update the corresponding alias Patch by Paolo Stancato, https://sourceforge.net/p/postfixadmin/bugs/289/ Modified Paths: -------------- branches/postfixadmin-2.3/CHANGELOG.TXT branches/postfixadmin-2.3/edit-mailbox.php Modified: branches/postfixadmin-2.3/CHANGELOG.TXT =================================================================== --- branches/postfixadmin-2.3/CHANGELOG.TXT 2013-06-15 23:47:53 UTC (rev 1478) +++ branches/postfixadmin-2.3/CHANGELOG.TXT 2013-06-16 16:39:36 UTC (rev 1479) @@ -13,6 +13,7 @@ Changes since 2.3.6 release ---------------------------------------------------------------- - lt.lang translation update + - when enabling/disabling a mailbox, also update the corresponding alias Version 2.3.6 - 2013/01/02 - SVN r1417 (postfixadmin-2.3 branch) ---------------------------------------------------------------- Modified: branches/postfixadmin-2.3/edit-mailbox.php =================================================================== --- branches/postfixadmin-2.3/edit-mailbox.php 2013-06-15 23:47:53 UTC (rev 1478) +++ branches/postfixadmin-2.3/edit-mailbox.php 2013-06-16 16:39:36 UTC (rev 1479) @@ -162,6 +162,17 @@ else { db_log ($SESSID_USERNAME, $fDomain, 'edit_mailbox', $fUsername); + $result = db_query ("UPDATE $table_alias SET active=$sqlActive WHERE address='$fUsername' AND domain='$fDomain'"); + if ($result['rows'] != 1) + { + $error = 1; + $tMessage = $PALANG['pEdit_mailbox_result_error']; + } + else + { + db_log ($SESSID_USERNAME, $fDomain, 'edit_alias_state', $fUsername); + } + header ("Location: list-virtual.php?domain=$fDomain"); exit(0); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |