$arResult['CURRENT_PATH'] = $ob->_path; $res = $ob->SetRootSection($arParams["ROOT_SECTION_ID"]); /******************************************************************** / ********************************************************************/ if (($_SERVER['REQUEST_METHOD'] == 'POST' || $_SERVER['REQUEST_METHOD'] == 'GET') && !$ob->IsDavHeaders()) { if ($componentPage == "user_files" || $componentPage == "group_files") { $arResult["VARIABLES"]["SECTION_ID"] = 0; if ($arParams["SEF_MODE"] != "Y") { $res = explode("/", urldecode($_REQUEST["path"])); $result = array(); foreach ($res as $r) { $result[] = urlencode($APPLICATION->ConvertCharset($r, SITE_CHARSET, 'UTF-8')); } $arResult["VARIABLES"]["PATH"] = implode("/", $result); $ob->SetPath("/" . $arResult["VARIABLES"]["PATH"]); } $ob->IsDir(array('check_permissions' => false)); if ($ob->arParams['is_file']) { $APPLICATION->RestartBuffer(); $ob->base_GET(); die; } elseif ($ob->arParams['is_dir']) { $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();