@@ -58,20 +58,20 @@ |
||
58 | 58 | </thead> |
59 | 59 | <tbody> |
60 | 60 | <?php foreach ($ip_log_list as $ipInfo) : ?> |
61 | - <?php $logData = is_array($ipInfo['log_data']) ? $ipInfo['log_data'] : json_decode($ipInfo['log_data'], true ); ?> |
|
61 | + <?php $logData = is_array($ipInfo['log_data']) ? $ipInfo['log_data'] : json_decode($ipInfo['log_data'], true); ?> |
|
62 | 62 | <?php |
63 | 63 | |
64 | 64 | $text_warning = ''; |
65 | 65 | |
66 | - if ($logData['pageviews_m'] > 6 || $logData['pageviews_h'] > 50 || $logData['pageviews_d'] > 100 ) { |
|
66 | + if ($logData['pageviews_m'] > 6 || $logData['pageviews_h'] > 50 || $logData['pageviews_d'] > 100) { |
|
67 | 67 | $text_warning = '<span class="so-text-warning"><i class="fas fa-exclamation-triangle"></i></span>'; |
68 | 68 | } |
69 | 69 | |
70 | - if ($logData['flag_js_cookie'] > 2 || $logData['flag_multi_session'] > 2 || $logData['flag_empty_referer'] > 2 ) { |
|
70 | + if ($logData['flag_js_cookie'] > 2 || $logData['flag_multi_session'] > 2 || $logData['flag_empty_referer'] > 2) { |
|
71 | 71 | $text_warning = '<span class="so-text-warning"><i class="fas fa-exclamation-triangle"></i></span>'; |
72 | 72 | } |
73 | 73 | |
74 | - if ($logData['flag_js_cookie'] > 3 || $logData['flag_multi_session'] > 3 || $logData['flag_empty_referer'] > 3 ) { |
|
74 | + if ($logData['flag_js_cookie'] > 3 || $logData['flag_multi_session'] > 3 || $logData['flag_empty_referer'] > 3) { |
|
75 | 75 | $text_warning = '<span class="so-text-danger"><i class="fas fa-exclamation-triangle"></i></span>'; |
76 | 76 | } |
77 | 77 | ?> |
@@ -30,7 +30,7 @@ |
||
30 | 30 | public static function get(array $setting): MessengerInterface |
31 | 31 | { |
32 | 32 | $botToken = $setting['config']['bot_token'] ?? ''; |
33 | - $channel = $setting['config']['channel'] ?? ''; |
|
33 | + $channel = $setting['config']['channel'] ?? ''; |
|
34 | 34 | |
35 | 35 | return new Slack($botToken, $channel); |
36 | 36 | } |
@@ -30,10 +30,10 @@ |
||
30 | 30 | */ |
31 | 31 | public static function get(array $setting): MessengerInterface |
32 | 32 | { |
33 | - $apiKey = $setting['config']['api_key'] ?? ''; |
|
33 | + $apiKey = $setting['config']['api_key'] ?? ''; |
|
34 | 34 | $domain = $setting['config']['domain_name'] ?? ''; |
35 | - $sender = $setting['config']['sender'] ?? ''; |
|
36 | - $recipients = $setting['config']['recipients'] ?? []; |
|
35 | + $sender = $setting['config']['sender'] ?? ''; |
|
36 | + $recipients = $setting['config']['recipients'] ?? []; |
|
37 | 37 | |
38 | 38 | $instance = new Mailgun($apiKey, $domain); |
39 | 39 | $instance->setSubject(__('core', 'messenger_text_mail_subject')); |
@@ -29,10 +29,10 @@ |
||
29 | 29 | */ |
30 | 30 | public static function get(array $setting): MessengerInterface |
31 | 31 | { |
32 | - $serverUrl = $setting['config']['server_url'] ?? ''; |
|
33 | - $userId = $setting['config']['user_id'] ?? ''; |
|
32 | + $serverUrl = $setting['config']['server_url'] ?? ''; |
|
33 | + $userId = $setting['config']['user_id'] ?? ''; |
|
34 | 34 | $accessToken = $setting['config']['access_token'] ?? ''; |
35 | - $channel = $setting['config']['channel'] ?? ''; |
|
35 | + $channel = $setting['config']['channel'] ?? ''; |
|
36 | 36 | |
37 | 37 | return new RocketChat($accessToken, $userId, $serverUrl, $channel); |
38 | 38 | } |
@@ -614,9 +614,9 @@ |
||
614 | 614 | $this->initComponents(); |
615 | 615 | |
616 | 616 | $processMethods = [ |
617 | - 'isRuleExist', // Stage 1 - Looking for rule table. |
|
618 | - 'isTrustedBot', // Stage 2 - Detect popular search engine. |
|
619 | - 'isFakeRobot', // Stage 3 - Reject fake search engine crawlers. |
|
617 | + 'isRuleExist', // Stage 1 - Looking for rule table. |
|
618 | + 'isTrustedBot', // Stage 2 - Detect popular search engine. |
|
619 | + 'isFakeRobot', // Stage 3 - Reject fake search engine crawlers. |
|
620 | 620 | 'isIpComponent', // Stage 4 - IP manager. |
621 | 621 | 'isComponents' // Stage 5 - Check other components. |
622 | 622 | ]; |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $str = implode( |
80 | 80 | '', |
81 | 81 | array_map( |
82 | - function ($word) { |
|
82 | + function($word) { |
|
83 | 83 | return ucwords($word); |
84 | 84 | }, |
85 | 85 | $str |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | $this->kernel->setClosure( |
81 | 81 | 'xss_post', |
82 | - function () use ($xss) { |
|
82 | + function() use ($xss) { |
|
83 | 83 | if (!empty($_POST)) { |
84 | 84 | foreach (array_keys($_POST) as $k) { |
85 | 85 | $_POST[$k] = $xss->clean($_POST[$k]); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | $this->kernel->setClosure( |
106 | 106 | 'xss_get', |
107 | - function () use ($xss) { |
|
107 | + function() use ($xss) { |
|
108 | 108 | if (!empty($_GET)) { |
109 | 109 | foreach (array_keys($_GET) as $k) { |
110 | 110 | $_GET[$k] = $xss->clean($_GET[$k]); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | |
130 | 130 | $this->kernel->setClosure( |
131 | 131 | 'xss_cookie', |
132 | - function () use ($xss) { |
|
132 | + function() use ($xss) { |
|
133 | 133 | if (!empty($_COOKIE)) { |
134 | 134 | foreach (array_keys($_COOKIE) as $k) { |
135 | 135 | $_COOKIE[$k] = $xss->clean($_COOKIE[$k]); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | |
155 | 155 | $this->kernel->setClosure( |
156 | 156 | 'xss_protection', |
157 | - function () use ($xss, $protectedList) { |
|
157 | + function() use ($xss, $protectedList) { |
|
158 | 158 | foreach ($protectedList as $v) { |
159 | 159 | $k = $v['variable'] ?? 'undefined'; |
160 | 160 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $str = implode( |
80 | 80 | '', |
81 | 81 | array_map( |
82 | - function ($word) { |
|
82 | + function($word) { |
|
83 | 83 | return ucwords($word); |
84 | 84 | }, |
85 | 85 | $str |
@@ -79,7 +79,7 @@ |
||
79 | 79 | $str = implode( |
80 | 80 | '', |
81 | 81 | array_map( |
82 | - function ($word) { |
|
82 | + function($word) { |
|
83 | 83 | return ucwords($word); |
84 | 84 | }, |
85 | 85 | $str |