@@ -90,7 +90,7 @@ public function onRunJob() {
9090 $ app ->log ('Traffic quota for ' .$ rec ['domain ' ].' exceeded. ' , LOGLEVEL_DEBUG );
9191 }
9292 //* Send traffic notifications
93- if ($ rec ['traffic_quota_lock ' ] != 'y ' && ($ web_config ['overtraffic_notify_admin ' ] == 'y ' || $ web_config ['overtraffic_notify_client ' ] == 'y ' )) {
93+ if ($ rec ['traffic_quota_lock ' ] != 'y ' && ($ web_config ['overtraffic_notify_admin ' ] == 'y ' || $ web_config ['overtraffic_notify_reseller ' ] == ' y ' || $ web_config [ ' overtraffic_notify_client ' ] == 'y ' )) {
9494
9595 $ placeholders = array ('{domain} ' => $ rec ['domain ' ],
9696 '{admin_mail} ' => ($ global_config ['admin_mail ' ] != '' ? $ global_config ['admin_mail ' ] : 'root ' ),
@@ -228,7 +228,7 @@ public function onRunJob() {
228228 if ($ rec ['last_quota_notification ' ]) $ app ->dbmaster ->datalogUpdate ('web_domain ' , array ("last_quota_notification " => null ), 'domain_id ' , $ rec ['domain_id ' ]);
229229
230230 // send notification - everything ok again
231- if ($ rec ['last_quota_notification ' ] && $ web_config ['overquota_notify_onok ' ] == 'y ' && ($ web_config ['overquota_notify_admin ' ] == 'y ' || $ web_config ['overquota_notify_client ' ] == 'y ' )) {
231+ if ($ rec ['last_quota_notification ' ] && $ web_config ['overquota_notify_onok ' ] == 'y ' && ($ web_config ['overquota_notify_admin ' ] == 'y ' || $ web_config ['overquota_notify_reseller ' ] == ' y ' || $ web_config [ ' overquota_notify_client ' ] == 'y ' )) {
232232 $ placeholders = array ('{domain} ' => $ rec ['domain ' ],
233233 '{admin_mail} ' => ($ global_config ['admin_mail ' ] != '' ? $ global_config ['admin_mail ' ] : 'root ' ),
234234 '{used} ' => $ rec ['used ' ],
@@ -273,7 +273,7 @@ public function onRunJob() {
273273 elseif ($ web_config ['overquota_notify_freq ' ] > 0 && $ rec ['notified_before ' ] >= $ web_config ['overquota_notify_freq ' ]) $ send_notification = true ;
274274
275275 //* Send quota notifications
276- if (($ web_config ['overquota_notify_admin ' ] == 'y ' || $ web_config ['overquota_notify_client ' ] == 'y ' ) && $ send_notification == true ) {
276+ if (($ web_config ['overquota_notify_admin ' ] == 'y ' || $ web_config ['overquota_notify_reseller ' ] == ' y ' || $ web_config [ ' overquota_notify_client ' ] == 'y ' ) && $ send_notification == true ) {
277277 $ app ->dbmaster ->datalogUpdate ('web_domain ' , array ("last_quota_notification " => date ('Y-m-d ' )), 'domain_id ' , $ rec ['domain_id ' ]);
278278
279279 $ placeholders = array ('{domain} ' => $ rec ['domain ' ],
@@ -381,7 +381,7 @@ public function onRunJob() {
381381 if ($ rec ['last_quota_notification ' ]) $ app ->dbmaster ->datalogUpdate ('mail_user ' , array ("last_quota_notification " => null ), 'mailuser_id ' , $ rec ['mailuser_id ' ]);
382382
383383 // send notification - everything ok again
384- if ($ rec ['last_quota_notification ' ] && $ mail_config ['overquota_notify_onok ' ] == 'y ' && ($ mail_config ['overquota_notify_admin ' ] == 'y ' || $ mail_config ['overquota_notify_client ' ] == 'y ' )) {
384+ if ($ rec ['last_quota_notification ' ] && $ mail_config ['overquota_notify_onok ' ] == 'y ' && ($ mail_config ['overquota_notify_admin ' ] == 'y ' || $ web_config [ ' overquota_notify_reseller ' ] == ' y ' || $ mail_config ['overquota_notify_client ' ] == 'y ' )) {
385385 $ placeholders = array ('{email} ' => $ rec ['email ' ],
386386 '{admin_mail} ' => ($ global_config ['admin_mail ' ] != '' ? $ global_config ['admin_mail ' ] : 'root ' ),
387387 '{used} ' => $ rec ['used ' ],
0 commit comments