Файловый менеджер - Редактировать - /var/www/html/administrator/components/com_komento/includes/decoda/decoda/filters/UrlFilter.php
Ðазад
<?php /** * @package Komento * @copyright Copyright (C) 2010 - 2020 Stack Ideas Sdn Bhd. All rights reserved. * @license GNU/GPL, see LICENSE.php * Komento is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ defined( '_JEXEC' ) or die( 'Unauthorized Access' ); /** * UrlFilter * * Provides tags for URLs. * * @author Miles Johnson - http://milesj.me * @copyright Copyright 2006-2011, Miles Johnson, Inc. * @license http://opensource.org/licenses/mit-license.php - Licensed under The MIT License * @link http://milesj.me/code/php/decoda */ class UrlFilter extends DecodaFilter { /** * Regex pattern. */ const URL_PATTERN = '/^((?:http|ftp|irc|file|telnet)s?:\/\/)(.*?)$/is'; /** * Supported tags. * * @access protected * @var array */ protected $_tags = array( 'url' => array( 'tag' => 'a', 'type' => self::TYPE_INLINE, 'allowed' => self::TYPE_INLINE, 'pattern' => self::URL_PATTERN, 'testNoDefault' => false, 'attributes' => array( 'default' => self::URL_PATTERN ), 'map' => array( 'default' => 'href' ) ), 'link' => array( 'tag' => 'a', 'type' => self::TYPE_INLINE, 'allowed' => self::TYPE_INLINE, 'pattern' => self::URL_PATTERN, 'testNoDefault' => true, 'attributes' => array( 'default' => self::URL_PATTERN ), 'map' => array( 'default' => 'href' ) ) ); /** * Using shorthand variation if enabled. * * @access public * @param array $tag * @param string $content * @return string */ public function parse(array $tag, $content) { if (empty($tag['attributes']['href']) && empty($tag['attributes']['default'])) { $tag['attributes']['href'] = $content; } if ($this->getParser()->config('shorthand')) { $tag['content'] = $this->message('link'); return '[' . parent::parse($tag, $content) . ']'; } return parent::parse($tag, $content); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка