| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Old Sites/moke/administrator/components/com_cache/views/cache/ |
Upload File : |
<?php
/**
* @version $Id: view.html.php 21097 2011-04-07 15:38:03Z dextercowley $
* @package Joomla.Administrator
* @subpackage com_cache
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// no direct access
defined('_JEXEC') or die;
jimport('joomla.application.component.view');
/**
* HTML View class for the Cache component
*
* @static
* @package Joomla.Administrator
* @subpackage com_cache
* @since 1.6
*/
class CacheViewCache extends JView
{
protected $client;
protected $data;
protected $pagination;
protected $state;
public function display($tpl = null)
{
$this->data = $this->get('Data');
$this->client = $this->get('Client');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
$this->addToolbar();
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
$user = JFactory::getUser();
$condition = ($this->client->name == 'site');
JToolBarHelper::title(JText::_('COM_CACHE_CLEAR_CACHE'), 'clear.png');
JToolBarHelper::custom('delete', 'delete.png', 'delete_f2.png', 'JTOOLBAR_DELETE', true);
JToolBarHelper::divider();
if (JFactory::getUser()->authorise('core.admin', 'com_cache')) {
JToolBarHelper::preferences('com_cache');
}
JToolBarHelper::divider();
JToolBarHelper::help('JHELP_SITE_MAINTENANCE_CLEAR_CACHE');
}
}