示例#1
0
                    }
                    if (!is_array($comment) && intval($comment) > 0) {
                        $arResult["SUCCESS"] = "Y";
                        $arResult["commentID"] = $comment;
                        $arResult["arCommentFormatted"] = __SLMAjaxGetComment($comment, $arParams);
                        if ($arComment = CSocNetLogComments::GetByID($comment)) {
                            $strAfter = "";
                            $arResult["arCommentFormatted"]["SOURCE_ID"] = $arComment["SOURCE_ID"] > 0 ? $arComment["SOURCE_ID"] : $arComment["ID"];
                            if (strlen($arComment["RATING_TYPE_ID"]) > 0 && intval($arComment["RATING_ENTITY_ID"]) > 0) {
                                $arResult["arCommentFormatted"]["EVENT"]["RATING_TYPE_ID"] = $arComment["RATING_TYPE_ID"];
                                $arResult["arCommentFormatted"]["EVENT"]["RATING_ENTITY_ID"] = $arComment["RATING_ENTITY_ID"];
                                $arResult["arCommentFormatted"]["EVENT"]["RATING_USER_VOTE_VALUE"] = $arComment["RATING_USER_VOTE_VALUE"];
                                $arResult["arCommentFormatted"]["EVENT"]["RATING_TOTAL_POSITIVE_VOTES"] = $arComment["RATING_TOTAL_POSITIVE_VOTES"];
                            }
                            $arComment["UF"] = $GLOBALS["USER_FIELD_MANAGER"]->GetUserFields("SONET_COMMENT", $arComment["ID"], LANGUAGE_ID);
                            $arUFResult = CMobileHelper::BuildUFFields($arComment["UF"]);
                            $arResult["arCommentFormatted"]["UF_FORMATTED"] = $arUFResult["AFTER_MOBILE"];
                            $arResult["arCommentFormatted"]["CAN_EDIT"] = $arResult["arCommentFormatted"]["CAN_DELETE"] = $arResult["arCommentFormatted"]["USER_ID"] == $GLOBALS["USER"]->GetId() ? "Y" : "N";
                            $arResult["arCommentFormatted"]["EVENT"]["ID"] = $arComment["ID"];
                            $arResult["arCommentFormatted"]["EVENT"]["LOG_ID"] = $arComment["LOG_ID"];
                            if ($editCommentID <= 0) {
                                $strAfter .= $arUFResult["AFTER"];
                                $strUFMobile = $arUFResult["AFTER_MOBILE"];
                                ob_start();
                                ?>
<script>
									top.text<?php 
                                echo $comment;
                                ?>
 = text<?php 
                                echo $comment;