From: Roland Häder Date: Tue, 26 Jul 2016 07:35:00 +0000 (+0200) Subject: Can be combined and makes code look nicer. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ac1fb1651d466302a79579c80de60259957fabb7;p=ctracker.git Can be combined and makes code look nicer. Signed-off-by: Roland Häder --- diff --git a/ctracker.php b/ctracker.php index 62adbd1..1cf268a 100644 --- a/ctracker.php +++ b/ctracker.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