Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_jchat/Framework/Helpers/Messages.php
Ðазад
<?php namespace JExtstore\Component\JChat\Administrator\Framework\Helpers; /** * @package JCHAT::components::com_jchat * @subpackage framework * @subpackage helpers * @author Joomla! Extensions Store * @Copyright (C) 2015 - Joomla! Extensions Store * @license GNU/GPLv2 http://www.gnu.org/licenses/gpl-2.0.html */ defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Factory; /** * Utility class for chat messages * * @package JCHAT::components::com_jchat * @subpackage framework * @subpackage helpers * @since 1.0 */ class Messages { /** * Purify messages * * @access public * @static * @param string $message * @param Object $componentConfig * @return string */ public static function purifyMessage($message, $componentConfig) { // Strip delle immagini delle emeoticons con estrazione battitura $message = preg_replace ('/(<img class="jchat_emoticons")\s(title=")(.+)(")(.*>)/iUu', "$3", $message); $allowedTags = '<img>,<a>'; if($componentConfig->get('allow_media_objects', true)) { $allowedTags .= ',<iframe>,<video>,<source>,<object>,<embed>,<param>'; } // Strip html tags $message = strip_tags($message, $allowedTags); return $message; } /** * Clean the cache * @param string $group The cache group * @param integer $client_id The ID of the client * @return void * @since 11.1 */ public static function cleanComponentCache($option, $client_id = 0) { // Initialise variables; $conf = Factory::getApplication()->getConfig(); $options = array( 'defaultgroup' => $option, 'cachebase' => ($client_id) ? JPATH_ADMINISTRATOR . '/cache' : $conf->get('cache_path', JPATH_CACHE)); $cache = Factory::getContainer()->get(\Joomla\CMS\Cache\CacheControllerFactoryInterface::class)->createCacheController( 'callback', $options ); $cache->clean(); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка