From f8cd26f7b47ff7ffa4d218acf476e233ec324364 Mon Sep 17 00:00:00 2001 From: edward Date: Thu, 14 Jul 2016 14:42:15 +0800 Subject: [PATCH] NotifySend.php --- NotifySend.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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; } -- 2.39.2