File Manager

Current Directory: /home/astoriaah/www/administrator/components/com_admintools/View/HtaccessMaker
Viewing File: /home/astoriaah/www/administrator/components/com_admintools/View/HtaccessMaker/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\HtaccessMaker; defined('_JEXEC') || die; use Akeeba\AdminTools\Admin\Helper\ServerTechnology; use Akeeba\AdminTools\Admin\Model\HtaccessMaker; use FOF40\View\DataView\Html as BaseView; class Html extends BaseView { /** * .htaccess contents for preview * * @var string */ public $htaccess; /** * The .htaccess Maker configuration * * @var array */ public $htconfig; /** * 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 HtaccessMaker $model */ $model = $this->getModel(); $this->htaccess = $model->makeConfigFile(); $this->setLayout('plain'); } protected function onBeforeMain() { /** @var HtaccessMaker $model */ $model = $this->getModel(); $this->htconfig = $model->loadConfiguration(); $this->isSupported = ServerTechnology::isHtaccessSupported(); $this->enableRedirects = $model->enableRedirects(); } }