\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 "
| $row[address] | "; print "" . ereg_replace (",", " ", $row[goto]) . " | ";
print "$row[change_date] | "; print "$row[active] | "; 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 "
| $row[username] | "; print "$row[name] | "; print "$row[maildir] | "; print "$row[change_date] | "; print "$row[active] | "; print "
\n"; print "Nothing Found!\n"; } print_footer(); ?>