suppress free email

This commit is contained in:
Evan Prodromou
2011-06-10 19:56:26 -04:00
parent b6df936454
commit 820e7586ec
2 changed files with 479 additions and 2 deletions

View File

@@ -103,9 +103,8 @@ class DomainStatusNetworkPlugin extends Plugin
include_once $dir . '/actions/' . strtolower(mb_substr($cls, 0, -6)) . '.php';
return false;
case 'DomainStatusNetworkInstaller':
include_once $dir . '/lib/' . strtolower($cls) . '.php';
return false;
case 'GlobalApiAction':
case 'FreeEmail':
include_once $dir . '/lib/' . strtolower($cls) . '.php';
return false;
default:
@@ -245,6 +244,10 @@ class DomainStatusNetworkPlugin extends Plugin
{
$domain = self::toDomain($email);
if (FreeEmail::isFree($domain)) {
throw new ClientException(_("Use your work email."));
}
$sn = self::siteForDomain($domain);
if (empty($sn)) {