PluginProbe
Disk Usage Insights / 1.3
Disk Usage Insights v1.3
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 1.3, at views/scan.php

44 lines 1.6 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 <!-- STATUS -->
19 <div hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_status"
20 hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>", "snapshot":"<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"}'
21 hx-trigger="every 1s">
22 ...
23 </div>
24 </div>
25
26 <br>
27 <br>
28 <div>
29 Scanning can take some time. You will be redirected automatically to the analysis results.
30 </div>
31 <div>
32 Please do not close this window.
33 </div>
34 </div>
35
36 <!-- WORKER -->
37 <div style="display:none" hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_worker"
38 hx-vals='{"_ajax_nonce":"<?php echo esc_attr($WP_NONCE); ?>", "snapshot":"<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"}'
39 hx-trigger="load,every 5s">
40 WORKER
41 </div>
42
43 </div>
44 </div>