| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.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 : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nimes/administrator/components/com_jce/views/browser/ |
Upload File : |
<?php
/**
* @package JCE
* @subpackage Admin
*
* @copyright Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
* @copyright Copyright (c) 2009-2023 Ryan Demmer. All rights reserved
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('JPATH_PLATFORM') or die;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\Helpers\Sidebar;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Plugin\PluginHelper;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Uri\Uri;
class JceViewBrowser extends HtmlView
{
protected $icons;
protected $state;
/**
* Display the view.
*/
public function display($tpl = null)
{
if (!PluginHelper::isEnabled('quickicon', 'jce')) {
Factory::getApplication()->redirect('index.php?option=com_jce');
}
$user = Factory::getUser();
$this->state = $this->get('State');
$this->params = ComponentHelper::getParams('com_jce');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
throw new Exception(implode("\n", $errors), 500);
}
HTMLHelper::_('jquery.framework');
$document = Factory::getDocument();
$document->addStyleSheet(Uri::root(true) . '/media/com_jce/admin/css/browser.min.css');
$this->addToolbar();
if (Factory::getApplication()->input->getInt('sidebar', 1) == 1) {
$this->sidebar = Sidebar::render();
}
parent::display($tpl);
}
/**
* Add the page title and toolbar.
*
* @since 1.6
*/
protected function addToolbar()
{
ToolbarHelper::title('JCE - ' . Text::_('WF_BROWSER_TITLE'), 'picture');
Sidebar::setAction('index.php?option=com_jce&view=browser');
}
}