@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | ]; |
| 198 | 198 | |
| 199 | 199 | if (empty($dataRange[$this->type])) { |
| 200 | - if (preg_match('/past_([0-9]+)_days/', $this->type, $matches) ) { |
|
| 200 | + if (preg_match('/past_([0-9]+)_days/', $this->type, $matches)) { |
|
| 201 | 201 | $dayCount = $matches[1]; |
| 202 | 202 | $startDate = date('Ymd', strtotime('-' . $dayCount . ' days')); |
| 203 | 203 | $endDate = date('Ymd'); |
@@ -336,21 +336,21 @@ discard block |
||
| 336 | 336 | return []; |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | - $results['captcha_chart_string'] = ''; // string |
|
| 340 | - $results['pageview_chart_string'] = ''; // string |
|
| 341 | - $results['captcha_success_count'] = 0; // integer |
|
| 342 | - $results['captcha_failure_count'] = 0; // integer |
|
| 343 | - $results['captcha_count'] = 0; // integer |
|
| 344 | - $results['pageview_count'] = 0; // integer |
|
| 345 | - $results['captcha_percentageage'] = 0; // integer |
|
| 339 | + $results['captcha_chart_string'] = ''; // string |
|
| 340 | + $results['pageview_chart_string'] = ''; // string |
|
| 341 | + $results['captcha_success_count'] = 0; // integer |
|
| 342 | + $results['captcha_failure_count'] = 0; // integer |
|
| 343 | + $results['captcha_count'] = 0; // integer |
|
| 344 | + $results['pageview_count'] = 0; // integer |
|
| 345 | + $results['captcha_percentageage'] = 0; // integer |
|
| 346 | 346 | $results['captcha_failure_percentage'] = 0; // integer |
| 347 | 347 | $results['captcha_success_percentage'] = 0; // integer |
| 348 | 348 | |
| 349 | - $results['action_ban_count'] = 0; // integer |
|
| 350 | - $results['action_temp_ban_count'] = 0; // integer |
|
| 351 | - $results['action_unban_count'] = 0; // integer |
|
| 352 | - $results['blacklist_count'] = 0; // integer |
|
| 353 | - $results['session_limit_count'] = 0; // integer |
|
| 349 | + $results['action_ban_count'] = 0; // integer |
|
| 350 | + $results['action_temp_ban_count'] = 0; // integer |
|
| 351 | + $results['action_unban_count'] = 0; // integer |
|
| 352 | + $results['blacklist_count'] = 0; // integer |
|
| 353 | + $results['session_limit_count'] = 0; // integer |
|
| 354 | 354 | |
| 355 | 355 | $ipdData = $this->getIpData(); |
| 356 | 356 | |
@@ -391,22 +391,22 @@ discard block |
||
| 391 | 391 | { |
| 392 | 392 | $periodData = $this->getPeriodData(); |
| 393 | 393 | |
| 394 | - $results['captcha_chart_string'] = ''; // string |
|
| 395 | - $results['pageview_chart_string'] = ''; // string |
|
| 396 | - $results['label_chart_string'] = ''; // string |
|
| 397 | - $results['captcha_success_count'] = 0; // integer |
|
| 398 | - $results['captcha_failure_count'] = 0; // integer |
|
| 399 | - $results['captcha_count'] = 0; // integer |
|
| 400 | - $results['pageview_count'] = 0; // integer |
|
| 401 | - $results['captcha_percentageage'] = 0; // integer |
|
| 394 | + $results['captcha_chart_string'] = ''; // string |
|
| 395 | + $results['pageview_chart_string'] = ''; // string |
|
| 396 | + $results['label_chart_string'] = ''; // string |
|
| 397 | + $results['captcha_success_count'] = 0; // integer |
|
| 398 | + $results['captcha_failure_count'] = 0; // integer |
|
| 399 | + $results['captcha_count'] = 0; // integer |
|
| 400 | + $results['pageview_count'] = 0; // integer |
|
| 401 | + $results['captcha_percentageage'] = 0; // integer |
|
| 402 | 402 | $results['captcha_failure_percentage'] = 0; // integer |
| 403 | 403 | $results['captcha_success_percentage'] = 0; // integer |
| 404 | 404 | |
| 405 | - $results['action_ban_count'] = 0; // integer |
|
| 406 | - $results['action_temp_ban_count'] = 0; // integer |
|
| 407 | - $results['action_unban_count'] = 0; // integer |
|
| 408 | - $results['blacklist_count'] = 0; // integer |
|
| 409 | - $results['session_limit_count'] = 0; // integer |
|
| 405 | + $results['action_ban_count'] = 0; // integer |
|
| 406 | + $results['action_temp_ban_count'] = 0; // integer |
|
| 407 | + $results['action_unban_count'] = 0; // integer |
|
| 408 | + $results['blacklist_count'] = 0; // integer |
|
| 409 | + $results['session_limit_count'] = 0; // integer |
|
| 410 | 410 | |
| 411 | 411 | if (!empty($periodData)) { |
| 412 | 412 | |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | } |
| 437 | 437 | |
| 438 | 438 | $results['captcha_chart_string'] = implode(',', $chartCaptcha); |
| 439 | - $results['pageview_chart_string']= implode(',', $chartPageview); |
|
| 439 | + $results['pageview_chart_string'] = implode(',', $chartPageview); |
|
| 440 | 440 | $results['captcha_success_chart_string'] = implode(',', $chartCaptchaSuccess); |
| 441 | 441 | $results['captcha_failure_chart_string'] = implode(',', $chartCaptchaFailure); |
| 442 | 442 | $results['label_chart_string'] = "'" . implode("','", $labels) . "'"; |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | $ip = $log['ip']; |
| 467 | 467 | $sessionId = $log['session_id']; |
| 468 | 468 | |
| 469 | - $this->ipDetail[$t][$ip]['session_id'][$sessionId ] = 1; |
|
| 469 | + $this->ipDetail[$t][$ip]['session_id'][$sessionId] = 1; |
|
| 470 | 470 | |
| 471 | 471 | if ($logActionCode === self::LOG_TEMPORARILY_BAN) { |
| 472 | 472 | $this->periodDetail[$t][$k]['action_temp_ban_count']++; |