PluginProbe
Easy Basic Authentication – Add basic auth to site or admin area / 1.3.2
Easy Basic Authentication – Add basic auth to site or admin area v1.3.2
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
← All changes | template/log_page.php +8 -11 trunk1.3.2 View file →
@@ -1,12 +1,11 @@
1 1 <div class="wrap">
2 - <h2><?php echo esc_html__('Unauthorized access log', 'easy-basic-authentication'); ?></h2>
2 + <h2><?php echo __('Unauthorized access log', 'easy-basic-authentication'); ?></h2>
3 3 <p>
4 4 <form method="post" action="<?php echo esc_url(admin_url('admin.php?page=basic-auth-login')); ?>">
5 - <?php wp_nonce_field('eba_clear_logs', 'eba_clear_nonce'); ?>
6 5 <input type="hidden" name="clear_mode" value="1">
7 6 <button type="submit" class="button button-primary">
8 - <?php echo esc_html__('Clear log', 'easy-basic-authentication'); ?>
7 + <?php echo __('Clear log', 'easy-basic-authentication'); ?>
9 8 </button>
10 9 </form>
11 10 </p>
12 11 <table class="wp-list-table widefat fixed striped">
@@ -11,25 +10,23 @@
11 10 </p>
12 11 <table class="wp-list-table widefat fixed striped">
13 12 <thead>
14 13 <tr>
15 - <th><?php echo esc_html__('ID', 'easy-basic-authentication'); ?></th>
16 - <th><?php echo esc_html__('IP Address', 'easy-basic-authentication'); ?></th>
17 - <th><?php echo esc_html__('Date', 'easy-basic-authentication'); ?></th>
18 - <th><?php echo esc_html__('Browser', 'easy-basic-authentication'); ?></th>
19 - <th><?php echo esc_html__('Request URI', 'easy-basic-authentication'); ?></th>
14 + <th><?php echo __('ID', 'easy-basic-authentication'); ?></th>
15 + <th><?php echo __('IP Address', 'easy-basic-authentication'); ?></th>
16 + <th><?php echo __('Date', 'easy-basic-authentication'); ?></th>
17 + <th><?php echo __('Browser', 'easy-basic-authentication'); ?></th>
20 18 </tr>
21 19 </thead>
22 20 <tbody>
23 21 <?php
24 22 foreach ($user_log_data as $entry) {
25 - $new = $entry['viewed']?'':' ('.esc_html__('new', 'easy-basic-authentication').')';
23 + $new = $entry['viewed']?'':' ('.__('new', 'easy-basic-authentication').')';
26 24 echo "<tr>";
27 - echo "<td>" . esc_html($entry['id']) .esc_attr($new). "</td>";
25 + echo "<td>" . esc_html($entry['id']) .$new. "</td>";
28 26 echo "<td>" . esc_html($entry['ip']) . "</td>";
29 27 echo "<td>" . esc_html($entry['data']) . "</td>";
30 28 echo "<td>" . esc_html($entry['browser']) . "</td>";
31 - echo "<td>" . esc_html(isset($entry['request_uri'])?$entry['request_uri']:'') . "</td>";
32 29 echo "</tr>";
33 30 }
34 31 ?>
35 32 </tbody>