diff --git a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php index e11cb082d6..10208cfbe7 100644 --- a/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php +++ b/plugins/DomainStatusNetwork/DomainStatusNetworkPlugin.php @@ -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)) { diff --git a/plugins/DomainStatusNetwork/lib/freeemail.php b/plugins/DomainStatusNetwork/lib/freeemail.php new file mode 100644 index 0000000000..fe3cc5a4fb --- /dev/null +++ b/plugins/DomainStatusNetwork/lib/freeemail.php @@ -0,0 +1,474 @@ +