Move throttling out of the Subscriber model to the API 'subscribe' method [MAILPOET-1115]

This commit is contained in:
stoletniy
2017-09-28 16:26:22 +03:00
committed by pavel-mailpoet
parent 8a91eb46e6
commit 9f5fc151b4
4 changed files with 23 additions and 18 deletions

View File

@@ -146,4 +146,9 @@ class Helpers {
return explode(self::DIVIDER, $object);
}
static function getIP() {
return (isset($_SERVER['REMOTE_ADDR']))
? $_SERVER['REMOTE_ADDR']
: null;
}
}