]> git.mxchange.org Git - ctracker.git/blobdiff - ctracker.php
Continued:
[ctracker.git] / ctracker.php
index 132cd520efde53b9fcc4a276607c74c2f3f4866d..736c3363d32d0df2af23b937494e77bfb65b4e69 100644 (file)
@@ -52,13 +52,13 @@ crackerTrackerUpdateDatabaseScheme();
 
 // If it differs to original and the *whole* request string is not in whitelist
 // then block the attempt
-if (isCrackerTrackerWormDetected()) {
+if (!crackerTrackerIsConsole() && isCrackerTrackerWormDetected()) {
        // Send the email, this must be the last line in this if() block because it contains a exit()
        sendCrackerTrackerMail();
-} elseif (isCrackerTrackerPostAttackDetected()) {
+} elseif (!crackerTrackerIsConsole() && isCrackerTrackerPostAttackDetected()) {
        // Send the email, this must be the last line in this if() block because it contains a exit()
        sendCrackerTrackerPostMail();
-} elseif ((getCrackerTrackerConfig('ctracker_alert_user') == 'Y') && (isCrackerTrackerIpSuspicious())) {
+} elseif (!crackerTrackerIsConsole() && getCrackerTrackerConfig('ctracker_alert_user') == 'Y' && isCrackerTrackerIpSuspicious()) {
        // This IP is suspicious, so we alert him/her
        crackerTrackerAlertCurrentUser();
 } // END - if