403Webshell
Server IP : 167.99.224.18  /  Your IP : 216.73.216.136
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux wordpress-ubuntu-s-1vcpu-1gb-nyc1-01 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.0.25
Disable Function : 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/wp-content/plugins-old/duplicator/views/tools/diagnostics/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/wp-content/plugins-old/duplicator/views/tools/diagnostics/inc.data.php
<?php

use Duplicator\Utils\Support\SupportToolkit;

defined('ABSPATH') || defined('DUPXABSPATH') || exit;

?>

<!-- ==============================
OPTIONS DATA -->
<div class="dup-box">
    <div class="dup-box-title">
        <i class="fa fa-th-list"></i>
        <?php esc_html_e("Utils", 'duplicator'); ?>
        <div class="dup-box-arrow"></div>
    </div>
    <div class="dup-box-panel" id="dup-settings-diag-opts-panel" style="<?php echo esc_html($ui_css_opts_panel); ?>">
        <table class="dup-reset-opts">
            <tr style="vertical-align:text-top">
                <td>
                    <button id="dup-remove-installer-files-btn" type="button" class="button button-small dup-fixed-btn" onclick="Duplicator.Tools.deleteInstallerFiles();">
                        <?php esc_html_e("Remove Installation Files", 'duplicator'); ?>
                    </button>
                </td>
                <td>
                    <?php esc_html_e("Removes all reserved installer files.", 'duplicator'); ?>
                    <a href="javascript:void(0)" onclick="jQuery('#dup-tools-delete-moreinfo').toggle()">[<?php esc_html_e("more info", 'duplicator'); ?>]</a><br/>

                    <div id="dup-tools-delete-moreinfo">
                        <?php
                            esc_html_e("Clicking on the 'Remove Installation Files' button will attempt to remove the installer files used by Duplicator.  These files should not "
                            . "be left on production systems for security reasons. Below are the files that should be removed.", 'duplicator');
                            echo "<br/><br/>";

                            $installer_files = array_keys($installer_files);
                            array_push($installer_files, '[HASH]_archive.zip/daf');
                            echo '<i>' . implode('<br/>', $installer_files) . '</i>';
                            echo "<br/><br/>";
                            ?>
                    </div>
                </td>
            </tr>
            <tr>
                <td>
                    <button type="button" class="button button-small dup-fixed-btn" onclick="Duplicator.Tools.ConfirmClearBuildCache()">
                        <?php esc_html_e("Clear Build Cache", 'duplicator'); ?>
                    </button>
                </td>
                <td><?php esc_html_e("Removes all build data from:", 'duplicator'); ?> [<?php echo DUP_Settings::getSsdirTmpPath() ?>].</td>
            </tr>
            <tr>
                <td>
                    <button 
                       type="button"
                       id="dup-download-diagnostic-data-btn"
                       class="button button-small dup-fixed-btn" 
                       <?php disabled(!SupportToolkit::isAvailable()); ?>
                       >
                        <?php esc_html_e('Get Diagnostic Data', 'duplicator-pro'); ?>
                    </button>
                </td>
                <td>
                    <?php esc_html_e('Downloads a ZIP archive with all relevant diagnostic information.', 'duplicator-pro'); ?>
                    <?php if (!SupportToolkit::isAvailable()) : ?>
                        <i 
                           class="fa fa-question-circle data-size-help" 
                           data-tooltip-title="Diagnostic Data"
                           data-tooltip="<?php esc_attr_e('The ZipArchive extensions is required to create the diagnostic data.', 'duplicator-pro'); ?>" 
                           aria-expanded="false">
                        </i>
                    <?php endif; ?>
                </td>
            </tr>
        </table>
    </div>
</div>
<br/>

<!-- ==========================================
THICK-BOX DIALOGS: -->
<?php
    $confirmClearBuildCache             = new DUP_UI_Dialog();
    $confirmClearBuildCache->title      = __('Clear Build Cache?', 'duplicator');
    $confirmClearBuildCache->message    = __('This process will remove all build cache files. Be sure no backups are currently building or else they will be cancelled.', 'duplicator');
    $confirmClearBuildCache->jscallback = 'Duplicator.Tools.ClearBuildCache()';
    $confirmClearBuildCache->initConfirm();
?>

<script>
jQuery(document).ready(function($)
{
    Duplicator.Tools.ConfirmClearBuildCache = function ()
    {
         <?php $confirmClearBuildCache->showConfirm(); ?>
    }

    Duplicator.Tools.ClearBuildCache = function ()
    {
        window.location = '?page=duplicator-tools&tab=diagnostics&action=tmp-cache&_wpnonce=<?php echo esc_js($nonce); ?>';
    }

    $('#dup-download-diagnostic-data-btn').click(function () {
        window.location = <?php echo json_encode(SupportToolkit::getSupportToolkitDownloadUrl()); ?>;
    });
});


Duplicator.Tools.deleteInstallerFiles = function()
{
    <?php
    $url = DUP_CTRL_Tools::getCleanFilesAcrtionUrl();
    echo "window.location = '{$url}';";
    ?>
}
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit