Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor improvements #178

Merged
merged 2 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions library/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@
$bb_cfg['pm_days_keep'] = 180; // время хранения ЛС

// Actions log
$bb_cfg['log_days_keep'] = 90;
$bb_cfg['log_days_keep'] = 365;

// Users
$bb_cfg['color_nick'] = true; // Окраска ников пользователей по user_rank
Expand All @@ -508,7 +508,7 @@
$bb_cfg['group_members_per_page'] = 50;

// Tidy
$bb_cfg['tidy_post'] = (!in_array('tidy', get_loaded_extensions())) ? false : true;
$bb_cfg['tidy_post'] = in_array('tidy', get_loaded_extensions());

// Ads
$bb_cfg['show_ads'] = false;
Expand Down
1 change: 1 addition & 0 deletions library/includes/init_bb.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ function bb_setcookie ($name, $val, $lifetime = COOKIE_PERSIST, $httponly = fals
define('CHBOX', 5);
define('SELECT', 6);

// Check banned agents
if (!empty($banned_user_agents))
{
foreach ($banned_user_agents as $agent)
Expand Down
4 changes: 2 additions & 2 deletions poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
bb_die($lang['NEW_POLL_ADDED']);
break;

// редакторование
// редактирование
case 'poll_edit':
if (!$t_data['topic_vote'])
{
Expand Down Expand Up @@ -234,4 +234,4 @@ function delete_votes_data ($topic_id)
DB()->query("DELETE FROM ". BB_POLL_USERS ." WHERE topic_id = $topic_id");
CACHE('bb_poll_data')->rm("poll_$topic_id");
}
}
}
4 changes: 2 additions & 2 deletions viewtopic.php
Original file line number Diff line number Diff line change
Expand Up @@ -892,8 +892,8 @@
if (IS_ADMIN)
{
$template->assign_vars(array(
'U_LOGS' => "admin/admin_log.php?sid={$userdata['session_id']}&t=$topic_id&db=365",
'U_LOGS' => "admin/admin_log.php?sid={$userdata['session_id']}&t=$topic_id&db={$bb_cfg['log_days_keep']}",
));
}

print_page('viewtopic.tpl');
print_page('viewtopic.tpl');