aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMasterShredder <immortalshredder@gmail.com>2014-12-07 05:57:07 +0400
committerMasterShredder <immortalshredder@gmail.com>2014-12-07 05:57:07 +0400
commit566510769b37f093542bfe18834ce2e4771eaf77 (patch)
treec9bc732e7704927fef8c491ad83091d34e756ada /phpBB/phpbb
parent4700b44125131d1121a346d6135e451cbf438be7 (diff)
downloadforums-566510769b37f093542bfe18834ce2e4771eaf77.tar
forums-566510769b37f093542bfe18834ce2e4771eaf77.tar.gz
forums-566510769b37f093542bfe18834ce2e4771eaf77.tar.bz2
forums-566510769b37f093542bfe18834ce2e4771eaf77.tar.xz
forums-566510769b37f093542bfe18834ce2e4771eaf77.zip
[ticket/13422] Add new event core.session_check_user_session
PHPBB3-13422
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/session.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/phpBB/phpbb/session.php b/phpBB/phpbb/session.php
index 691d0d5bef..ef177ed072 100644
--- a/phpBB/phpbb/session.php
+++ b/phpBB/phpbb/session.php
@@ -215,7 +215,7 @@ class session
function session_begin($update_session_page = true)
{
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
$this->time_now = time();
@@ -372,6 +372,14 @@ class session
// Did the session exist in the DB?
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
// check on bots if admin requires this
// $quadcheck = ($config['ip_check_bot'] && $this->data['user_type'] & USER_BOT) ? 4 : $config['ip_check'];