// All fine
return true;
- } else {
+ } elseif (isset($GLOBALS['ctracker_email'])) {
// Send it
- return mail(constant('__CTRACKER_EMAIL'), 'CTracker: Attack detected!', $mail, 'From: ctracker@mxchange.org');
+ return mail($GLOBALS['ctracker_email'], 'CTracker: Attack detected!', $mail, $GLOBALS['ctracker_header']);
+ } else {
+ // Send it the deprecated way with constant
+ return mail(constant('__CTRACKER_EMAIL'), 'CTracker: Attack detected!', $mail, $GLOBALS['ctracker_header']);
}
} // END - if
}