SF.net SVN: postfixadmin: [246] trunk/templates/users_edit-alias.tpl
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2007-11-27 21:42:05
|
Revision: 246 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=246&view=rev Author: christian_boltz Date: 2007-11-27 13:42:03 -0800 (Tue, 27 Nov 2007) Log Message: ----------- users_edit-alias.tpl: - fix: mailbox not removed from alias targets https://sourceforge.net/tracker/index.php?func=detail&aid=1839063&group_id=191583&atid=937964 - don't list mailbox in "to" field. We have option fields for this below the textarea. Modified Paths: -------------- trunk/templates/users_edit-alias.tpl Modified: trunk/templates/users_edit-alias.tpl =================================================================== --- trunk/templates/users_edit-alias.tpl 2007-11-27 20:26:45 UTC (rev 245) +++ trunk/templates/users_edit-alias.tpl 2007-11-27 21:42:03 UTC (rev 246) @@ -15,14 +15,7 @@ <?php $array = preg_split ('/,/', $tGoto); -if (!in_array($USERID_USERNAME,$array)) -{ - $just_forward="YES"; -} -else -{ - $just_forward="NO"; -} +$just_forward="YES"; # unless changed below for ($i = 0 ; $i < sizeof ($array) ; $i++) { @@ -32,6 +25,10 @@ $vacation = "YES"; continue; } + if ($array[$i] == $USERID_USERNAME) { + $just_forward="NO"; + continue; + } print "$array[$i]\n"; } ?> @@ -61,3 +58,5 @@ </table> </form> </div> + +<?php /* vim: set ft=php expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ ?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |