Fixed broken sessions (#205)

* Fixed broken sessions

* Update CHANGELOG.md

* Update poll.php

* Update config.php

* fix
This commit is contained in:
Roman Kelesidis 2023-06-30 18:46:43 +07:00 committed by GitHub
parent 5af213eadb
commit 98a79565d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 2 deletions

View File

@ -6,6 +6,7 @@
**Merged pull requests:**
- 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))
- 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))

View File

@ -515,7 +515,7 @@ $bb_cfg['user_not_active_days_keep'] = 180; // inactive users but only wi
$bb_cfg['group_members_per_page'] = 50; // количество групп на одной странице
// Tidy
$bb_cfg['tidy_post'] = in_array('tidy', get_loaded_extensions());
$bb_cfg['tidy_post'] = (!in_array('tidy', get_loaded_extensions())) ? false : true;
// Ads
$bb_cfg['show_ads'] = false;

View File

@ -334,6 +334,7 @@ class user_common
*/
function session_end ($update_lastvisit = false, $set_cookie = true)
{
cache_rm_userdata($this->data);
DB()->query("
DELETE FROM ". BB_SESSIONS ."
WHERE session_id = '{$this->data['session_id']}'
@ -358,6 +359,7 @@ class user_common
{
$this->create_autologin_id($this->data, false);
cache_rm_user_sessions($this->data['user_id']);
DB()->query("
DELETE FROM ". BB_SESSIONS ."
WHERE session_user_id = '{$this->data['user_id']}'

View File

@ -138,7 +138,7 @@ switch ($mode)
bb_die($lang['NEW_POLL_ADDED']);
break;
// редактирование
// редакторование
case 'poll_edit':
if (!$t_data['topic_vote'])
{