# disk-usage-insights/1.7/views/scan.php

Disk Usage Insights, version 1.7. 45 lines.

- Page: https://pluginprobe.com/plugins/disk-usage-insights/1.7/code/views/scan.php
- Raw: https://pluginprobe.com/plugins/disk-usage-insights/1.7/raw/views/scan.php
- Modified: 2025-11-06T16:37:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/disk-usage-insights/1.7/code/views/scan.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) {  // Ensure running within WordPress
    exit;
}
?>
<div class="DUI-panel">
    <div class="DUI-panel__content">

        <div id="DUI-loading" style="margin:20px;">
            <div style="display:inline-block; vertical-align: top">
                <img width=32 height=32 style="vertical-align:middle; padding-right: 5px"
                    src="<?php echo esc_url($WP_PLUGIN_URL); ?>/res/img/loader.gif"
                    alt="Loading..."
                >
            </div>
            <div style="display:inline-block;">
                <div style="font-weight: bold">Scanning your WordPress system...</div>
                <div>
                    <br>
                    Scanning can take some time. You will be redirected automatically to the analysis results.
                </div>
                <div>
                    Please do not close this window.
                </div>

                <!-- STATUS -->
                <div hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_status"
                    hx-vals='{"_ajax_nonce":"<?php echo esc_js($WP_NONCE); ?>", "snapshot":"<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"}'
                    hx-trigger="every 1s">
                    <br>
                    ...
                </div>
            </div>

        </div>

        <!-- WORKER -->
        <div style="display:none" hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_worker"
            hx-vals='{"_ajax_nonce":"<?php echo esc_attr($WP_NONCE); ?>", "snapshot":"<?php echo esc_js($WP_SNAPSHOT_FILE); ?>"}'
            hx-trigger="load,every 5s">
            WORKER
        </div>

    </div>
</div>
```
