Version 4.3.6

This commit is contained in:
Neo committed 2025-12-19 05:49:12 -08:00
1 parent fe1acf984a
commit 1a0c7fd3c2
609 files changed
+14707 -5726

No files matched your search

+17 -7
View File
@@ -87,6 +87,12 @@ class _Front extends \IPS\Session
$session = NULL;
}
/* We match bots by browser and IP address, so reset our session ID if we found a matching bot row */
if( $session AND $session['uagent_type'] == 'search' AND $session['id'] != $this->sessionId )
{
$this->sessionId = $session['id'];
}
/* Store this so plugins can access */
$this->sessionData = $session;
@@ -163,7 +169,7 @@ class _Front extends \IPS\Session
/* Work out the type */
if ( $this->member->member_id )
{
if ( ( $session and $session['login_type'] === static::LOGIN_TYPE_ANONYMOUS ) or $device and $device->anonymous )
if ( ( $session and $session['login_type'] === static::LOGIN_TYPE_ANONYMOUS ) or ( $device and $device->anonymous ) OR $this->member->group['g_hide_online_list'] )
{
$type = static::LOGIN_TYPE_ANONYMOUS;
}
@@ -267,12 +273,6 @@ class _Front extends \IPS\Session
$this->save = FALSE;
}
/* Don't update if we're an interface file showing database filesystem images, or custom field images, etc as this wipes location data */
if ( isset( $_SERVER['SCRIPT_FILENAME'] ) and preg_match( '#/applications/(\w+?)/interface/#', $_SERVER['SCRIPT_FILENAME'] ) )
{
$this->save = FALSE;
}
$this->data['member_name'] = $this->member->member_id ? $this->member->name : '';
$this->data['member_id'] = $this->member->member_id ?: NULL;
$this->data['data'] = $data;
@@ -286,6 +286,16 @@ class _Front extends \IPS\Session
return TRUE;
}
/**
* Do not update sessions
*
* @return void
*/
public function noUpdate()
{
$this->save = FALSE;
}
/**
* @brief Stored engine
*/