$sock->query('/CMD_API_SHOW_USER_DOMAINS?user=admin');
$result = $sock->fetch_parsed_body();
print_r($result);
echo "
";
foreach ( $result as $key => $value ) {
$domains = str_replace("_", ".", $key);
echo "$domains
\n";
echo "
";
list($used, $bandwidth_limit, $disk_usage, $log_usage, $subdomains, $suspended, $quota, $ssl, $cgi, $php) = split(":", $value, 10);
echo "Disk Usage: $disk_usage
\n";
echo "Bandwidth Limit: $bandwidth_limit
\n";
echo " see this will be nice :)
\n";
}