|
@@ 414-427 (lines=14) @@
|
| 411 |
|
} |
| 412 |
|
} |
| 413 |
|
} |
| 414 |
|
if(count($ipArray)) { |
| 415 |
|
//are there any orders with the same IP in the xxx seven days... |
| 416 |
|
$otherPayments = EcommercePayment::get()->filter( |
| 417 |
|
array('IP' => $ipArray) + $timeFilter |
| 418 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 419 |
|
foreach ($otherPayments as $payment) { |
| 420 |
|
$otherOrder = $payment->Order(); |
| 421 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 422 |
|
$similarArray[$otherOrder->ID] = array(); |
| 423 |
|
} |
| 424 |
|
$similarArray[$otherOrder->ID]["IP"] = $otherOrder; |
| 425 |
|
} |
| 426 |
|
$this->blacklistCheck($ipArray, 'EcommerceSecurityIP'); |
| 427 |
|
} |
| 428 |
|
if(count($ipProxyArray)) { |
| 429 |
|
//are there any orders with the same Proxy in the xxx seven days... |
| 430 |
|
$otherPayments = EcommercePayment::get()->filter( |
|
@@ 428-441 (lines=14) @@
|
| 425 |
|
} |
| 426 |
|
$this->blacklistCheck($ipArray, 'EcommerceSecurityIP'); |
| 427 |
|
} |
| 428 |
|
if(count($ipProxyArray)) { |
| 429 |
|
//are there any orders with the same Proxy in the xxx seven days... |
| 430 |
|
$otherPayments = EcommercePayment::get()->filter( |
| 431 |
|
array('ProxyIP' => $ipProxyArray) + $timeFilter |
| 432 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 433 |
|
foreach ($otherPayments as $payment) { |
| 434 |
|
$otherOrder = $payment->Order(); |
| 435 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 436 |
|
$similarArray[$otherOrder->ID] = array(); |
| 437 |
|
} |
| 438 |
|
$similarArray[$otherOrder->ID]["ProxyIP"] = $otherOrder; |
| 439 |
|
} |
| 440 |
|
$this->blacklistCheck($ipProxyArray, 'EcommerceSecurityProxyIP'); |
| 441 |
|
} |
| 442 |
|
|
| 443 |
|
|
| 444 |
|
if (count($this->warningMessages)) { |