mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
r240
отключение окраски git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@240 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
1bad4a08f0
commit
48f33b0d3c
3 changed files with 7 additions and 17 deletions
|
@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1;
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.1 Stable';
|
||||
$bb_cfg['tp_release_state'] = 'R239';
|
||||
$bb_cfg['tp_release_state'] = 'R240';
|
||||
$bb_cfg['tp_release_date'] = '22-08-2011';
|
||||
|
||||
$bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger
|
||||
|
@ -437,6 +437,7 @@ $bb_cfg['max_smilies'] = 10; // Максимальное
|
|||
$bb_cfg['log_days_keep'] = 90;
|
||||
|
||||
// Users
|
||||
$bb_cfg['color_nick'] = true; // Окраска ников пользователей по user_rank
|
||||
$bb_cfg['user_not_activated_days_keep'] = 7; // "not activated" == "not finished registration"
|
||||
$bb_cfg['user_not_active_days_keep'] = 180; // inactive users but only with no posts
|
||||
|
||||
|
|
|
@ -2820,6 +2820,8 @@ function profile_url($data)
|
|||
if(empty($title)) $title = 'User';
|
||||
if(empty($style)) $style = 'colorUser';
|
||||
|
||||
if(!$bb_cfg['color_nick']) $style = '';
|
||||
|
||||
$username = !empty($data['username']) ? $data['username'] : $lang['GUEST'];
|
||||
$user_id = (!empty($data['user_id']) && $username != $lang['GUEST']) ? $data['user_id'] : ANONYMOUS;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ $online = $online_short = array('userlist' => '');
|
|||
|
||||
$sql = "
|
||||
SELECT
|
||||
u.username, u.user_id, u.user_opt, u.user_level,
|
||||
u.username, u.user_id, u.user_opt, u.user_rank, u.user_level,
|
||||
u.ignore_srv_load,
|
||||
s.session_logged_in, s.session_ip, (s.session_time - s.session_start) AS ses_len, COUNT(s.session_id) AS sessions, COUNT(DISTINCT s.session_ip) AS ips
|
||||
FROM ". BB_SESSIONS ." s, ". BB_USERS ." u
|
||||
|
@ -42,33 +42,24 @@ foreach (DB()->fetch_rowset($sql) as $u)
|
|||
if ($u['session_logged_in'])
|
||||
{
|
||||
$stat = array();
|
||||
$style_color = $class = '';
|
||||
$name = $u['username'];
|
||||
$name = profile_url($u);
|
||||
$level = $u['user_level'];
|
||||
|
||||
if ($level == ADMIN)
|
||||
{
|
||||
$name = "<b>$name</b>";
|
||||
$class = ' class="colorAdmin"';
|
||||
$users_cnt['admin']++;
|
||||
}
|
||||
else if ($level == MOD)
|
||||
{
|
||||
$name = "<b>$name</b>";
|
||||
$class = ' class="colorMod"';
|
||||
$users_cnt['mod']++;
|
||||
}
|
||||
else if ($level == GROUP_MEMBER)
|
||||
{
|
||||
$name = "<b>$name</b>";
|
||||
$class = ' class="colorGroup"';
|
||||
$users_cnt['group_member']++;
|
||||
}
|
||||
else if ($u['ignore_srv_load'])
|
||||
{
|
||||
$class = ' class="colorISL"';
|
||||
$users_cnt['ignore_load']++;
|
||||
}
|
||||
else
|
||||
{
|
||||
$users_cnt['user']++;
|
||||
|
@ -91,11 +82,7 @@ foreach (DB()->fetch_rowset($sql) as $u)
|
|||
$stat[] = "t:<span style=\"color: #1E90FF\">$t</span>";
|
||||
}
|
||||
|
||||
$h = PROFILE_URL . $u['user_id'];
|
||||
$u = "<a href=\"$h\"$class$style_color>";
|
||||
$u .= ($stat) ? "$name<span class=\"ou_stat\" style=\"color: #707070\" title=\"{$u['session_ip']}\"> [<b>". join(', ', $stat) .'</b>]</span>' : $name;
|
||||
$u .= '</a>';
|
||||
$ulist[$level][] = $u;
|
||||
$ulist[$level][] = ($stat) ? "$name<span class=\"ou_stat\" style=\"color: #707070\" title=\"{$u['session_ip']}\"> [<b>". join(', ', $stat) .'</b>]</span>' : $name;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue