$arResult["VARIABLES"]["SECTION_ID"] = $ob->arParams["item_id"]; } } elseif ($componentPage == "user_files_short" || $componentPage == "group_files_short") { if ($arResult["VARIABLES"]["element_id"] > 0) { $ob->IsDir(array("element_id" => $arResult["VARIABLES"]["element_id"])); if ($ob->arParams['is_file']) { $APPLICATION->RestartBuffer(); $ob->base_GET(); die; } } $arResult["VARIABLES"]["SECTION_ID"] = intval($arResult["VARIABLES"]["section_id"]); $componentPage = str_replace("_short", "", $componentPage); } elseif ($componentPage == "user_files_element_history_get" || $componentPage == "group_files_element_history_get") { $APPLICATION->RestartBuffer(); $ob->SendHistoryFile($arResult["VARIABLES"]["element_id"], 0, false, $_REQUEST); die; } elseif ($componentPage == "user_files_webdav_bizproc_history_get" || $componentPage == "group_files_webdav_bizproc_history_get") { $APPLICATION->RestartBuffer(); $ob->SendHistoryFile($arResult["VARIABLES"]["element_id"], $arResult["VARIABLES"]["id"]); die; } elseif (($componentPage == "user_files_section_edit" || $componentPage == "group_files_section_edit") && strToUpper($_REQUEST["use_light_view"]) == "Y") { $componentPage .= "_simple"; } elseif ($componentPage == "user_files_element_comment" || $componentPage == "group_files_element_comment") { $topicID = intval($arResult["VARIABLES"]['topic_id']); $messageID = intval($arResult["VARIABLES"]['message_id']); if ($topicID > 0 && $messageID > 0 && CModule::IncludeModule('forum')) { $dbMessage = CForumMessage::GetList(array(), array('FORUM_ID' => $arParams['FILES_FORUM_ID'], 'TOPIC_ID' => $topicID, 'NEW_TOPIC' => 'Y', 'PARAM1' => 'IB')); if ($dbMessage && ($arMessage = $dbMessage->Fetch())) { $elementID = intval($arMessage['PARAM2']); if ($elementID > 0) {