PluginProbe
Easy Basic Authentication – Add basic auth to site or admin area / 3.4
Easy Basic Authentication – Add basic auth to site or admin area v3.4
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 1.9 All 50 releases
easy-basic-authentication / template / log_page.php

log_page.php in Easy Basic Authentication – Add basic auth to site or admin area 3.4, at template/log_page.php

37 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <div class="wrap">
2 <h2><?php echo esc_html__('Unauthorized access log', 'easy-basic-authentication'); ?></h2>
3 <p>
4 <form method="post" action="<?php echo esc_url(admin_url('admin.php?page=basic-auth-login')); ?>">
5 <input type="hidden" name="clear_mode" value="1">
6 <button type="submit" class="button button-primary">
7 <?php echo esc_html__('Clear log', 'easy-basic-authentication'); ?>
8 </button>
9 </form>
10 </p>
11 <table class="wp-list-table widefat fixed striped">
12 <thead>
13 <tr>
14 <th><?php echo esc_html__('ID', 'easy-basic-authentication'); ?></th>
15 <th><?php echo esc_html__('IP Address', 'easy-basic-authentication'); ?></th>
16 <th><?php echo esc_html__('Date', 'easy-basic-authentication'); ?></th>
17 <th><?php echo esc_html__('Browser', 'easy-basic-authentication'); ?></th>
18 <th><?php echo esc_html__('Request URI', 'easy-basic-authentication'); ?></th>
19 </tr>
20 </thead>
21 <tbody>
22 <?php
23 foreach ($user_log_data as $entry) {
24 $new = $entry['viewed']?'':' ('.esc_html__('new', 'easy-basic-authentication').')';
25 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>";
31 echo "</tr>";
32 }
33 ?>
34 </tbody>
35 </table>
36 </div>
37