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/socialnetwork/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/cvetdv.ru/bitrix/modules/socialnetwork/updtr1100.php
<?
if (CModule::IncludeModule("blog"))
{
	$arComments = array();
	$dbLogComment = CSocNetLogComments::GetList(array("LOG_DATE" => "ASC"), array("EVENT_ID" => "blog_comment_micro", "SOURCE_ID" => false), false, false, array("ID", "LOG_SOURCE_ID", "USER_ID", "TEXT_MESSAGE", "LOG_DATE"));
	while($arLogComment = $dbLogComment->Fetch())
	{
		$arPost = CBlogPost::GetByID($arLogComment["LOG_SOURCE_ID"]);
		if ($arPost)
		{
			$arBlog = CBlog::GetByID($arPost["BLOG_ID"]);

			$arFieldsComment = Array(
				"POST_ID" => $arPost["ID"],
				"BLOG_ID" => $arBlog["ID"],
				"POST_TEXT" => $arLogComment["TEXT_MESSAGE"],
				"DATE_CREATE" => $arLogComment["LOG_DATE"],
				"AUTHOR_ID" => $arLogComment["USER_ID"],
				"PARENT_ID" => false
			);
					
			$commentId = CBlogComment::Add($arFieldsComment);
			$arComments[$arLogComment["ID"]] = $commentId;
		}
	}

	foreach($arComments as $log_comment_id => $blog_comment_id)
		CSocNetLogComments::Update($log_comment_id, array("SOURCE_ID" => $blog_comment_id));

}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit