/home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/Solo/View/Log
Edit: /home/suroeste/public_html/wp-content/plugins/akeebabackupwp/app/Solo/View/Log/Html.php (2408B)
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;
}
}