} /*if($fuid) $uid = users::GetUidByFUID($fuid); else { if($suid && ($fuid=users::SetUserFUID($suid))) header("Location: /rss/commune.php?id={$id}&u={$fuid}"); exit; }*/ //if(!$uid || !$fuid) exit; //if($suid && $suid!=$uid) exit; $reloc = __commShaolin($error, $comm, $top, $restrict_type, $user_mod); if (!$comm || $comm['restrict_type'] !== '00' && !$suid) { exit; } if (!$reloc && !$error && $comm) { $topics = commune::GetTopMessages($id, NULL, NULL, 0, commune::OM_TH_NEW, 0, commune::MAX_TOP_ON_PAGE, false, false); } if (!$topics) { $topics = array(); } header("Content-type: application/rss+xml"); print '<?xml version="1.0" encoding="windows-1251"?>'; ?> <!-- RSS generated by FL.ru RSS Generator on <?php echo gmdate("D, d M Y H:i:s"); ?> GMT --> <rss version="2.0"> <channel> <title>Сообщество «<?php echo xmloutofrangechars($comm['name']);
$admins = array(); } foreach ($admins as $admin) { if ($admin['is_moderator'] == 't') { $mod[$admin['user_id']] = true; } if ($admin['is_manager'] == 't') { $man[$admin['user_id']] = true; } } // Трое последних простых участников. if (!($members = commune::GetMembers($id, commune::MEMBER_SIMPLE | commune::JOIN_STATUS_ACCEPTED, 0, 10))) { $members = array(); } // Темы сообщества. if (!$uid && $om == commune::OM_TH_MY || !($topics = commune::GetTopMessages($id, $om == commune::OM_TH_MY ? $uid : NULL, $uid, $user_mod, $om, ($page - 1) * commune::MAX_TOP_ON_PAGE, commune::MAX_TOP_ON_PAGE))) { $topics = array(); } // Стили закладок. $bmCls = getBookmarksStyles(commune::OM_TH_COUNT, $om); // Сколько участников (вместе с админами тут). $mCnt = $comm['a_count'] - $comm['w_count'] + 1 . ' участник' . getSymbolicName($comm['a_count'] - $comm['w_count'] + 1, 'man'); // +1 //if ($thCnt = $themesCount - $bannedCount) //$thCnt = $themesCount - $bannedCount; if ($om == commune::OM_TH_MY) { $thCnt = $themesCount; } $thCntS = ending($thCnt, 'пост', 'поста', 'постов'); $sort = $_COOKIE['commune_fav_order'] != "" ? $_COOKIE['commune_fav_order'] : "date"; $favs = commune::GetFavorites($uid, NULL, $sort, $comm['id']);