mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Added ability to reset ratio (#1545)
* Minor improvements * Update index_data.php * Updated * Update usercp_viewprofile.tpl * Update mysql.sql * Update main.php * Update CHANGELOG.md
This commit is contained in:
parent
7b3661cb3f
commit
0eba082d41
8 changed files with 61 additions and 2 deletions
|
@ -74,6 +74,12 @@ if (bf($profiledata['user_opt'], 'user_opt', 'dis_sig')) {
|
|||
$signature = bbcode2html($signature);
|
||||
}
|
||||
|
||||
// Null ratio
|
||||
if ($bb_cfg['ratio_null_enabled']) {
|
||||
$btu = get_bt_userdata($profiledata['user_id']);
|
||||
$template->assign_vars(array('NULLED_RATIO' => (bool)$btu['ratio_nulled']));
|
||||
}
|
||||
|
||||
// Ban information
|
||||
if ($banInfo = getBanInfo((int)$profiledata['user_id'])) {
|
||||
$template->assign_block_vars('ban', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue