mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13422] Add new event core.session_check_user_session
PHPBB3-13422
This commit is contained in:
parent
4700b44125
commit
566510769b
1 changed files with 9 additions and 1 deletions
|
@ -215,7 +215,7 @@ class session
|
||||||
function session_begin($update_session_page = true)
|
function session_begin($update_session_page = true)
|
||||||
{
|
{
|
||||||
global $phpEx, $SID, $_SID, $_EXTRA_URL, $db, $config, $phpbb_root_path;
|
global $phpEx, $SID, $_SID, $_EXTRA_URL, $db, $config, $phpbb_root_path;
|
||||||
global $request, $phpbb_container;
|
global $request, $phpbb_container, $phpbb_dispatcher;
|
||||||
|
|
||||||
// Give us some basic information
|
// Give us some basic information
|
||||||
$this->time_now = time();
|
$this->time_now = time();
|
||||||
|
@ -372,6 +372,14 @@ class session
|
||||||
// Did the session exist in the DB?
|
// Did the session exist in the DB?
|
||||||
if (isset($this->data['user_id']))
|
if (isset($this->data['user_id']))
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Event to check user session
|
||||||
|
*
|
||||||
|
* @event core.session_check_user_session
|
||||||
|
* @since 3.1.3-RC1
|
||||||
|
*/
|
||||||
|
$phpbb_dispatcher->dispatch('core.session_check_user_session');
|
||||||
|
|
||||||
// Validate IP length according to admin ... enforces an IP
|
// Validate IP length according to admin ... enforces an IP
|
||||||
// check on bots if admin requires this
|
// check on bots if admin requires this
|
||||||
// $quadcheck = ($config['ip_check_bot'] && $this->data['user_type'] & USER_BOT) ? 4 : $config['ip_check'];
|
// $quadcheck = ($config['ip_check_bot'] && $this->data['user_type'] & USER_BOT) ? 4 : $config['ip_check'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue