#!/usr/bin/env php . */ define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..')); $helptext = << Prints site information for the domain given END_OF_SITEFORDOMAIN_HELP; require_once INSTALLDIR.'/scripts/commandline.inc'; $raw = $args[0]; $parts = explode('@', $raw); if (count($parts) == 1) { $domain = $parts[0]; } else { $domain = $parts[1]; } $domain = strtolower(trim($domain)); $snt = Status_network_tag::withTag('domain='.$domain); while ($snt->fetch()) { $sn = Status_network::staticGet('site_id', $snt->site_id); if (!empty($sn)) { print $sn->nickname."\n"; } }