mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor improvements (#882)
* Minor improvements * Updated * Updated * Updated * Update privmsg.php * Updated * Update admin_attach_cp.php
This commit is contained in:
parent
2c07660435
commit
4b453de64a
75 changed files with 699 additions and 735 deletions
|
@ -54,12 +54,12 @@ if (isset($_POST['bonus_id'])) {
|
|||
|
||||
bb_die($message);
|
||||
} else {
|
||||
$template->assign_vars(array(
|
||||
$template->assign_vars([
|
||||
'U_USER_PROFILE' => PROFILE_URL . $user_id,
|
||||
'S_MODE_ACTION' => BONUS_URL,
|
||||
'PAGE_TITLE' => $lang['EXCHANGE_BONUS'],
|
||||
'MY_BONUS' => sprintf($lang['MY_BONUS'], $user_points),
|
||||
));
|
||||
'MY_BONUS' => sprintf($lang['MY_BONUS'], $user_points)
|
||||
]);
|
||||
|
||||
foreach ($price_row as $i => $price) {
|
||||
if (!$price || !$upload_row[$i]) {
|
||||
|
@ -67,12 +67,12 @@ if (isset($_POST['bonus_id'])) {
|
|||
}
|
||||
$class = ($user_points >= $price) ? 'seed' : 'leech';
|
||||
|
||||
$template->assign_block_vars('bonus_upload', array(
|
||||
$template->assign_block_vars('bonus_upload', [
|
||||
'ROW_CLASS' => !($i % 2) ? 'row2' : 'row1',
|
||||
'ID' => $i,
|
||||
'DESC' => sprintf($lang['BONUS_UPLOAD_DESC'], humn_size($upload_row[$i] * 1024 * 1024 * 1024)),
|
||||
'PRICE' => sprintf($lang['BONUS_UPLOAD_PRICE'], $class, sprintf('%.2f', $price)),
|
||||
));
|
||||
'PRICE' => sprintf($lang['BONUS_UPLOAD_PRICE'], $class, sprintf('%.2f', $price))
|
||||
]);
|
||||
}
|
||||
|
||||
print_page('usercp_bonus.tpl');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue