PluginProbe
GD Security Headers / 1.9
GD Security Headers v1.9
trunk 1.0 1.1 1.1.1 1.2 1.3 1.4 1.5 1.6 1.6.1 1.7 1.7.1 1.8 1.9
gd-security-headers / forms / tools / reportslog.php

reportslog.php in GD Security Headers 1.9, at forms/tools/reportslog.php

62 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 $list = array(
4 'd000' => __( 'Remove all logged data', 'gd-security-headers' ),
5 'd001' => __( 'Remove logged data older than 1 day', 'gd-security-headers' ),
6 'd003' => __( 'Remove logged data older than 3 days', 'gd-security-headers' ),
7 'd007' => __( 'Remove logged data older than 7 days', 'gd-security-headers' ),
8 'd014' => __( 'Remove logged data older than 14 days', 'gd-security-headers' ),
9 'd030' => __( 'Remove logged data older than 30 days', 'gd-security-headers' ),
10 'd060' => __( 'Remove logged data older than 60 days', 'gd-security-headers' ),
11 'd090' => __( 'Remove logged data older than 90 days', 'gd-security-headers' ),
12 'd180' => __( 'Remove logged data older than 180 days', 'gd-security-headers' ),
13 'd365' => __( 'Remove logged data older than 1 year', 'gd-security-headers' ),
14 );
15
16 ?>
17 <div class="d4p-group d4p-group-extra d4p-group-important">
18 <h3><?php esc_html_e( 'Important', 'gd-security-headers' ); ?></h3>
19 <div class="d4p-group-inner">
20 <?php esc_html_e( 'This will remove old entries from CSP and XXP reports log. This operation is not reversible.', 'gd-security-headers' ); ?>
21 </div>
22 </div>
23
24 <div class="d4p-group">
25 <h3><?php esc_html_e( 'Reports fo Cleanup', 'gd-security-headers' ); ?></h3>
26 <div class="d4p-group-inner">
27 <table class="form-table">
28 <tbody>
29 <tr valign="top">
30 <th scope="row"><?php esc_html_e( 'Select Tables', 'gd-security-headers' ); ?></th>
31 <td>
32 <label>
33 <input type="checkbox" class="widefat" name="gdsihtools[reportslog][csp]" value="on"/> <?php esc_html_e( 'CSP Reports', 'gd-security-headers' ); ?>
34 </label><br/>
35 <label>
36 <input type="checkbox" class="widefat" name="gdsihtools[reportslog][xxp]" value="on"/> <?php esc_html_e( 'XXP Reports', 'gd-security-headers' ); ?>
37 </label>
38 </td>
39 </tr>
40 </tbody>
41 </table>
42 </div>
43 </div>
44
45 <div class="d4p-group">
46 <h3><?php esc_html_e( 'Report Cleanup Period', 'gd-security-headers' ); ?></h3>
47 <div class="d4p-group-inner">
48 <table class="form-table">
49 <tbody>
50 <tr valign="top">
51 <th scope="row"><?php esc_html_e( 'Select Period', 'gd-security-headers' ); ?></th>
52 <td>
53 <div class="d4p-setting-select">
54 <?php d4p_render_select( $list, array( 'selected' => 'd365', 'name' => 'gdsihtools[reportslog][period]', 'class' => 'widefat' ) ); ?>
55 </div>
56 </td>
57 </tr>
58 </tbody>
59 </table>
60 </div>
61 </div>
62