]> git.mxchange.org Git - ctracker.git/blobdiff - ctracker.php
Index on count column to improve SUM queries
[ctracker.git] / ctracker.php
index f3770e1b2055768b73302d88e6c52565591f1a30..1cf268a205a50586711e5df371f73daf032b9d5e 100644 (file)
@@ -30,7 +30,7 @@
  */
 
 // XDEBUG call
-/* DEBUG: */ xdebug_start_trace();
+//* DEBUG: */ xdebug_start_trace();
 
 // Include files
 require('config/db_config.php');
@@ -53,16 +53,10 @@ crackerTrackerUpdateDatabaseScheme();
 if (isCrackerTrackerWormDetected()) {
        // Send the email, this must be the last line in this if() block because it contains a exit()
        sendCrackerTrackerMail();
-} // END - if
-
-// Suspicious POST data detected?
-if (isCrackerTrackerPostAttackDetected()) {
+} elseif (isCrackerTrackerPostAttackDetected()) {
        // Send the email, this must be the last line in this if() block because it contains a exit()
        sendCrackerTrackerPostMail();
-} // END - if
-
-// Does the current IP produce some blocked requests but not now?
-if ((getCrackerTrackerConfig('ctracker_alert_user') == 'Y') && (isCrackerTrackerIpSuspicious())) {
+} elseif ((getCrackerTrackerConfig('ctracker_alert_user') == 'Y') && (isCrackerTrackerIpSuspicious())) {
        // This IP is suspicious, so we alert him/her
        crackerTrackerAlertCurrentUser();
 } // END - if