HEX
Server: Apache
System: Linux nc-ph-4101.simplemoneygoals.com 5.14.0-503.21.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Jan 12 09:45:05 EST 2025 x86_64
User: dailygoldindex (1004)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dailygoldindex/public_html/wp-content/plugins/toolkit/templates/settings.php
<?php

function epc_toolkit_settings_page() {
    if (isset($_POST['toggle_wp_cron'])) {
        $disable = ($_POST['toggle_wp_cron'] === 'disable');
        epc_toggle_wp_cron($disable);
        echo '<div class="updated"><p>Cron settings updated. Wait couple minutes and check again</p></div>';
    }
    $disabled = defined('DISABLE_WP_CRON') && DISABLE_WP_CRON;
    ?>
    <div class="wrap">
        <h1>Settings</h1>
        <form method="post">
            <h2><?php echo $disabled ? 'WP Cron disabled' : 'WP Cron enabled'; ?></h2>
            <button type="submit" name="toggle_wp_cron" value="<?php echo $disabled ? 'enable' : 'disable'; ?>" class="button button-primary">
                <?php echo $disabled ? 'Enable WP Cron' : 'Disable WP Cron'; ?>
            </button>
        </form>
    </div>
    <?php
}