SF.net SVN: postfixadmin:[639] trunk/delete.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2009-04-20 18:41:33
|
Revision: 639 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=639&view=rev Author: GingerDog Date: 2009-04-20 18:41:23 +0000 (Mon, 20 Apr 2009) Log Message: ----------- delete.php: fix undefined variables Modified Paths: -------------- trunk/delete.php Modified: trunk/delete.php =================================================================== --- trunk/delete.php 2009-04-20 18:40:18 UTC (rev 638) +++ trunk/delete.php 2009-04-20 18:41:23 UTC (rev 639) @@ -37,25 +37,26 @@ $SESSID_USERNAME = authentication_get_username(); $error = 0; -$fTable = escape_string (safeget('table') ); # see the if blocks below for valid values -$fDelete = escape_string (safeget('delete')); -$fDomain = escape_string (safeget('domain')); +$fTable = escape_string(safeget('table')); # see the if blocks below for valid values +$fDelete = escape_string(safeget('delete')); +$fDomain = escape_string(safeget('domain')); $error=0; /** * delete_alias * Action: Delete an alias - * @param String $alias- alias to delete. - * @param String $domain - domain of the alias + * @param String $alias alias to delete. + * @param String $domain domain of the alias * @param boolean $force_delete - deletes the alias from the table if true, * checks if the alias is real and act accordlying if false. * Default is false. * @return String username (e.g. fo...@ex...) */ -function delete_alias ($alias, $domain, $force_delete = false) +function delete_alias($alias, $domain, $force_delete = false) { global $table_alias, $table_mailbox; + $SESSID_USERNAME = authentication_get_username(); $real_alias = true; if (! $force_delete) @@ -88,7 +89,7 @@ } else { - db_log ($SESSID_USERNAME, $fDomain, 'delete_alias', $fDelete); + db_log ($SESSID_USERNAME, $domain, 'delete_alias', $alias); } return true; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |