X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FImap%2Fimapmanager.php;h=2d27ac97a87ecb37cdfa794e4726aa0007f4fa24;hb=1513b8eeb921538e4e342c2c6d64b2c0d1aed2dd;hp=cfc08c1ee1fd0252ad324bd8bba8a1f3204a6504;hpb=004e42e3e0606f0f9e5c8b6cd4512e5d870cd56e;p=quix0rs-gnu-social.git diff --git a/plugins/Imap/imapmanager.php b/plugins/Imap/imapmanager.php index cfc08c1ee1..2d27ac97a8 100644 --- a/plugins/Imap/imapmanager.php +++ b/plugins/Imap/imapmanager.php @@ -29,6 +29,10 @@ * @link http://status.net/ */ +if (!defined('STATUSNET')) { + exit(1); +} + class ImapManager extends IoManager { protected $conn = null; @@ -44,7 +48,7 @@ class ImapManager extends IoManager */ public static function get() { - throw new Exception('ImapManager should be created using it\'s constructor, not the static get method'); + throw new Exception(_m('ImapManager should be created using its constructor, not the using the static get method.')); } /** @@ -94,12 +98,12 @@ class ImapManager extends IoManager { return $this->check_mailbox() > 0; } - + function pollInterval() { return $this->plugin->poll_frequency; } - + protected function connect() { $this->conn = imap_open($this->plugin->mailbox, $this->plugin->user, $this->plugin->password);