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]);
- $nickname = DomainStatusNetworkPlugin::nicknameForDomain($domain);
- if (empty($nickname)) {
- throw new ClientException('No candidate found.');
- } else {
- print $nickname;
- print "\n";
- }
|