]> git.mxchange.org Git - ctracker.git/blobdiff - libs/lib_detector.php
Continued:
[ctracker.git] / libs / lib_detector.php
index 400c05f491ba434f4e7ac33bc9990f2bb7722239..65062c7c4121ae3ee5f1d9feff8f5f7f964ea5e2 100644 (file)
@@ -388,7 +388,7 @@ function crackerTrackerDie () {
        if (!isCrackerTrackerDebug()) {
                // Sleep a little to waste the attacker's time
                sleep(mt_rand(10,30));
-       } // END - if
+       }
 
        // Bye, bye...
        if (isCrackerTrackerDebug()) {
@@ -414,7 +414,7 @@ function crackerTrackerLogAttack () {
        if (isCrackerTrackerProxyUsed()) {
                // Set it
                $proxyUsed = 'Y';
-       } // END - if
+       }
 
        // Prepare array for database insert
        $rowData = [
@@ -438,6 +438,7 @@ function crackerTrackerLogAttack () {
        crackerTrackerInsertArray('ctracker_data', $rowData);
 }
 
+// Increases count of spam-bot accesses for the current IP
 function ctrackerIncreaseAntiSpambotCount () {
        // Init row data
        $rowData = [
@@ -473,7 +474,7 @@ function crackerTrackerAlertCurrentUser () {
                        // Display the form for new ticket
                        crackerTrackerLoadTemplate('add_ticket');
                }
-       } // END - if
+       }
 
        // And stop here
        die();