Beispiel #1
0
            $next_months[$i]['by_f'] = $next30_sum['by_f'] + ceil($to_eom_sum['by_f'] * ($K_ym - 1)) + ($MSIZES[$i - 1] - 30) * ceil($next30_sum['by_f'] / 30);
            $next_months[$i]['by_u'] = $next30_sum['by_u'] + ceil($to_eom_sum['by_u'] * ($K_ym - 1)) + ($MSIZES[$i - 1] - 30) * ceil($next30_sum['by_u'] / 30);
        } else {
            $next_months[$i]['by_e'] = ceil($next_months[$i - 1]['by_e'] ? $next_months[$i - 1]['by_e'] * $K_ym : $next30_sum['by_e']);
            $next_months[$i]['by_f'] = ceil($next_months[$i - 1]['by_f'] ? $next_months[$i - 1]['by_f'] * $K_ym : $next30_sum['by_f']);
            $next_months[$i]['by_u'] = ceil($next_months[$i - 1]['by_u'] ? $next_months[$i - 1]['by_u'] * $K_ym : $next30_sum['by_u']);
        }
        if (($mc = ($next_months[$i]['by_e'] + $next_months[$i]['by_f'] + $next_months[$i]['by_u']) / $MSIZES[$i - 1]) > $cur_year_max_h) {
            $cur_year_max_h = $mc;
        }
    }
}
// if(!$u_has_prm) ///////////////////////////////////////////////////////////////////////////////////
$PS_STEP_PRICE = 150;
$pro_price = payed::GetProPrice(true);
$bmCls = getBookmarksStyles(promotion::BM_COUNT, $bm);
// Классы закладок.
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////output///////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
?>
      
  <script type="text/javascript">
Beispiel #2
0
        $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']);
// ACL
$is_site_admin = hasPermissions('communes');
$is_comm_admin = $user_mod & (commune::MOD_COMM_ADMIN | commune::MOD_COMM_MODERATOR);
$is_author = $user_mod & commune::MOD_COMM_AUTHOR;