123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- define('INSTALLDIR', dirname(__DIR__, 3));
- define('PUBLICDIR', INSTALLDIR . DIRECTORY_SEPARATOR . 'public');
- $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";
- }
|