mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#759)
This commit is contained in:
parent
9f24a39a13
commit
0728fad7d7
3 changed files with 6 additions and 12 deletions
|
@ -520,6 +520,7 @@ $bb_cfg['allow_change'] = [
|
|||
];
|
||||
|
||||
$bb_cfg['show_jumpbox'] = true;
|
||||
$bb_cfg['show_online_userlist_index'] = true;
|
||||
|
||||
$bb_cfg['trash_forum_id'] = 0; // (int) 7
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ if ($logged_in) {
|
|||
}
|
||||
|
||||
// Online userlist
|
||||
if (defined('SHOW_ONLINE') && SHOW_ONLINE) {
|
||||
if ($bb_cfg['show_online_userlist_index']) {
|
||||
$online_full = !empty($_REQUEST['online_full']);
|
||||
$online_list = $online_full ? 'online_' . $userdata['user_lang'] : 'online_short_' . $userdata['user_lang'];
|
||||
|
||||
|
@ -38,16 +38,13 @@ if (defined('SHOW_ONLINE') && SHOW_ONLINE) {
|
|||
'cnt' => '',
|
||||
);
|
||||
|
||||
if (defined('IS_GUEST') && !(IS_GUEST || IS_USER)) {
|
||||
$template->assign_var('SHOW_ONLINE_LIST');
|
||||
if (!${$online_list} = CACHE('bb_cache')->get($online_list)) {
|
||||
require INC_DIR . '/online_userlist.php';
|
||||
|
||||
if (!${$online_list} = CACHE('bb_cache')->get($online_list)) {
|
||||
require INC_DIR . '/online_userlist.php';
|
||||
|
||||
${$online_list} = CACHE('bb_cache')->get($online_list);
|
||||
}
|
||||
${$online_list} = CACHE('bb_cache')->get($online_list);
|
||||
}
|
||||
|
||||
$template->assign_var('SHOW_ONLINE_LIST');
|
||||
$template->assign_vars(array(
|
||||
'TOTAL_USERS_ONLINE' => ${$online_list}['stat'],
|
||||
'LOGGED_IN_USER_LIST' => ${$online_list}['userlist'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue