\n"; $order = $_GET[order]; $where = $_GET[where]; if (empty($order)) $order = "domain,address"; if (!empty($where)) $where = "WHERE " . "domain='$where'"; $query = "SELECT * FROM alias $where ORDER BY $order"; print "$query\n"; print "

\n"; $result = db_query ("$query"); if ($result[rows] > 0) { print "

\n"; print "\n"; while ($row = mysql_fetch_array ($result[result])) { print ""; print ""; print ""; print ""; print ""; print "\n"; } print "
$row[address]" . ereg_replace (",", "
", $row[goto]) . "
$row[change_date]$row[active]
\n"; print "
\n"; print "Found: $result[rows]\n"; print "

\n"; } else { print "Nothing Found!\n"; print "

\n"; } $query = "SELECT * FROM mailbox $where"; print "$query\n"; $result = db_query ("$query"); if ($result[rows] > 0) { print "

\n"; print "\n"; while ($row = mysql_fetch_array ($result[result])) { print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; } print "
$row[username]$row[name]$row[maildir]$row[change_date]$row[active]
\n"; print "
\n"; print "Found: $result[rows]
\n"; } else { print "

\n"; print "Nothing Found!\n"; } print_footer(); ?>