HEX
Server: Apache
System: Linux 235.120.168.184.host.secureserver.net 3.10.0-1160.88.1.el7.x86_64 #1 SMP Tue Mar 7 15:41:52 UTC 2023 x86_64
User: www (1001)
PHP: 8.0.26
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,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,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/w888.pro/wp-content/plugins/duplicator/src/Controllers/StorageController.php
<?php

namespace Duplicator\Controllers;

use DUP_UI_Dialog;
use Duplicator\Core\Views\TplMng;

class StorageController
{
    /**
     * Render storages page
     *
     * @return void
     */
    public static function render()
    {
        TplMng::getInstance()->render('mocks/storage/storage', array(
            'storages' => self::getStoragesData()
        ), true);
    }

    /**
     * Fet storage alert dialog box
     *
     * @param string $utm_medium UTM medium for the upsell link
     *
     * @return DUP_UI_Dialog
     */
    public static function getDialogBox($utm_medium)
    {
        require_once(DUPLICATOR_PLUGIN_PATH . '/classes/ui/class.ui.dialog.php');

        $storageAlert          = new DUP_UI_Dialog();
        $storageAlert->title   = __('Advanced Storage', 'duplicator');
        $storageAlert->height  = 600;
        $storageAlert->width   = 550;
        $storageAlert->okText  = '';
        $storageAlert->message = TplMng::getInstance()->render('mocks/storage/popup', array(
            'storages' => self::getStoragesData(),
            'utm_medium' => $utm_medium,
        ), false);
        $storageAlert->initAlert();

        return $storageAlert;
    }

    /**
     * Returns the storage data for the view
     *
     * @return array[]
     */
    private static function getStoragesData()
    {
        return array(
            array(
                'title'    => __('Amazon S3', 'duplicator'),
                'label'    => __('Amazon S3', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/aws.svg',
            ),
            array(
                'title'    => __('Google Drive', 'duplicator'),
                'label'    => __('Google Drive', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/google-drive.svg',
            ),
            array(
                'title'    => __('OneDrive', 'duplicator'),
                'label'    => __('OneDrive', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/onedrive.svg',
            ),
            array(
                'title'    => __('DropBox', 'duplicator'),
                'label'    => __('DropBox', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/dropbox.svg',
            ),
            array(
                'title'    => __('FTP/SFTP', 'duplicator'),
                'label'    => __('FTP/SFTP', 'duplicator'),
                'fa-class' => 'fas fa-network-wired',
            ),
            array(
                'title'    => __('Google Cloud Storage', 'duplicator'),
                'label'    => __('Google Cloud Storage', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/google-cloud.svg',
            ),
            array(
                'title'    => __('Back Blaze', 'duplicator'),
                'label'    => __('Back Blaze', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/backblaze.svg',
            ),
            array(
                'title'    => __('Cloudflare R2', 'duplicator'),
                'label'    => __('Cloudflare R2', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/cloudflare.svg',
            ),
            array(
                'title'    => __('DigitalOcean Spaces', 'duplicator'),
                'label'    => __('DigitalOcean Spaces', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/digital-ocean.svg',
            ),
            array(
                'title'    => __('Vultr Object Storage', 'duplicator'),
                'label'    => __('Vultr Object Storage', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/vultr.svg',
            ),
            array(
                'title'    => __('Dream Objects', 'duplicator'),
                'label'    => __('Dream Objects', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/dreamhost.svg',
            ),
            array(
                'title'    => __('Wasabi', 'duplicator'),
                'label'    => __('Wasabi', 'duplicator'),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/wasabi.svg',
            ),
            array(
                'title'    => __('S3-Compatible Provider', 'duplicator'),
                'label'    => __(
                    'S3-Compatible (Generic) Cloudian, Cloudn, Connectria, Constant, Exoscal, Eucalyptus, Nifty, Nimbula, Minio, etc...',
                    'duplicator'
                ),
                'iconUrl'  => DUPLICATOR_PLUGIN_URL . 'assets/img/aws.svg',
            ),
        );
    }
}