| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/old/administrator/components/com_akeeba/Controller/ |
Upload File : |
<?php
/**
* @package akeebabackup
* @copyright Copyright (c)2006-2019 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Akeeba\Backup\Admin\Controller;
// Protect from unauthorized access
defined('_JEXEC') or die();
use Akeeba\Backup\Admin\Controller\Mixin\CustomACL;
use FOF30\Controller\Controller;
/**
* Controller for the SFTP folder browser
*/
class SFTPBrowser extends Controller
{
use CustomACL;
protected function onBeforeMain()
{
/** @var \Akeeba\Backup\Admin\Model\SFTPBrowser $model */
$model = $this->getModel();
// Grab the data and push them to the model
$model->host = $this->input->get('host', '', 'string');
$model->port = $this->input->get('port', 21, '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);
if (empty($model->port))
{
$model->port = 22;
}
$ret = $model->doBrowse();
@ob_end_clean();
echo '###' . json_encode($ret) . '###';
flush();
$this->container->platform->closeApplication();
}
}