From: Evan Prodromou Date: Fri, 10 Jun 2011 23:56:26 +0000 (-0400) Subject: suppress free email X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=820e7586ec57fe9640d4a151b27bf34aa7237371;p=quix0rs-gnu-social.git suppress free email --- 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 @@ +