| Server IP : 213.186.33.4 / Your IP : 216.73.216.193 Web Server : Apache System : Linux webm006.cluster103.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : awebpaca ( 35430) PHP Version : 8.5.0 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/a/w/e/awebpaca/minedecapgaronne/administrator/components/com_akeeba/controllers/ |
Upload File : |
<?php
/**
* @package AkeebaBackup
* @copyright Copyright (c)2009-2014 Nicholas K. Dionysopoulos
* @license GNU General Public License version 3, or later
*
* @since 1.3
*/
// Protect from unauthorized access
defined('_JEXEC') or die();
/**
* Log view controller class
*
*/
class AkeebaControllerLog extends AkeebaControllerDefault
{
public function execute($task)
{
if(!in_array($task, array('iframe','download'))) {
$task = 'browse';
}
parent::execute($task);
}
/**
* Display the log page
*
*/
public function browse($cachable = false, $urlparams = false)
{
$tag = $this->input->get('tag', null, 'cmd');
if(empty($tag)) $tag = null;
$model = $this->getThisModel();
$model->setState('tag', $tag);
AEPlatform::getInstance()->load_configuration(AEPlatform::getInstance()->get_active_profile());
parent::display($cachable, $urlparams);
}
// Renders the contents of the log's iframe
public function iframe($cachable = false, $urlparams = false)
{
$tag = $this->input->get('tag', null, 'cmd');
if(empty($tag)) $tag = null;
$model = $this->getThisModel();
$model->setState('tag', $tag);
AEPlatform::getInstance()->load_configuration(AEPlatform::getInstance()->get_active_profile());
parent::display();
flush();
JFactory::getApplication()->close();
}
public function download($cachable = false, $urlparams = false)
{
AEPlatform::getInstance()->load_configuration(AEPlatform::getInstance()->get_active_profile());
$tag = $this->input->get('tag', null, 'cmd');
if(empty($tag)) $tag = null;
@ob_end_clean(); // In case some braindead plugin spits its own HTML
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Content-Description: File Transfer");
header('Content-Type: text/plain');
header('Content-Disposition: attachment; filename="Akeeba Backup Debug Log.txt"');
$model = $this->getThisModel();
$model->setState('tag', $tag);
$model->echoRawLog();
flush();
JFactory::getApplication()->close();
}
}