HEX
Server: Apache/2.4.59 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2
System: Linux panel.ctvbarranquilla.com 5.15.0-102-generic #112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024 x86_64
User: bastidas (1002)
PHP: 8.2.18
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,exec,system,passthru,shell_exec,proc_open,popen
Upload Files
File: /home/bastidas/web/bastidas.tv/public_html/wp-content/plugins/unbounce/templates/settings.php
<?php
if (isset($_GET['settings-updated']) && count(get_settings_errors(UBConfig::UB_ADMIN_PAGE_SETTINGS)) === 0) {
    // add settings saved message with the class of "updated"
    add_settings_error(UBConfig::UB_ADMIN_PAGE_SETTINGS, 'unbounce-pages-settings-updated', 'Settings Saved.', 'updated');
}
?>

<div class="wrap">
    <?php echo UBTemplate::render('title'); ?>
    <?php settings_errors(UBConfig::UB_ADMIN_PAGE_SETTINGS); ?>

    <form action="options.php" method="post">
        <?php
        settings_fields(UBConfig::UB_ADMIN_PAGE_SETTINGS);
        do_settings_sections(UBConfig::UB_ADMIN_PAGE_SETTINGS);
        ?>

        <p class="submit">
            <?php echo get_submit_button('Save Changes', 'button-primary', 'submit', false); ?>
            <button type="button" class="button" onclick="resetInputs()">Reset Defaults</button>
        </p>
    </form>
    <script>
        function resetInputs() {
            const elements = document.getElementsByClassName('ub-settings-input');
            for (const element of elements) {
                if (element.dataset['default']) {
                    element.value = element.dataset['default'];
                }
            }
        }
    </script>
</div>