|
@@ 365-378 (lines=14) @@
|
| 362 |
|
} |
| 363 |
|
} |
| 364 |
|
} |
| 365 |
|
if(count($ipArray)) { |
| 366 |
|
//are there any orders with the same IP in the xxx seven days... |
| 367 |
|
$otherPayments = EcommercePayment::get()->filter( |
| 368 |
|
array('IP' => $ipArray) + $timeFilter |
| 369 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 370 |
|
foreach ($otherPayments as $payment) { |
| 371 |
|
$otherOrder = $payment->Order(); |
| 372 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 373 |
|
$similarArray[$otherOrder->ID] = array(); |
| 374 |
|
} |
| 375 |
|
$similarArray[$otherOrder->ID]["IP"] = $otherOrder; |
| 376 |
|
} |
| 377 |
|
$this->blacklistCheck($ipArray, 'EcommerceSecurityIP'); |
| 378 |
|
} |
| 379 |
|
if(count($ipProxyArray)) { |
| 380 |
|
//are there any orders with the same Proxy in the xxx seven days... |
| 381 |
|
$otherPayments = EcommercePayment::get()->filter( |
|
@@ 379-392 (lines=14) @@
|
| 376 |
|
} |
| 377 |
|
$this->blacklistCheck($ipArray, 'EcommerceSecurityIP'); |
| 378 |
|
} |
| 379 |
|
if(count($ipProxyArray)) { |
| 380 |
|
//are there any orders with the same Proxy in the xxx seven days... |
| 381 |
|
$otherPayments = EcommercePayment::get()->filter( |
| 382 |
|
array('ProxyIP' => $ipProxyArray) + $timeFilter |
| 383 |
|
)->exclude(array('OrderID' => $order->ID)); |
| 384 |
|
foreach ($otherPayments as $payment) { |
| 385 |
|
$otherOrder = $payment->Order(); |
| 386 |
|
if (!isset($similarArray[$otherOrder->ID])) { |
| 387 |
|
$similarArray[$otherOrder->ID] = array(); |
| 388 |
|
} |
| 389 |
|
$similarArray[$otherOrder->ID]["ProxyIP"] = $otherOrder; |
| 390 |
|
} |
| 391 |
|
$this->blacklistCheck($ipProxyArray, 'EcommerceSecurityProxyIP'); |
| 392 |
|
} |
| 393 |
|
|
| 394 |
|
|
| 395 |
|
if (count($this->warningMessages)) { |