| 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/administrator/components/com_djcatalog2/views/import/ |
Upload File : |
<?php
/**
* @package DJ-Catalog2
* @copyright Copyright (C) DJ-Extensions.com, All rights reserved.
* @license http://www.gnu.org/licenses GNU/GPL
* @author url: http://dj-extensions.com
* @author email contact@dj-extensions.com
*
*/
defined('_JEXEC') or die( 'Restricted access' );
use Joomla\CMS\MVC\View\HtmlView;
use Joomla\CMS\Access\Exception\NotAllowed;
use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Version;
use Joomla\CMS\Toolbar\ToolbarHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\HTML\Helpers\Sidebar;
jimport( 'joomla.application.component.view');
jimport( 'joomla.application.categories');
jimport('joomla.html.pane');
class Djcatalog2ViewImport extends HtmlView
{
function display($tpl = null)
{
$actions = ContentHelper::getActions('com_djcatalog2');
if ($actions['djcatalog2.admin.misc_settings'] == false) {
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
}
$categories = Djc2Categories::getInstance();
//$this->categories = $categories->getOptionList('- '.Text::_('JNONE').' -');
$this->categories = $categories->getOptionList('- '.Text::_('JNONE').' -', false, null, false, array(), 0);
$this->producers = $this->get('Producers');
$this->users = $this->get('Users');
$this->fieldgroups = $this->get('Fieldgroups');
$this->usergroups = $this->get('Usergroups');
$this->acl = $this->get('ACL');
$this->addToolbar();
if (class_exists('Sidebar')){
$this->sidebar = Sidebar::render();
}
$version = new Version;
if (version_compare($version->getShortVersion(), '3.0.0', '<')) {
$tpl = 'legacy';
}
parent::display($tpl);
}
protected function addToolbar()
{
ToolbarHelper::title(Text::_('COM_DJCATALOG2_IMPORT'), 'generic.png');
ToolbarHelper::preferences('com_djcatalog2', '450', '900');
ToolbarHelper::help('import', true);
}
}