diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c2bde70..62d6ab81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/library/ajax/edit_user_profile.php b/library/ajax/edit_user_profile.php index 2d61ea17..d93e5dc2 100644 --- a/library/ajax/edit_user_profile.php +++ b/library/ajax/edit_user_profile.php @@ -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': diff --git a/library/config.php b/library/config.php index ed75af0a..29e6542f 100644 --- a/library/config.php +++ b/library/config.php @@ -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';