From: edward Date: Thu, 14 Jul 2016 06:42:15 +0000 (+0800) Subject: NotifySend.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=f8cd26f7b47ff7ffa4d218acf476e233ec324364 NotifySend.php --- diff --git a/NotifySend.php b/NotifySend.php index 5da3567a..688d4d07 100644 --- a/NotifySend.php +++ b/NotifySend.php @@ -387,10 +387,27 @@ class Pman_Core_NotifySend extends Pman continue; } + $core_domain = DB_DataObject::factory($core_domain); + if(!$core_domain->get('domain', $dom)){ + $core_domain = DB_DataObject::factory($core_domain); + $core_domain->setFrom(array( + 'domain' => $dom + )); + $core_domain->insert(); + } + + $core_notify = DB_DataObject::factory('core_notify'); + $core_notify->domain_id = $core_domain->id; + + if($core_notify->count() >= $settings['rate']){ + + } + $mailer->host = $server; $username = $settings['username']; $password = $settings['password']; + break; }