PluginProbe
Disk Usage Insights / trunk
Disk Usage Insights vtrunk
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 / scan.php

scan.php in Disk Usage Insights trunk, at views/scan.php

47 lines 1.8 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 <div class="DUI-panel">
7 <div class="DUI-panel__content">
8
9 <div id="DUI-loading" style="margin:20px;">
10 <div style="display:inline-block; vertical-align: top">
11 <img width=32 height=32 style="vertical-align:middle; padding-right: 5px"
12 src="<?php echo esc_url($WP_PLUGIN_URL); ?>/res/img/loader.gif"
13 alt="Loading..."
14 >
15 </div>
16 <div style="display:inline-block;">
17 <div style="font-weight: bold">Scanning your WordPress system...</div>
18 <div>
19 <br>
20 Scanning can take some time. You will be redirected automatically to the analysis results.
21 </div>
22 <div>
23 Please do not close this window.
24 </div>
25
26 <!-- STATUS -->
27 <div hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_status"
28 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>", "snapshot":"<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"}'
29 hx-include="[name='counter']"
30 hx-trigger="every 1s">
31 <input type="hidden" name="counter" value="1">
32 <br>
33 ...
34 </div>
35 </div>
36
37 </div>
38
39 <!-- WORKER -->
40 <div style="display:none" hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_worker"
41 hx-vals='{"_ajax_nonce":"<?php echo esc_attr($WP_NONCE); ?>", "snapshot":"<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"}'
42 hx-trigger="load,every 5s">
43 WORKER
44 </div>
45
46 </div>
47 </div>