12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- define('INSTALLDIR', realpath(dirname(__FILE__) . '/../../..'));
- $helptext = <<<END_OF_SITEFORDOMAIN_HELP
- sitefordomain.php [options] <email address|domain>
- Prints site information for the domain given
- END_OF_SITEFORDOMAIN_HELP;
- require_once INSTALLDIR.'/scripts/commandline.inc';
- $domain = DomainStatusNetworkPlugin::toDomain($args[0]);
- $sn = DomainStatusNetworkPlugin::siteForDomain($domain);
- if (empty($sn)) {
- exit(1);
- }
- print $sn->nickname."\n";
- exit(0);
|