Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/Url.php.tar
Назад
home/wuectly/www/libraries/src/Menu/Node/Url.php 0000604 00000003664 15245534703 0015640 0 ustar 00 <?php /** * Joomla! Content Management System * * @copyright (C) 2017 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\CMS\Menu\Node; defined('JPATH_PLATFORM') or die; use Joomla\CMS\Menu\Node; /** * An external Url type of node for MenuTree * * @see Node * @since 3.8.0 * @deprecated 4.0 Use Joomla\CMS\Menu\MenuItem */ class Url extends Node { /** * Node Title * * @var string * * @since 3.8.0 */ protected $title = null; /** * Node Link * * @var string * * @since 3.8.0 */ protected $link = null; /** * Link Target * * @var string * * @since 3.8.0 */ protected $target = null; /** * Link title icon * * @var string * * @since 3.8.0 */ protected $icon = null; /** * Constructor for the class. * * @param string $title The title of the node * @param string $link The node link * @param string $target The link target * @param string $class The CSS class for the node * @param string $id The node id * @param string $icon The title icon for the node * * @since 3.8.0 * * @deprecated 4.0 Use Joomla\CMS\Menu\MenuItem */ public function __construct($title, $link, $target = null, $class = null, $id = null, $icon = null) { $this->title = $title; $this->link = \JFilterOutput::ampReplace($link); $this->target = $target; $this->class = $class; $this->id = $id; $this->icon = $icon; parent::__construct(); } /** * Get an attribute value * * @param string $name The attribute name * * @return mixed * * @since 3.8.0 * * @deprecated 4.0 Use Joomla\CMS\Menu\MenuItem */ public function get($name) { switch ($name) { case 'title': case 'link': case 'target': case 'icon': return $this->$name; } return parent::get($name); } } home/wuectly/www/libraries/regularlabs/src/Condition/Url.php 0000604 00000003213 15245607062 0020265 0 ustar 00 <?php /** * @package Regular Labs Library * @version 21.4.10972 * * @author Peter van Westen <info@regularlabs.com> * @link http://www.regularlabs.com * @copyright Copyright © 2021 Regular Labs All Rights Reserved * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL */ namespace RegularLabs\Library\Condition; defined('_JEXEC') or die; use Joomla\CMS\Uri\Uri as JUri; use RegularLabs\Library\RegEx; use RegularLabs\Library\StringHelper; /** * Class Url * @package RegularLabs\Library\Condition */ class Url extends \RegularLabs\Library\Condition { public function pass() { $regex = isset($this->params->regex) ? $this->params->regex : false; if ( ! is_array($this->selection)) { $this->selection = explode("\n", $this->selection); } if (count($this->selection) == 1) { $this->selection = explode("\n", $this->selection[0]); } $url = JUri::getInstance(); $url = $url->toString(); $urls = [ StringHelper::html_entity_decoder(urldecode($url)), urldecode($url), StringHelper::html_entity_decoder($url), $url, ]; $urls = array_unique($urls); $pass = false; foreach ($urls as $url) { foreach ($this->selection as $s) { $s = trim($s); if ($s == '') { continue; } if ($regex) { $url_part = str_replace(['#', '&'], ['\#', '(&|&)'], $s); if (@RegEx::match($url_part, $url)) { $pass = true; break; } continue; } if (strpos($url, $s) !== false) { $pass = true; break; } } if ($pass) { break; } } return $this->_($pass); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка