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]);
- $sn = DomainStatusNetworkPlugin::siteForDomain($domain);
- if (empty($sn)) {
- exit(1);
- }
- print $sn->nickname."\n";
- exit(0);
|