authorise('core.admin')) { throw new JAccessExceptionNotallowed(JText::_('JERROR_ALERTNOAUTHOR'), 403); } $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(); return parent::display($tpl); } /** * Setup the SubMenu * * @return void * * @since 1.6 * @note Necessary for Hathor compatibility * @deprecated 4.0 To be removed with Hathor */ protected function _setSubMenu() { try { $contents = $this->loadTemplate('navigation'); $document = JFactory::getDocument(); $document->setBuffer($contents, 'modules', 'submenu'); } catch (Exception $e) { } } /** * Setup the Toolbar * * @return void * * @since 1.6 */ protected function addToolbar() { JToolbarHelper::title(JText::_('COM_ADMIN_SYSTEM_INFORMATION'), 'info-2 systeminfo'); JToolbarHelper::link(JRoute::_('index.php?option=com_admin&view=sysinfo&format=text'), 'COM_ADMIN_DOWNLOAD_SYSTEM_INFORMATION_TEXT', 'download'); JToolbarHelper::link(JRoute::_('index.php?option=com_admin&view=sysinfo&format=json'), 'COM_ADMIN_DOWNLOAD_SYSTEM_INFORMATION_JSON', 'download'); JToolbarHelper::help('JHELP_SITE_SYSTEM_INFORMATION'); } }