X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=libs%2Flib_connect.php;h=b4f3772991715088704601e23f3ec775beb675fe;hb=a6363a77b01403ce6073c12d294d7b9249c0f305;hp=800b07eb6b497c8e23192276ec37e0a2c1151bef;hpb=1682752134aef79f6806d062d7c1f3e772299786;p=ctracker.git diff --git a/libs/lib_connect.php b/libs/lib_connect.php index 800b07e..b4f3772 100644 --- a/libs/lib_connect.php +++ b/libs/lib_connect.php @@ -103,10 +103,10 @@ function updateCrackerTrackerEntry ($rowData) { runCrackerTrackerSql($SQL, __FUNCTION__, __LINE__); } -// Checks if an entry with IP/check_worm combination is there +// Checks if an entry with IP/check_worm/domain combination is there function isCrackerTrackerEntryFound ($rowData) { // Construct the SELECT query - $SQL = 'SELECT `id` FROM `ctracker_data` WHERE `remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" AND `check_worm` = "' . crackerTrackerEscapeString($rowData['check_worm']) . '" LIMIT 1'; + $SQL = 'SELECT `id` FROM `ctracker_data` WHERE `remote_addr`="' . crackerTrackerEscapeString($rowData['remote_addr']) . '" AND `check_worm` = "' . crackerTrackerEscapeString($rowData['check_worm']) . '" AND `server_name`="' . crackerTrackerEscapeString($rowData['server_name']) . '" LIMIT 1'; // Run the SQL and check if we have one line return (mysql_num_rows(runCrackerTrackerSql($SQL, __FUNCTION__, __LINE__)) == 1);