COption::SetOptionString("main", "rating_start_authority", $ratingStartValue); COption::SetOptionString("main", "rating_vote_show", $sRatingVoteShow); COption::SetOptionString("main", "rating_vote_template", $sRatingVoteTemplate); COption::SetOptionString("main", "rating_vote_type", $sRatingVoteType); if ($sRatingVoteType == 'like') { COption::SetOptionString("main", "rating_text_like_y", $sRatingTextLikeY); COption::SetOptionString("main", "rating_text_like_n", $sRatingTextLikeN); COption::SetOptionString("main", "rating_text_like_d", $sRatingTextLikeD); } CRatings::SetAuthorityRating($ratingId); CRatings::SetVoteGroup($_POST['RATING_VOTE_GROUP_ID'], 'R'); CRatings::SetVoteGroup($_POST['RATING_VOTE_AUTHORITY_GROUP_ID'], 'A'); if ($ratingAuthorityDefault > 0) { $arParams = array(); if ($ratingAuthorityDefault == 1) $arParams['DEFAULT_CONFIG_NEW_USER'] = '******'; if ($ratingAuthorityDefault == 2) $arParams['DEFAULT_USER_ACTIVE'] = 'Y'; if ($ratingAuthorityDefault == 3) { $arParams['DEFAULT_USER_ACTIVE'] = 'Y'; $arParams['DEFAULT_CONFIG_NEW_USER'] = '******';