mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Fixed broken sessions (#205)
* Fixed broken sessions * Update CHANGELOG.md * Update poll.php * Update config.php * fix
This commit is contained in:
parent
5af213eadb
commit
98a79565d1
@ -6,6 +6,7 @@
|
|||||||
**Merged pull requests:**
|
**Merged pull requests:**
|
||||||
|
|
||||||
- Release v2.1.5-2023.06 🎉
|
- Release v2.1.5-2023.06 🎉
|
||||||
|
- Fixed broken sessions [\#205](https://github.com/torrentpier/torrentpier-lts/pull/205) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- IP detect subsystem replace [\#204](https://github.com/torrentpier/torrentpier-lts/pull/204) ([belomaxorka](https://github.com/belomaxorka))
|
- IP detect subsystem replace [\#204](https://github.com/torrentpier/torrentpier-lts/pull/204) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Fixed broken skype widget in user profile [\#203](https://github.com/torrentpier/torrentpier-lts/pull/203) ([belomaxorka](https://github.com/belomaxorka))
|
- Fixed broken skype widget in user profile [\#203](https://github.com/torrentpier/torrentpier-lts/pull/203) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
- Redirect to viewprofile.php if profile.php hasn't arguments [\#202](https://github.com/torrentpier/torrentpier-lts/pull/202) ([belomaxorka](https://github.com/belomaxorka))
|
- Redirect to viewprofile.php if profile.php hasn't arguments [\#202](https://github.com/torrentpier/torrentpier-lts/pull/202) ([belomaxorka](https://github.com/belomaxorka))
|
||||||
|
@ -515,7 +515,7 @@ $bb_cfg['user_not_active_days_keep'] = 180; // inactive users but only wi
|
|||||||
$bb_cfg['group_members_per_page'] = 50; // количество групп на одной странице
|
$bb_cfg['group_members_per_page'] = 50; // количество групп на одной странице
|
||||||
|
|
||||||
// Tidy
|
// Tidy
|
||||||
$bb_cfg['tidy_post'] = in_array('tidy', get_loaded_extensions());
|
$bb_cfg['tidy_post'] = (!in_array('tidy', get_loaded_extensions())) ? false : true;
|
||||||
|
|
||||||
// Ads
|
// Ads
|
||||||
$bb_cfg['show_ads'] = false;
|
$bb_cfg['show_ads'] = false;
|
||||||
|
@ -334,6 +334,7 @@ class user_common
|
|||||||
*/
|
*/
|
||||||
function session_end ($update_lastvisit = false, $set_cookie = true)
|
function session_end ($update_lastvisit = false, $set_cookie = true)
|
||||||
{
|
{
|
||||||
|
cache_rm_userdata($this->data);
|
||||||
DB()->query("
|
DB()->query("
|
||||||
DELETE FROM ". BB_SESSIONS ."
|
DELETE FROM ". BB_SESSIONS ."
|
||||||
WHERE session_id = '{$this->data['session_id']}'
|
WHERE session_id = '{$this->data['session_id']}'
|
||||||
@ -358,6 +359,7 @@ class user_common
|
|||||||
{
|
{
|
||||||
$this->create_autologin_id($this->data, false);
|
$this->create_autologin_id($this->data, false);
|
||||||
|
|
||||||
|
cache_rm_user_sessions($this->data['user_id']);
|
||||||
DB()->query("
|
DB()->query("
|
||||||
DELETE FROM ". BB_SESSIONS ."
|
DELETE FROM ". BB_SESSIONS ."
|
||||||
WHERE session_user_id = '{$this->data['user_id']}'
|
WHERE session_user_id = '{$this->data['user_id']}'
|
||||||
|
Loading…
Reference in New Issue
Block a user