| 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/View/Extradirs/ |
Upload File : |
<?php
/**
* @package solo
* @copyright Copyright (c)2014-2025 Nicholas K. Dionysopoulos / Akeeba Ltd
* @license GNU General Public License version 3, or later
*/
namespace Solo\View\Extradirs;
use Awf\Mvc\View;
use Awf\Text\Text;
use Awf\Utils\Template;
use Solo\View\ViewTraits\ProfileIdAndName;
class Html extends View
{
use ProfileIdAndName;
/**
* Execute before displaying the main and only page of the off-site files inclusion page
*
* @return boolean
*/
public function onBeforeMain()
{
Template::addJs('media://js/solo/showon.js', $this->container->application);
Template::addJs('media://js/solo/configuration.js', $this->container->application);
Template::addJs('media://js/solo/fsfilters.js', $this->container->application);
Template::addJs('media://js/solo/extradirs.js', $this->container->application);
// Get a JSON representation of the directories data
/** @var \Solo\Model\Extradirs $model */
$model = $this->getModel();
$document = $this->container->application->getDocument();
$router = $this->container->router;
$document->addScriptOptions('akeeba.System.params.AjaxURL', $router->route('index.php?view=Extradirs&task=ajax'));
$document->addScriptOptions('akeeba.Configuration.URLs', [
'browser' => $router->route('index.php?view=Browser&processfolder=1&tmpl=component&folder='),
]);
$document->addScriptOptions('akeeba.IncludeFolders.guiData', $model->get_directories());
$this->getProfileIdAndName();
// Push translations
$doc = $this->container->application->getDocument();
$doc->lang('COM_AKEEBA_FILEFILTERS_LABEL_UIROOT');
$doc->lang('COM_AKEEBA_FILEFILTERS_LABEL_UIERRORFILTER');
return true;
}
}