示例#1
0
                            $elementUrl = str_replace("#group_id#", $arResult['GROUP']['ID'], $arResult['PATH_TO_GROUP_FILES_ELEMENT']);
                        }
                        if (!empty($elementUrl)) {
                            $arParams["FORM_ID"] = "webdavForm" . $arParams["IBLOCK_ID"];
                            $elementUrl = str_replace('#element_id#', $elementID, $elementUrl);
                            $elementUrl .= strpos($elementUrl, '?') !== false ? '&' : '?';
                            $elementUrl .= $arParams["FORM_ID"] . '_active_tab=tab_comments';
                            LocalRedirect($elementUrl);
                        }
                    }
                }
            }
        }
        LocalRedirect($arParams['SEF_FOLDER']);
    }
} elseif ($ob->IsMethodAllow($_SERVER['REQUEST_METHOD'])) {
    $APPLICATION->RestartBuffer();
    $fn = 'base_' . $_SERVER['REQUEST_METHOD'];
    call_user_func(array(&$ob, $fn));
    die;
} else {
    CHTTP::SetStatus('405 Method not allowed');
    header('Allow: ' . join(',', array_keys($ob->allow)));
    $this->IncludeComponentTemplate('notallowed');
    return 1;
}
/********************************************************************
				/Default params 
********************************************************************/
/********************************************************************
				Path