| 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 _e("Important", "gd-security-headers"); ?></h3> |
| 19 |
<div class="d4p-group-inner"> |
| 20 |
<?php _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 _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 _e("Select Tables", "gd-security-headers"); ?></th> |
| 31 |
<td> |
| 32 |
<label> |
| 33 |
<input type="checkbox" class="widefat" name="gdsihtools[reportslog][csp]" value="on" /> <?php _e("CSP Reports", "gd-security-headers"); ?> |
| 34 |
</label><br/> |
| 35 |
<label> |
| 36 |
<input type="checkbox" class="widefat" name="gdsihtools[reportslog][xxp]" value="on" /> <?php _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 _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 _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 |
|