//up_down total
$sql = "SELECT ROUND(SUM(u_up_total+u_down_total)) AS pumped, ROUND(SUM(u_up_total)) AS upl, ROUND(SUM(u_down_total)) AS donl FROM " . BB_BT_USERS;
$row = DB()->fetch_row($sql);
$data['total_dl_ul'] = $row['pumped'];
$data['upload'] = $row['upl'];
$data['download'] = $row['donl'];
//up_down total end
'UPL' => ($bb_cfg['tor_stats']) ? humn_size($stats['upload']) : '',
'DNL' => ($bb_cfg['tor_stats']) ? humn_size($stats['download']) : '',
Отдано всего:{UPL}
Скачено всего: {DNL}
$this->store('stats', $data);
//up_down total
$sql = "SELECT ROUND(SUM(u_up_total+u_down_total)) AS pumped, ROUND(SUM(u_up_total)) AS upl, ROUND(SUM(u_down_total)) AS donl FROM " . BB_BT_USERS;
$row = DB()->fetch_row($sql);
$data['total_dl_ul'] = $row['pumped'];
$data['upload'] = $row['upl'];
$data['download'] = $row['donl'];
//up_down total end
// Tracker stats
'UPL' => ($bb_cfg['tor_stats']) ? humn_size($stats['upload']) : '',
'DNL' => ($bb_cfg['tor_stats']) ? humn_size($stats['download']) : '',