File Manager

Current Directory: /home/astoriaah/www/administrator/components/com_admintools/View/NginXConfMaker
Viewing File: /home/astoriaah/www/administrator/components/com_admintools/View/NginXConfMaker/Html.php
<?php /** * @package admintools * @copyright Copyright (c)2010-2022 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Akeeba\AdminTools\Admin\View\NginXConfMaker; defined('_JEXEC') || die; use Akeeba\AdminTools\Admin\Helper\ServerTechnology; use Akeeba\AdminTools\Admin\Model\NginXConfMaker; use FOF40\View\DataView\Html as BaseView; class Html extends BaseView { /** * nginx.conf contents for preview * * @var string */ public $nginxconf; /** * The nginx.conf Maker configuration * * @var array */ public $nginxconfig; /** * Is this supported? 0 No, 1 Yes, 2 Maybe * * @var int */ public $isSupported; /** * Should I enable www and non-www redirects, based on the value of $live_site? * * @var bool */ public $enableRedirects; protected function onBeforePreview() { /** @var NginXConfMaker $model */ $model = $this->getModel(); $this->nginxconf = $model->makeConfigFile(); $this->setLayout('plain'); } protected function onBeforeMain() { /** @var NginXConfMaker $model */ $model = $this->getModel(); $this->nginxconfig = $model->loadConfiguration(); $this->isSupported = ServerTechnology::isNginxSupported(); $this->enableRedirects = $model->enableRedirects(); } }