Skip to content

Commit

Permalink
updates fixing maxmind checks
Browse files Browse the repository at this point in the history
  • Loading branch information
detain committed Feb 1, 2018
1 parent 2069fd1 commit 6cc829d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/maxmind.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,13 +293,13 @@ function update_maxmind($customer, $module = 'default', $ip = false) {
myadmin_log('maxmind', 'notice', 'Maxmind '.(isset($response['score']) ? 'Score: '.$response['score'] : '').' riskScore: '.$response['riskScore'], __LINE__, __FILE__);
myadmin_log('maxmind', 'debug', $new_data['maxmind'], __LINE__, __FILE__);
if ((MAXMIND_CARDER_LOCK == true && $response['carderEmail'] == 'Yes') || (isset($response['score']) && $response['score'] >= MAXMIND_SCORE_LOCK) || $response['riskScore'] >= MAXMIND_RISKSCORE_LOCK) {
$db->query("select * from invoices where invoices_paid=1 and invoices_custid={$customer} and invoices_date <= date_sub(now(), INTERVAL 1 DAY) limit 1", __LINE__, __FILE__);
$db->query("select * from invoices where invoices_type=1 and invoices_paid=1 and invoices_custid={$customer} and invoices_date <= date_sub(now(), INTERVAL 1 DAY) limit 1", __LINE__, __FILE__);
if ($db->num_rows() == 0) {
myadmin_log('maxmind', 'warning', "update_maxmind({$customer}, {$module}) Carder Email Or High Score From Customer {$customer} (".(isset($response['score']) ? 'Score: '.$response['score'] : '')." RiskScore {$response['riskScore']}), I would disable the account but they have old invoices", __LINE__, __FILE__);
} else {
myadmin_log('maxmind', 'warning', "update_maxmind({$customer}, {$module}) Carder Email Or High Score From Customer {$customer} (".(isset($response['score']) ? 'Score: '.$response['score'] : '')." RiskScore {$response['riskScore']}), Disabling Account", __LINE__, __FILE__);
function_requirements('disable_account');
disable_account($customer, $module);
} else {
myadmin_log('maxmind', 'warning', "update_maxmind({$customer}, {$module}) Carder Email Or High Score From Customer {$customer} (".(isset($response['score']) ? 'Score: '.$response['score'] : '')." RiskScore {$response['riskScore']}), I would disable the account but they have old invoices", __LINE__, __FILE__);
}
}
if ((isset($response['score']) && $response['score'] >= MAXMIND_SCORE_DISABLE_CC) || $response['riskScore'] >= MAXMIND_RISKSCORE_DISABLE_CC || $response['proxyScore'] >= MAXMIND_PROXYSCORE_DISABLE_CC) {
Expand Down

0 comments on commit 6cc829d

Please sign in to comment.