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/rospirotorg.ru/bitrix/components/bitrix/learning.course.tree/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true) die(); if (!function_exists("_IsItemSelected")) { function _IsItemSelected($arLinks = Array()) { if (!is_array($arLinks)) $arLinks = Array($arLinks); $cur_page = $GLOBALS["APPLICATION"]->GetCurPage(true); $cur_dir = $GLOBALS["APPLICATION"]->GetCurDir(); $selected = false; foreach($arLinks as $tested_link) { if ($tested_link == '') continue; $tested_link = trim(Rel2Abs($cur_dir, $tested_link)); if(mb_strpos($cur_page, $tested_link) === 0) { $selected = true; break; } if(($pos = mb_strpos($tested_link, "?"))!==false) { if(mb_substr($tested_link, 0, $pos) == $cur_page) { $params = explode("&", mb_substr($tested_link, $pos + 1)); $bOK = true; foreach($params as $param) { $eqpos = mb_strpos($param, "="); $varvalue=""; if($eqpos===false) $varname = $param; elseif($eqpos==0) continue; else { $varname = mb_substr($param, 0, $eqpos); $varvalue = urldecode(mb_substr($param, $eqpos + 1)); } $globvarvalue = isset($GLOBALS[$varname])?$GLOBALS[$varname]:""; if($globvarvalue != $varvalue) { $bOK = false; break; } } if($bOK) { $selected = true; break; } } } } return $selected; } } if (!function_exists("_IsInsideSelect")) { function _IsInsideSelect(&$arItems, $itemIndex, $depth_level) { for ($size = count($arItems); $itemIndex < $size; $itemIndex++) { if ($arItems[$itemIndex]["DEPTH_LEVEL"] <= $depth_level) return false; if ($arItems[$itemIndex]["SELECTED"]) return true; } return false; } } ?>