mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor improvements (#215)
* Minor improvements * Update edit_user_profile.php * Update edit_user_profile.php * Update config.php * Update CHANGELOG.md
This commit is contained in:
parent
43cf31a439
commit
9e748df9be
@ -1,5 +1,13 @@
|
|||||||
# 📖 Change Log
|
# 📖 Change Log
|
||||||
|
|
||||||
|
## [v2.1.5-2023.08](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.08) (2023-09-04)
|
||||||
|
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.07...v2.1.5-2023.08)
|
||||||
|
|
||||||
|
**Merged pull requests:**
|
||||||
|
|
||||||
|
- Release v2.1.5-2023.08 🎉
|
||||||
|
- Minor improvements [\#215](https://github.com/torrentpier/torrentpier-lts/pull/215) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
|
||||||
## [v2.1.5-2023.07](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.07) (2023-08-04)
|
## [v2.1.5-2023.07](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.07) (2023-08-04)
|
||||||
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.06...v2.1.5-2023.07)
|
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.06...v2.1.5-2023.07)
|
||||||
|
|
||||||
|
@ -128,9 +128,9 @@ switch ($field)
|
|||||||
$table = BB_BT_USERS;
|
$table = BB_BT_USERS;
|
||||||
$value = (float) str_replace(',', '.', $this->request['value']);
|
$value = (float) str_replace(',', '.', $this->request['value']);
|
||||||
|
|
||||||
foreach (array('KB'=>1,'MB'=>2,'GB'=>3,'TB'=>4) as $s => $m)
|
foreach (array('KB'=>1,'MB'=>2,'GB'=>3,'TB'=>4,'PB'=>5,'EB'=>6,'ZB'=>7,'YB'=>8) as $s => $m)
|
||||||
{
|
{
|
||||||
if (strpos($this->request['value'], $s) !== false)
|
if (stripos($this->request['value'], $s) !== false)
|
||||||
{
|
{
|
||||||
$value *= pow(1024, $m);
|
$value *= pow(1024, $m);
|
||||||
break;
|
break;
|
||||||
@ -147,6 +147,7 @@ switch ($field)
|
|||||||
}
|
}
|
||||||
$btu[$field] = $value;
|
$btu[$field] = $value;
|
||||||
$this->response['update_ids']['u_ratio'] = (string) get_bt_ratio($btu);
|
$this->response['update_ids']['u_ratio'] = (string) get_bt_ratio($btu);
|
||||||
|
CACHE('bb_cache')->rm('btu_' . $user_id);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'user_points':
|
case 'user_points':
|
||||||
|
@ -15,8 +15,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
|
|||||||
$domain_ssl = false;
|
$domain_ssl = false;
|
||||||
|
|
||||||
// Version info
|
// Version info
|
||||||
$bb_cfg['tp_version'] = '2.1.5-2023.07';
|
$bb_cfg['tp_version'] = '2.1.5-2023.08';
|
||||||
$bb_cfg['tp_release_date'] = '04-08-2023';
|
$bb_cfg['tp_release_date'] = '04-09-2023';
|
||||||
$bb_cfg['tp_release_state'] = 'LTS';
|
$bb_cfg['tp_release_state'] = 'LTS';
|
||||||
$bb_cfg['tp_zf_version'] = '2.4.13';
|
$bb_cfg['tp_zf_version'] = '2.4.13';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user