SF.net SVN: postfixadmin:[461] trunk/fetchmail.php
Brought to you by:
christian_boltz,
gingerdog
From: <Gin...@us...> - 2008-09-06 20:32:06
|
Revision: 461 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=461&view=rev Author: GingerDog Date: 2008-09-06 20:32:17 +0000 (Sat, 06 Sep 2008) Log Message: ----------- fetchmail.php: clearly two sets of eyes are better than one; thanks niki Modified Paths: -------------- trunk/fetchmail.php Modified: trunk/fetchmail.php =================================================================== --- trunk/fetchmail.php 2008-09-06 19:27:45 UTC (rev 460) +++ trunk/fetchmail.php 2008-09-06 20:32:17 UTC (rev 461) @@ -89,11 +89,13 @@ array('POP3','IMAP','POP2','ETRN','AUTO'), ); +$table_fetchmail = table_by_key('fetchmail'); +$table_mailbox = table_by_key('mailbox'); $list_domains = list_domains_for_admin ($SESSID_USERNAME); $user_domains=implode(", ",array_values($list_domains)); # for displaying $user_domains_sql=implode("','",escape_string(array_values($list_domains))); # for SQL -$sql="SELECT username FROM mailbox WHERE domain in ('".$user_domains_sql."')"; # TODO: replace with domain selection dropdown +$sql="SELECT username FROM $table_mailbox WHERE domain in ('".$user_domains_sql."')"; # TODO: replace with domain selection dropdown $res = db_query ($sql); if ($res['rows'] > 0){ @@ -114,7 +116,6 @@ $row_id = $edit; } -$table_fetchmail = table_by_key('fetchmail'); if ($row_id) { $result = db_query ("SELECT ".implode(",",escape_string(array_keys($fm_struct)))." FROM $table_fetchmail WHERE id=" . $row_id); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |