- md5
- adce99ace1d12e417351a77c3cc68d55
- sha1
- 76a1fe6d615465e5eee8cf8a20189c435b362e05
- sha256
- a38ab042528637c4066b05cd21b4ca7f49050da288f5504970bc1e1ae8d1adf3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Sysinfo View class for the Admin component
*
* @package Joomla.Administrator
* @subpackage com_admin
* @since 1.6
*/
class AdminViewSysinfo extends JViewLegacy
{
/**
* @var array some php settings
*/
protected $php_settings = null;
/**
* @var array config values
*/
protected $config = null;
/**
* @var array somme system values
*/
protected $info = null;
/**
* @var string php info
*/
protected $php_info = null;
/**
* @var array informations about writable state of directories
*/
protected $directory = null;
/**
* Display the view
*/
public function display($tpl = null)
{
// Access check.
if (!JFactory::getUser()->authorise('core.admin'))
{
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
$this->php_settings = $this->get('PhpSettings');
$this->config = $this->get('config');
$this->info = $this->get('info');
$this->php_info = $this->get('PhpInfo');
$this->directory = $this->get('directory');
$this->addToolbar();
$this->_setSubMenu();
parent::display($tpl);
}
/**
* Setup the SubMenu
*
* @return void
*
* @since 1.6
* @note Necessary for Hathor compatibility
*/
protected function _setSubMenu()
{
try
{
$contents = $this->loadTemplate('navigation');
$document = JFactory::getDocument();
$document->setBuffer($contents, 'modules', 'submenu');
}
catch (Exception $e)
{
}
}
/**
* Setup the Toolbar
*
* @since 1.6
*/
protected function addToolbar()
{
JToolbarHelper::title(JText::_('COM_ADMIN_SYSTEM_INFORMATION'), 'info-2 systeminfo');
JToolbarHelper::help('JHELP_SITE_SYSTEM_INFORMATION');
}
}
The same content is in 5 releases, Joomla 3.3.2 to 3.3.6. See them all, or every version of this file.