403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.243.197
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/pregrados/administrator/components/com_languages/src/View/Overrides/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/pregrados/administrator/components/com_languages/src/View/Overrides/HtmlView.php
<?php

/**
 * @package     Joomla.Administrator
 * @subpackage  com_languages
 *
 * @copyright   (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\Component\Languages\Administrator\View\Overrides;

use Joomla\CMS\Helper\ContentHelper;
use Joomla\CMS\Language\Text;
use Joomla\CMS\MVC\View\GenericDataException;
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Toolbar\ToolbarHelper;

// phpcs:disable PSR1.Files.SideEffects
\defined('_JEXEC') or die;
// phpcs:enable PSR1.Files.SideEffects

/**
 * View for language overrides list.
 *
 * @since  2.5
 */
class HtmlView extends BaseHtmlView
{
    /**
     * The items to list.
     *
     * @var     array
     * @since   2.5
     */
    protected $items;

    /**
     * The pagination object.
     *
     * @var     object
     * @since   2.5
     */
    protected $pagination;

    /**
     * The model state.
     *
     * @var     object
     * @since   2.5
     */
    protected $state;

    /**
     * An array containing all frontend and backend languages
     *
     * @var    array
     * @since  4.0.0
     */
    protected $languages;

    /**
     * Displays the view.
     *
     * @param   string  $tpl  The name of the template file to parse.
     *
     * @return  void
     *
     * @since   2.5
     */
    public function display($tpl = null)
    {
        $this->state         = $this->get('State');
        $this->items         = $this->get('Overrides');
        $this->languages     = $this->get('Languages');
        $this->pagination    = $this->get('Pagination');
        $this->filterForm    = $this->get('FilterForm');
        $this->activeFilters = $this->get('ActiveFilters');

        // Check for errors.
        if (count($errors = $this->get('Errors'))) {
            throw new GenericDataException(implode("\n", $errors));
        }

        $this->addToolbar();
        parent::display($tpl);
    }

    /**
     * Adds the page title and toolbar.
     *
     * @return  void
     *
     * @since   2.5
     */
    protected function addToolbar()
    {
        // Get the results for each action
        $canDo   = ContentHelper::getActions('com_languages');
        $toolbar = Toolbar::getInstance();

        ToolbarHelper::title(Text::_('COM_LANGUAGES_VIEW_OVERRIDES_TITLE'), 'comments langmanager');

        if ($canDo->get('core.create')) {
            $toolbar->addNew('override.add');
        }

        if ($canDo->get('core.delete') && $this->pagination->total) {
            $toolbar->delete('overrides.delete')
                ->message('JGLOBAL_CONFIRM_DELETE');
        }

        if ($this->getCurrentUser()->authorise('core.admin')) {
            $toolbar->standardButton('purge', 'COM_LANGUAGES_VIEW_OVERRIDES_PURGE', 'overrides.purge')
                ->listCheck(false)
                ->icon('icon-refresh');
        }

        if ($canDo->get('core.admin')) {
            $toolbar->preferences('com_languages');
        }

        $toolbar->divider();
        $toolbar->help('Languages:_Overrides');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit