- md5
- 3c326229ec524de0c2d029d1c12c5bfe
- sha1
- 5bca339f42be829f9385a015a41e6c52ac47e7a5
- sha256
- c543ecfe80372c1de1063bda822bc6c81dde2b756441b49a690495afb084b53a
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
<?php
/**
* @package Joomla.Administrator
* @subpackage com_admin
*
* @copyright Copyright (C) 2005 - 2012 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'), 'systeminfo.png');
JToolbarHelper::help('JHELP_SITE_SYSTEM_INFORMATION');
}
}
The same content is in 3 releases, Joomla 3.0.0 to 3.0.2. See them all, or every version of this file.