# disk-usage-insights/1.9/views/index.php

Disk Usage Insights, version 1.9. 50 lines.

- Page: https://pluginprobe.com/plugins/disk-usage-insights/1.9/code/views/index.php
- Raw: https://pluginprobe.com/plugins/disk-usage-insights/1.9/raw/views/index.php
- Modified: 2025-11-18T12:28:20+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.9/code/views/index.php#L10-L20`.

```php
<?php
if (!defined('ABSPATH')) {  // Ensure running within WordPress
    exit;
}
?>
<?php include_once __DIR__ . '/blocks/header.php'; ?>

<div id="DUI-results">

    <div class="DUI-panel">
        <div class="DUI-panel__headline">
            Start a new analysis
        </div>
        <div class="DUI-panel__content">
            <div style="margin: 20px;">
                <form>
                    <input type="hidden" name="_ajax_nonce" value="<?php echo esc_attr($WP_NONCE); ?>">

                    <div>
                        <button class="button button-primary"
                            hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_scan"
                            hx-target="#DUI-results"

                        >Analyze Now</button>
                        </div>
                    <br>

                    <div>
                        A new snapshot of your file system will be generated and stored for later review.
                    </div>
                    <div>
                        Please be aware that each snapshot requires several MB of disk space, depending on your system.
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="DUI-panel"
        hx-post="<?php echo esc_url($WP_ADMIN_AJAX_URL); ?>?action=dui_list_snapshots"
        hx-vals='{"_ajax_nonce":"<?php echo esc_attr($WP_NONCE); ?>"}'
        hx-trigger="load"
        hx-swap="outerHTML">
        <div class="DUI-panel__headline">
            ...
        </div>
    </div>

</div>

```
