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:
Roman Kelesidis 2023-08-09 18:36:35 +07:00 committed by GitHub
parent 43cf31a439
commit 9e748df9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 4 deletions

View File

@ -1,5 +1,13 @@
# 📖 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)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.06...v2.1.5-2023.07)

View File

@ -128,9 +128,9 @@ switch ($field)
$table = BB_BT_USERS;
$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);
break;
@ -147,6 +147,7 @@ switch ($field)
}
$btu[$field] = $value;
$this->response['update_ids']['u_ratio'] = (string) get_bt_ratio($btu);
CACHE('bb_cache')->rm('btu_' . $user_id);
break;
case 'user_points':

View File

@ -15,8 +15,8 @@ $domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $do
$domain_ssl = false;
// Version info
$bb_cfg['tp_version'] = '2.1.5-2023.07';
$bb_cfg['tp_release_date'] = '04-08-2023';
$bb_cfg['tp_version'] = '2.1.5-2023.08';
$bb_cfg['tp_release_date'] = '04-09-2023';
$bb_cfg['tp_release_state'] = 'LTS';
$bb_cfg['tp_zf_version'] = '2.4.13';