PluginProbe
Defender Security – Malware Scanner, Login Security & Firewall / 6.3.0
Defender Security – Malware Scanner, Login Security & Firewall v6.3.0
6.3.0 6.2.3 6.2.4 6.2.0 6.2.1 6.2.2 6.1.0 5.3.1 5.4.0 5.4.1 5.5.0 5.5.1 5.6.0 5.6.1 5.6.2 5.7.0 5.7.1 5.7.2 5.8.0 5.8.1 5.9.0 6.0.0 6.0.1 3.0.1 3.1.0 All 141 releases
← All changes | src/view/ip-lockout/locked.php +15 -16 5.5.0 → 6.3.0 View file →
@@ -16,8 +16,9 @@
16 16 <html lang="en">
17 17 <head>
18 18 <meta charset="UTF-8">
19 19 <meta name="viewport" content="width=device-width, initial-scale=1">
20 + <?php echo $discourage_crawlers ? '<meta name="robots" content="noindex, nofollow">' : ''; ?>
20 21 <title>
21 22 <?php
22 23 $devman_img = defender_asset_url( '/assets/img/def-stand.svg' );
23 24 $devman_icon = defender_asset_url( '/assets/img/defender-30.svg' );
@@ -139,9 +140,9 @@
139 140 background-position: center;
140 141 }
141 142
142 143 </style>
143 - <?php if ( ! empty( $is_unlock_me_agf ) || ! empty( $is_unlock_me ) ) { ?>
144 + <?php if ( true === $is_unlock_me_agf || true === $is_unlock_me ) { ?>
144 145 <link rel="stylesheet" href="<?php echo esc_url( defender_asset_url( '/assets/css/unlock.css' ) ); ?>">
145 146 <script src="<?php echo esc_url_raw( includes_url( '/js/jquery/jquery.min.js' ) ); ?>"></script>
146 147 <?php } ?>
147 148 </head>
@@ -151,20 +152,20 @@
151 152 <div class="container">
152 153 <?php
153 154 if (
154 155 ( false === $info['hide_branding'] ) ||
155 - ( true === $info['hide_branding'] && ! empty( $info['hero_image'] ) )
156 + ( true === $info['hide_branding'] && isset( $info['hero_image'] ) && '' !== $info['hero_image'] )
156 157 ) {
157 158 echo '<div class="image"></div>';
158 159 }
159 160 ?>
160 161 <h1 class="locked_page_header"><?php esc_html_e( 'Access Denied', 'defender-security' ); ?></h1>
161 - <p class="message" <?php echo ! empty( $hide_btn_agf ) ? 'style="margin-top: -1.5em; margin-bottom: 3em"' : ''; ?>>
162 + <p class="message" <?php echo true === $hide_btn_agf ? 'style="margin-top: -1.5em; margin-bottom: 3em"' : ''; ?>>
162 163 <?php
163 164 echo wp_kses_post( $message );
164 - echo ! empty( $hide_btn_agf ) ? '' : '<br/>';
165 - if ( ! empty( $is_unlock_me_agf ) ) {
166 - if ( empty( $hide_btn_agf ) ) {
165 + echo true === $hide_btn_agf ? '' : '<br/>';
166 + if ( true === $is_unlock_me_agf ) {
167 + if ( true !== $hide_btn_agf ) {
167 168 printf(
168 169 /* translators: 1. Module name. 2. Button title. */
169 170 esc_html__(
170 171 'Your IP appeared in the %s service. Click on the %s button below to unlock yourself.',
@@ -182,9 +183,9 @@
182 183 ),
183 184 '<strong>' . $module_name_agf . '</strong>'
184 185 );
185 186 }
186 - } else if ( ! empty( $is_unlock_me ) ) {
187 + } elseif ( true === $is_unlock_me ) {
187 188 printf(
188 189 /* translators: %s: Button title. */
189 190 esc_html__(
190 191 'If you are a site admin, click on the %s button below to unlock yourself.',
@@ -194,10 +195,10 @@
194 195 );
195 196 }
196 197 ?>
197 198 </p>
198 - <?php if ( ! empty( $is_unlock_me_agf ) ) {
199 - if ( empty( $hide_btn_agf ) ) { ?>
199 + <?php if ( true === $is_unlock_me_agf ) {
200 + if ( true !== $hide_btn_agf ) { ?>
200 201 <div class="unlock_wrap sui-wrap">
201 202 <!--Step#1-->
202 203 <form id="wd_agf_unlock_me_form">
203 204 <input type="checkbox" id="wd_agf_unlock_me_checkbox"
@@ -246,9 +247,9 @@
246 247 </p>
247 248 </div>
248 249 </div>
249 250 <?php }
250 - } else if ( ! empty( $is_unlock_me ) ) { ?>
251 + } elseif ( true === $is_unlock_me ) { ?>
251 252 <div class="unlock_wrap sui-wrap">
252 253 <!--Step#1-->
253 254 <button type="button" id="wd_step_show_toggle"
254 255 class="sui-button sui-button-lg sui-button-blue"
@@ -304,9 +305,9 @@
304 305 </div>
305 306
306 307 </div>
307 308 <?php } ?>
308 - <?php if ( ! empty( $remaining_time ) && is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
309 + <?php if ( is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
309 310 <p class="message"><?php esc_html_e( 'You will be able to attempt to access again in:', 'defender-security' ); ?></p>
310 311 <p id="countdown-time"><span class="sui-icon-stopwatch" aria-hidden="true"></span><span
311 312 id="remaining-time"></span></p>
312 313 <?php } ?>
@@ -322,9 +323,9 @@
322 323 <?php
323 324 }
324 325 ?>
325 326 </div>
326 -<?php if ( ! empty( $remaining_time ) && is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
327 +<?php if ( is_int( $remaining_time ) && $remaining_time > 0 ) { ?>
327 328 <script>
328 329 function CountDownTimer(duration, granularity) {
329 330 this.duration = duration;
330 331 this.granularity = granularity || 1000;
@@ -416,9 +417,9 @@
416 417 }
417 418 </script>
418 419 <?php } ?>
419 420
420 -<?php if ( ! empty( $is_unlock_me_agf ) && empty( $hide_btn_agf ) ) { ?>
421 +<?php if ( true === $is_unlock_me_agf && true !== $hide_btn_agf ) { ?>
421 422 <script>
422 423 let altcha = <?php echo json_encode( $altcha ); ?>;
423 424
424 425 jQuery(function ($) {
@@ -472,12 +473,10 @@
472 473 window.location.reload(true);
473 474 });
474 475 });
475 476 </script>
476 - <script src="<?php echo plugins_url( 'assets/js/vendor.js', WP_DEFENDER_FILE ); ?>"></script>
477 - <script src="<?php echo plugins_url( 'assets/js/manifest.js', WP_DEFENDER_FILE ); ?>"></script>
478 477 <script src="<?php echo plugins_url( 'assets/js/altcha.js', WP_DEFENDER_FILE ); ?>"></script>
479 -<?php } else if ( ! empty( $is_unlock_me ) ) { ?>
478 +<?php } elseif ( true === $is_unlock_me ) { ?>
480 479 <script>
481 480 jQuery(function ($) {
482 481 //Verify user.
483 482 function verifyUser(that) {