PluginProbe
Disk Usage Insights / 1.2
Disk Usage Insights v1.2
trunk 1.0 1.10 1.11 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9
disk-usage-insights / views / index.php

index.php in Disk Usage Insights 1.2, at views/index.php

49 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH')) { // Ensure running within WordPress
3 exit;
4 }
5 ?>
6 <?php include_once __DIR__ . '/blocks/header.php'; ?>
7
8 <div id="DUI-results">
9
10 <div class="DUI-panel">
11 <div class="DUI-panel__headline">
12 Start a new analysis
13 </div>
14 <div class="DUI-panel__content">
15 <div style="margin: 20px;">
16 <form>
17 <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr($WP_NONCE); ?>">
18
19 <div>
20 <button class="button button-primary"
21 hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_scan"
22 hx-target="#DUI-results"
23
24 >Analyze Now</button>
25 </div>
26 <br>
27
28 <div>
29 A new snapshot of your file system will be generated and stored for later review.
30 </div>
31 <div>
32 Please be aware that each snapshot requires several MB of disk space, depending on your system.
33 </div>
34 </form>
35 </div>
36 </div>
37 </div>
38
39 <div id="DUI-snapshots" class="DUI-panel"
40 hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_list_snapshots"
41 hx-vals='{"_ajax_nonce":"<?php echo esc_attr($WP_NONCE); ?>"}'
42 hx-trigger="load">
43 <div class="DUI-panel__headline">
44 ...
45 </div>
46 </div>
47
48 </div>
49