| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/rescommittee/administrator/components/com_akeeba/controllers/ |
Upload File : |
<?php
/**
* @package AkeebaBackup
* @copyright Copyright (c)2009-2014 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
*
* @since 2.2
*/
// Protect from unauthorized access
defined('_JEXEC') or die();
/**
* SFTP folder browser controller
*
*/
class AkeebaControllerSftpbrowser extends AkeebaControllerDefault
{
public function execute($task)
{
$task = 'browse';
parent::execute($task);
}
public function browse($cachable = false, $urlparams = false)
{
$model = $this->getThisModel();
// Grab the data and push them to the model
$model->host = $this->input->get('host', '', 'string');
$model->port = $this->input->get('port', 22, 'int');
$model->username = $this->input->get('username', '', 'none', 2);
$model->password = $this->input->get('password', '', 'none', 2);
$model->privkey = $this->input->get('privkey', '', 'none', 2);
$model->pubkey = $this->input->get('pubkey', '', 'none', 2);
$model->directory = $this->input->get('directory', '', 'none', 2);
$ret = $model->doBrowse();
@ob_end_clean();
echo '###'.json_encode($ret).'###';
flush();
JFactory::getApplication()->close();
}
}