HEX
Server: Apache
System: Linux s1 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: gerold (1018)
PHP: 7.4.33
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_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
Upload Files
File: /home/gerold/public_html/wp-content/plugins/snapshot-backups/tpl/modals/add-destination.php
<?php // phpcs:ignore
/**
 * Welcome modal.
 *
 * @package snapshot
 */

use WPMUDEV\Snapshot4\Helper;

$assets = new Helper\Assets();

wp_nonce_field( 'snapshot_s3_connection', '_wpnonce-snapshot_s3_connection' );

?>

<div class="sui-modal sui-modal-md" id="snapshot-add-destination-modal">
	<div
		role="dialog"
		id="snapshot-add-destination-dialog"
		class="sui-modal-content"
		aria-modal="true"
	>

		<?php
		$this->render(
			'modals/modal_parts/add-destination-screen-1',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/modal_parts/add-destination-screen-2-s3',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/modal_parts/add-destination-screen-3-s3',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/modal_parts/add-destination-screen-4-s3',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/modal_parts/add-destination-screen-2-gd',
			array(
				'assets'   => $assets,
				'auth_url' => $auth_url,
			)
		);
		$this->render(
			'modals/modal_parts/add-destination-screen-3-gd',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/modal_parts/add-destination-screen-4-gd',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/destinations/dropbox/step-1',
			array(
				'assets'   => $assets,
				'auth_url' => $dropbox_auth_url,
			)
		);
		$this->render(
			'modals/destinations/dropbox/step-2',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/destinations/dropbox/step-3',
			array(
				'assets' => $assets,
			)
		);

		// FTP destination modals.
		$this->render(
			'modals/destinations/ftp/step-1',
			array(
				'assets' => $assets,
			)
		);

		$this->render(
			'modals/destinations/ftp/step-2',
			array(
				'assets' => $assets,
			)
		);

		// OneDrive destination modals.
		$this->render(
			'modals/destinations/onedrive/step-1',
			array(
				'assets'   => $assets,
				'auth_url' => $onedrive_auth_url,
			)
		);
		$this->render(
			'modals/destinations/onedrive/step-2',
			array(
				'assets' => $assets,
			)
		);
		$this->render(
			'modals/destinations/onedrive/step-3',
			array(
				'assets' => $assets,
			)
		);
		?>

	</div>
</div>