Новости Joomla

Вышли релизы безопасности Joomla 6.0.2 и Joomla 5.4.2

Релиз безопасности Joomla 6.0.2 и 5.4.2

Проект Joomla спешит сообщить о выпуске Joomla 6.0.2 и Joomla 5.4.2. Это релиз безопасности для серии Joomla 6.0 и релиз безопасности для серии Joomla 5.4.

JL Content Fields Filter 4.0.0

JL Content Fields Filter 4.0.0

JL Content Fields Filter - Это бесплатный модуль, который фильтрует материалы в категории Joomla согласно настраиваемым полям.

Данный крупный релиз включает полную совместимость с Joomla 6, критические исправления безопасности, полностью модернизированный интерфейс администратора и обширный рефакторинг кода.

Ключевые Особенности:

- Полная совместимость с Joomla 6: Полная миграция на PSR-4, удаление устаревших методов, исправления для PHP 8.2+ и современные взаимодействия с базой данных.

- Полностью переписанный интерфейс компонента:

- Современный JS стек (Native Fetch, ES6+, модальные окна Bootstrap 5)

- Новое поле FilterfieldsField для предварительного просмотра фильтров в реальном времени.

- Полный CRUD, улучшенные функции SEO и улучшенный UX.

- Критические исправления безопасности:

- 5 SQL-инъекций устранены в нескольких файлах.

- Добавлена защита от XSS, улучшены токены CSRF и проверки разрешений.

- Улучшения модуля и плагина: Улучшенная функциональность слайдера, лучшие сбросы форм, динамическое обнаружение контекста для плагинов и оптимизированная логика фильтрации.

Страница расширения:
https://joomline.ru/rasshirenija/moduli/jlcontentfieldsfilter.html

0 Пользователей и 1 Гость просматривают эту тему.
  • 7 Ответов
  • 3976 Просмотров
*

JmsNueva

  • Осваиваюсь на форуме
  • 12
  • 0 / 0
После восстановления из бекапа появилась эта ошибка,помогите разобратся с ней :(
Админка работает,Joomla 1.5
Parse error: syntax error, unexpected $end in /home/atnperm/domains/atnperm.ru/public_html/trans/includes/router.php on line 123
« Последнее редактирование: 20.04.2010, 21:40:24 от JmsNueva »
*

Aleks_El_Dia

  • Moderator
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
перезалейте этот файл, на который ссылается ошибка
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
*

JmsNueva

  • Осваиваюсь на форуме
  • 12
  • 0 / 0
Пробовал.Без изменений.
Во вложении сам файлик...

[вложение удалено Администратором]
« Последнее редактирование: 21.04.2010, 15:18:40 от JmsNueva »
*

Aleks_El_Dia

  • Moderator
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
Он у вас битый. Вот содержимое этого файла. Скопируйте и вставьте:
Код
<?php
/**
* @version $Id: router.php 8180 2007-07-23 05:52:29Z eddieajau $
* @package Joomla.Framework
* @subpackage Application
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! 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.
*/

// Check to ensure this file is within the rest of the framework
defined('JPATH_BASE') or die();

/**
 * Class to create and parse routes for the site application
 *
 * @package Joomla
 * @since 1.5
 */
class JRouterSite extends JRouter
{
/**
* Class constructor
*
* @access public
*/
function __construct($options = array()) {
parent::__construct($options);
}

function parse(&$uri)
{
$vars = array();

// Get the application
$app =& JFactory::getApplication();

if($app->getCfg('force_ssl') == 2 && strtolower($uri->getScheme())!= 'https') {
//forward to https
$uri->setScheme('https');
$app->redirect($uri->toString());
}


// Get the path
$path = $uri->getPath();

//Remove the suffix
if($this->_mode == JROUTER_MODE_SEF)
{

if($app->getCfg('sef_suffix') && !(substr($path, -9) == 'index.php' || substr($path, -1) == '/'))
{
if($suffix = pathinfo($path, PATHINFO_EXTENSION))
{
$path = str_replace('.'.$suffix, '', $path);
$vars['format'] = $suffix;
}
}
}

//Remove basepath
$path = substr_replace($path, '', 0, strlen(JURI::base(true)));

//Remove prefix
$path = str_replace('index.php', '', $path);

//Set the route
$uri->setPath(trim($path , '/'));

$vars += parent::parse($uri);

return $vars;
}

function &build($url)
{
$uri =& parent::build($url);

// Get the path data
$route = $uri->getPath();

//Add the suffix to the uri
if($this->_mode == JROUTER_MODE_SEF && $route)
{
$app =& JFactory::getApplication();

if($app->getCfg('sef_suffix') && !(substr($route, -9) == 'index.php' || substr($route, -1) == '/'))
{
if($format = $uri->getVar('format', 'html'))
{
$route .= '.'.$format;
$uri->delVar('format');
}
}

if($app->getCfg('sef_rewrite'))
{
//Transform the route
$route = str_replace('index.php/', '', $route);
}
}

//Add basepath to the uri
$uri->setPath(JURI::base(true).'/'.$route);

return $uri;
}

function _parseRawRoute(&$uri)
{
$vars   = array();

$menu =& JSite::getMenu(true);

//Handle an empty URL (special case)
if(!$uri->getVar('Itemid') && !$uri->getVar('option'))
{
$item = $menu->getDefault();
if(!is_object($item)) return $vars; // No default item set

//Set the information in the request
$vars = $item->query;

//Get the itemid
$vars['Itemid'] = $item->id;

// Set the active menu item
$menu->setActive($vars['Itemid']);

return $vars;
}

//Get the variables from the uri
$this->setVars($uri->getQuery(true));

//Get the itemid, if it hasn't been set force it to null
$this->setVar('Itemid', JRequest::getInt('Itemid', null));

//Only an Itemid ? Get the full information from the itemid
if(count($this->getVars()) == 1)
{
$item = $menu->getItem($this->getVar('Itemid'));
$vars = $vars + $item->query;
}

// Set the active menu item
$menu->setActive($this->getVar('Itemid'));

return $vars;
}

function _parseSefRoute(&$uri)
{
$vars   = array();

$menu  =& JSite::getMenu(true);
$route = $uri->getPath();

//Get the variables from the uri
$vars = $uri->getQuery(true);

//Handle an empty URL (special case)
if(empty($route))
{

//If route is empty AND option is set in the query, assume it's non-sef url, and parse apropriately
if(isset($vars['option']) || isset($vars['Itemid'])) {
return $this->_parseRawRoute($uri);
}

$item = $menu->getDefault();

//Set the information in the request
$vars = $item->query;

//Get the itemid
$vars['Itemid'] = $item->id;

// Set the active menu item
$menu->setActive($vars['Itemid']);

return $vars;
}


/*
* Parse the application route
*/

if(substr($route, 0, 9) == 'component')
{
$segments = explode('/', $route);
$route      = str_replace('component/'.$segments[1], '', $route);

$vars['option'] = 'com_'.$segments[1];
$vars['Itemid'] = null;
}
else
{
//Need to reverse the array (highest sublevels first)
$items = array_reverse($menu->getMenu());

foreach ($items as $item)
{
$lenght = strlen($item->route); //get the lenght of the route

if($lenght > 0 && strpos($route.'/', $item->route.'/') === 0 && $item->type != 'menulink')
{
$route   = substr($route, $lenght);

$vars['Itemid'] = $item->id;
$vars['option'] = $item->component;
break;
}
}
}

// Set the active menu item
if ( isset($vars['Itemid']) ) {
$menu->setActive(  $vars['Itemid'] );
}

//Set the variables
$this->setVars($vars);

/*
* Parse the component route
*/
if(!empty($route) && isset($this->_vars['option']) )
{
$segments = explode('/', $route);
array_shift($segments);

// Handle component route
$component = preg_replace('/[^A-Z0-9_\.-]/i', '', $this->_vars['option']);

// Use the component routing handler if it exists
$path = JPATH_SITE.DS.'components'.DS.$component.DS.'router.php';

if (file_exists($path) && count($segments))
{
if ($component != "com_search") { // Cheap fix on searches
//decode the route segments
$segments = $this->_decodeSegments($segments);
}
else { // fix up search for URL
$total = count($segments);
for($i=0; $i<$total; $i++) {
// urldecode twice because it is encoded twice
$segments[$i] = urldecode(urldecode(stripcslashes($segments[$i])));
}
}

require_once $path;
$function =  substr($component, 4).'ParseRoute';
$vars =  $function($segments);

$this->setVars($vars);
}
}
else
{
//Set active menu item
if($item =& $menu->getActive()) {
$vars = $item->query;
}
}

return $vars;
}

function _buildRawRoute(&$uri)
{
}

function _buildSefRoute(&$uri)
{
// Get the route
$route = $uri->getPath();

// Get the query data
$query = $uri->getQuery(true);

if(!isset($query['option'])) {
return;
}

$menu =& JSite::getMenu();

/*
* Build the component route
*/
$component = preg_replace('/[^A-Z0-9_\.-]/i', '', $query['option']);
$tmp = '';

// Use the component routing handler if it exists
$path = JPATH_SITE.DS.'components'.DS.$component.DS.'router.php';

// Use the custom routing handler if it exists
if (file_exists($path) && !empty($query))
{
require_once $path;
$function = substr($component, 4).'BuildRoute';
$parts = $function($query);

// encode the route segments
if ($component != "com_search") { // Cheep fix on searches
$parts = $this->_encodeSegments($parts);
}
else { // fix up search for URL
$total = count($parts);
for($i=0; $i<$total; $i++) {
// urlencode twice because it is decoded once after redirect
$parts[$i] = urlencode(urlencode(stripcslashes($parts[$i])));
}
}

$result = implode('/', $parts);
$tmp = ($result != "")? '/'.$result : '';
}

/*
* Build the application route
*/
$built = false;
if (isset($query['Itemid']) && !empty($query['Itemid']))
{
$item = $menu->getItem($query['Itemid']);

if (is_object($item) && $query['option'] == $item->component) {
$tmp = !empty($tmp)? $item->route.'/'.$tmp : $item->route;
$built = true;
}
}

if(!$built) {
$tmp = 'component/'.substr($query['option'], 4).'/'.$tmp;
}

$route .= '/'.$tmp;

// Unset unneeded query information
unset($query['Itemid']);
unset($query['option']);

//Set query again in the URI
$uri->setQuery($query);
$uri->setPath($route);
}

function _processParseRules(&$uri)
{
// Process the attached parse rules
$vars = parent::_processParseRules($uri);

// Process the pagination support
if($this->_mode == JROUTER_MODE_SEF)
{
$app =& JFactory::getApplication();

if($start = $uri->getVar('start'))
{
$uri->delVar('start');
$vars['limitstart'] = $start;
}
}

return $vars;
}

function _processBuildRules(&$uri)
{
// Make sure any menu vars are used if no others are specified
if(($this->_mode != JROUTER_MODE_SEF) && $uri->getVar('Itemid') && count($uri->getQuery(true)) == 2)
{
$menu =& JSite::getMenu();

// Get the active menu item
$itemid = $uri->getVar('Itemid');
$item   = $menu->getItem($itemid);

$uri->setQuery($item->query);
$uri->setVar('Itemid', $itemid);
}

// Process the attached build rules
parent::_processBuildRules($uri);

// Get the path data
$route = $uri->getPath();

if($this->_mode == JROUTER_MODE_SEF && $route)
{
$app =& JFactory::getApplication();

if ($limitstart = $uri->getVar('limitstart'))
{
$uri->setVar('start', (int) $limitstart);
$uri->delVar('limitstart');
}
}

$uri->setPath($route);
}

function &_createURI($url)
{
//Create the URI
$uri =& parent::_createURI($url);

// Set URI defaults
$menu =& JSite::getMenu();

// Get the itemid form the URI
$itemid = $uri->getVar('Itemid');

if(is_null($itemid))
{
if($option = $uri->getVar('option'))
{
$item  = $menu->getItem($this->getVar('Itemid'));
if(isset($item) && $item->component == $option) {
$uri->setVar('Itemid', $item->id);
}
}
else
{
if($option = $this->getVar('option')) {
$uri->setVar('option', $option);
}

if($itemid = $this->getVar('Itemid')) {
$uri->setVar('Itemid', $itemid);
}
}
}
else
{
if(!$uri->getVar('option'))
{
$item  = $menu->getItem($itemid);
$uri->setVar('option', $item->component);
}
}

return $uri;
}
}
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
*

JmsNueva

  • Осваиваюсь на форуме
  • 12
  • 0 / 0
Спасибо большое.От ошибки избавился.Только вот почему то белый экран сейчас.Буду дальше копать.
*

Aleks_El_Dia

  • Moderator
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
index.php таким же макаром проверьте, который в корне лежит
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
*

JmsNueva

  • Осваиваюсь на форуме
  • 12
  • 0 / 0
Блин и он битый(((,это сейчас всё заново переустанавливать?


[вложение удалено Администратором]
« Последнее редактирование: 21.04.2010, 17:22:29 от JmsNueva »
*

Aleks_El_Dia

  • Moderator
  • 3671
  • 353 / 0
  • AEDStudio Joomla! Direction
Достаточно просто перезалить файлы с оригинального дистрибутива поверх ваших файлов + смотреть какие сторонние расширения были установлены и при необходимости заменить также эти файлы. Переустанавливать сайт заново нет смысла.
Спам придумали боги в отместку за наши молитвы (с) Рома Воронежский
На молоко: Z369038872422 || R210017695494 || U247040729215 || ЯД 410011288250383
Мигрирую сайты, переношу расширения J!1.0->J!1.5->J!2.5. Более 50 успешных миграций.
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Не могу распаковать jpa архив сайта Akeeba backup. ajax error

Автор smadkz

Ответов: 4
Просмотров: 1960
Последний ответ 26.12.2020, 15:15:15
от stendapuss
Fatal error: Class 'JDocument' not found

Автор gabiboi

Ответов: 2
Просмотров: 2448
Последний ответ 04.09.2020, 14:39:07
от svetka_777
simpleform2 ошибка ajax error в Google chrome

Автор safronoff343

Ответов: 1
Просмотров: 1300
Последний ответ 05.06.2020, 20:36:42
от safronoff343
Ошибка #1050 при переносе базы данных на хостинг

Автор Ksen

Ответов: 7
Просмотров: 25009
Последний ответ 16.03.2020, 17:47:29
от Petrovich
При попытке войти в админку 404 ошибка компонента

Автор omezik

Ответов: 4
Просмотров: 2930
Последний ответ 31.08.2019, 22:41:46
от Taatshi