\n"; if ($alias_control == "YES") { $query = "SELECT alias.address,alias.goto,alias.change_date FROM alias WHERE alias.domain='$sessid_domain' ORDER BY alias.address"; } else { $query = "SELECT alias.address,alias.goto,alias.change_date FROM alias LEFT JOIN mailbox ON alias.address=mailbox.username WHERE alias.domain='$sessid_domain' AND mailbox.maildir IS NULL ORDER BY alias.address"; } $result = db_query ("$query"); if ($result['rows'] > 0) { print "
\n"; print "\n"; print ""; print ""; print ""; print ""; print ""; print ""; while ($row = mysql_fetch_array ($result['result'])) { print ""; print ""; print ""; print ""; print ""; print ""; print "\n"; } print "
FromToLast Modified 
" . $row['address'] . "" . ereg_replace (",", "
", $row['goto']) . "
" . $row['change_date'] . "editdel
\n"; print "
\n"; print "

\n"; } else { print "Nothing Found in the Alias Table!\n"; print "

\n"; } $query = "SELECT * FROM mailbox WHERE domain='$sessid_domain' ORDER BY username"; $result = db_query ("$query"); if ($result['rows'] > 0) { print "

\n"; print "\n"; print ""; print ""; print ""; if (!empty($quota_table)) print ""; print ""; print ""; print ""; while ($row = mysql_fetch_array ($result['result'])) { print ""; print ""; print ""; if (!empty($quota_table)) print ""; print ""; print ""; print ""; print "\n"; } print "
EmailNameQuotaLast Modified 
" . $row['username'] . "" . $row['name'] . "" . $row[$quota_table] . "" . $row['change_date'] . "editdel
\n"; print "
\n"; print "

\n"; } else { print "Nothing Found in the Mailbox Table!\n"; print "

\n"; } print_footer(); ?>