'') $cond='CSite::InDir(\''.addslashes($arRequest['CONDITION_folder']).'\')'; elseif ($type=='ugroups' && is_array($arRequest['CONDITION_ugroups'])) { for($i=0; $i '' && $arRequest['CONDITION_url_value'] <> '') $cond='$_GET[\''.addslashes($arRequest['CONDITION_url_param']).'\']==\''.addslashes($arRequest['CONDITION_url_value']).'\''; elseif ($type === 'no_access') $cond = GetNoAccessConditionString(); elseif ($type=='false') $cond='false'; elseif ($type=='php') $cond=$arRequest['CONDITION_php']; return $cond ?? null; } // Parse string and init vars function ConditionParse($c = '') { global $strCondition, $arGroupsNames, $arDisplay, $arConditionTypes, $strFolder, $strUrl_param, $strUrl_value, $arSelGroups, $strPer_start, $strPer_end, $CurType; $strCondition = $c; $arDisplay = array( "empty" => "none", "folder" => "none", "ugroups" => "none", "period" => "none", "url" => "none", "no_access" => "none", "php" => "none", "false" => "none", ); $CurType = ""; $strFolder = ""; $strUrl_param = ""; $strUrl_value = ""; $arSelGroups = array(); $strPer_start = ""; $strPer_end = ""; if (preg_match('/^CSite::InDir\(\'([^)]+)\'\)$/',$c,$r)) { $CurType = 'folder'; $strFolder = stripslashes($r[1]); } elseif (preg_match('/^CSite::InGroup\(array\(([0-9, ]+)\)\)$/',$c,$r)) { $CurType = 'ugroups'; $arSelGroups = explode(",", str_replace(" ","",$r[1])); } elseif (preg_match('/^CSite::InPeriod\(([0-9]+) *, *([0-9]+)\)$/',$c,$r)) { $strPer_start=$r[1]==0 ? "" : ConvertTimeStamp($r[1]); $strPer_end=$r[2]==0 ? "" : ConvertTimeStamp($r[2]); $CurType='period'; } elseif(preg_match('/^\$_GET\[\'(.+)\'\] *== *\'(.+)\'$/',$c,$r)) { $CurType='url'; $strUrl_param=stripslashes($r[1]); $strUrl_value=stripslashes($r[2]); } elseif($c === GetNoAccessConditionString()) $CurType='no_access'; elseif($c=='false') $CurType='false'; elseif(empty($c)) $CurType='empty'; else $CurType='php'; $arDisplay[$CurType]='block'; } function GetNoAccessConditionString() { return '$GLOBALS["USER"]->HasNoAccess() && $_SERVER["REMOTE_USER"]==""'; } // Insert select-list with condition types function ConditionSelect($i='') { global $CurType, $arConditionTypes; $types_options = ''; foreach($arConditionTypes as $key => $val) $types_options .= ""; echo ""; } // Show condition types function ConditionShow($arArgs=array()) { global $strCondition, $APPLICATION, $arGroupsNames, $arDisplay, $arConditionTypes, $strFolder, $strUrl_param, $strUrl_value, $arSelGroups, $strPer_start, $strPer_end, $CurType, $USER; $i=$arArgs['i']; $field_name=$arArgs['field_name']; $form=$arArgs['form']; ?>

Fatal error: Uncaught Error: Call to undefined function GetMessage() in D:\ktt\ttepla.com\public_html\bitrix\modules\main\include\condition.php:118 Stack trace: #0 {main} thrown in D:\ktt\ttepla.com\public_html\bitrix\modules\main\include\condition.php on line 118