Файловый менеджер - Редактировать - /var/www/html/components/com_kunena/src/Controller/Application/Topic/Unread/TopicDisplay.php
Ðазад
<?php /** * Kunena Component * * @package Kunena.Site * @subpackage Controller.Application * * @copyright Copyright (C) 2008 - 2026 Kunena Team. All rights reserved. * @license https://www.gnu.org/copyleft/gpl.html GNU/GPL * @link https://www.kunena.org **/ namespace Kunena\Forum\Site\Controller\Application\Topic\Unread; \defined('_JEXEC') or die(); use Exception; use Kunena\Forum\Libraries\Controller\KunenaControllerDisplay; use Kunena\Forum\Libraries\Factory\KunenaFactory; use Kunena\Forum\Libraries\Forum\Category\KunenaCategoryHelper; use Kunena\Forum\Libraries\Forum\Message\KunenaMessageHelper; use Kunena\Forum\Libraries\Forum\Topic\KunenaTopicHelper; /** * Class ComponentKunenaControllerApplicationTopicUnreadDisplay * * @since Kunena 4.0 */ class TopicDisplay extends KunenaControllerDisplay { /** * Return true if layout exists. * * @return boolean * * @throws Exception * @since Kunena 6.0 */ public function exists() { return KunenaFactory::getTemplate()->isHmvc(); } /** * Redirect unread layout to the page that contains the first unread message. * * @return void * * @throws null * @since Kunena 6.0 */ protected function before() { $catid = $this->input->getInt('catid', 0); $id = $this->input->getInt('id', 0); $category = KunenaCategoryHelper::get($catid); $category->tryAuthorise(); $topic = KunenaTopicHelper::get($id); $topic->tryAuthorise(); KunenaTopicHelper::fetchNewStatus([$topic->id => $topic]); $message = KunenaMessageHelper::get($topic->lastread ? $topic->lastread : $topic->last_post_id); $message->tryAuthorise(); while (@ob_end_clean()) { } $this->app->redirect($topic->getUrl($category, false, $message)); } /** * Prepare document. * * @return void * * @since Kunena 6.0 */ protected function prepareDocument() { $this->setMetaData('robots', 'follow, noindex'); } }
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка