#!/usr/bin/php -q
<?
echo `psql -c "select siteinfo.domain,reseller_info.username from siteinfo,reseller,reseller_info where 
reseller.reseller_id=reseller_info.reseller_id and reseller.site_id=siteinfo.site_id and reseller.reseller_id!='0';" appldb -tA`;
?>
