File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/components/bitrix/socialnetwork/templates/.default/group_blog_post.php
Back
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <? if($arResult["VARIABLES"]["post_id"] <> '') { CModule::IncludeModule("blog"); $postID = trim($arResult["VARIABLES"]["post_id"]); if(!is_numeric($postID) || mb_strlen(intval($postID)) != mb_strlen($postID)) { $postID = preg_replace("/[^a-zA-Z0-9_-]/is", "", Trim($postID)); $arFilter = array("CODE" => $postID); } else $arFilter = array("ID" => intval($postID)); if($arResult["PATH_TO_USER_BLOG_POST"] == '') $arResult["PATH_TO_USER_BLOG_POST"] = "/club/personal/user/#user_id#/blog/#post_id#/"; $dbPost = CBlogPost::GetList(array(), $arFilter, false, false, array("ID", "AUTHOR_ID")); if($arPost = $dbPost->Fetch()) { LocalRedirect(CComponentEngine::MakePathFromTemplate($arResult["PATH_TO_USER_BLOG_POST"], array("post_id"=>$arPost["ID"], "user_id" => $arPost["AUTHOR_ID"]))); die(); } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings