PluginProbe
Easy Basic Authentication – Add basic auth to site or admin area / 4.1.0
Easy Basic Authentication – Add basic auth to site or admin area v4.1.0
4.1.0 trunk 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.4 1.4.1 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 1.6.2 1.6.3 1.6.4 1.7 1.7.1 1.8 1.8.1 All 51 releases
← All changes | template/log_page.php +13 -7 1.74.1.0 View file →
@@ -1,8 +1,14 @@
1 +<?php
2 +if ( ! defined( 'ABSPATH' ) ) {
3 + exit;
4 +}
5 +?>
1 6 <div class="wrap">
2 7 <h2><?php echo esc_html__('Unauthorized access log', 'easy-basic-authentication'); ?></h2>
3 8 <p>
4 9 <form method="post" action="<?php echo esc_url(admin_url('admin.php?page=basic-auth-login')); ?>">
10 + <?php wp_nonce_field('eba_clear_logs', 'eba_clear_nonce'); ?>
5 11 <input type="hidden" name="clear_mode" value="1">
6 12 <button type="submit" class="button button-primary">
7 13 <?php echo esc_html__('Clear log', 'easy-basic-authentication'); ?>
8 14 </button>
@@ -19,16 +25,16 @@
19 25 </tr>
20 26 </thead>
21 27 <tbody>
22 28 <?php
23 - foreach ($user_log_data as $entry) {
24 - $new = $entry['viewed']?'':' ('.esc_html__('new', 'easy-basic-authentication').')';
29 + foreach ($user_log_data as $basic_auth_entry) {
30 + $basic_auth_new = $basic_auth_entry['viewed']?'':' ('.esc_html__('new', 'easy-basic-authentication').')';
25 31 echo "<tr>";
26 - echo "<td>" . esc_html($entry['id']) .esc_attr($new). "</td>";
27 - echo "<td>" . esc_html($entry['ip']) . "</td>";
28 - echo "<td>" . esc_html($entry['data']) . "</td>";
29 - echo "<td>" . esc_html($entry['browser']) . "</td>";
30 - echo "<td>" . esc_html(isset($entry['request_uri'])?$entry['request_uri']:'') . "</td>";
32 + echo "<td>" . esc_html($basic_auth_entry['id']) .esc_attr($basic_auth_new). "</td>";
33 + echo "<td>" . esc_html($basic_auth_entry['ip']) . "</td>";
34 + echo "<td>" . esc_html($basic_auth_entry['data']) . "</td>";
35 + echo "<td>" . esc_html($basic_auth_entry['browser']) . "</td>";
36 + echo "<td>" . esc_html(isset($basic_auth_entry['request_uri'])?$basic_auth_entry['request_uri']:'') . "</td>";
31 37 echo "</tr>";
32 38 }
33 39 ?>
34 40 </tbody>