From cb83c2ebc8b922aec3d5e372e3eedd0534a1a27f Mon Sep 17 00:00:00 2001 From: Aleksei Miheev Date: Sun, 5 Jan 2014 12:58:15 +0000 Subject: [PATCH] Add user tracking based on nginx_mod_useruid --- Sources/Load.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sources/Load.php b/Sources/Load.php index 6c45226..51f47e5 100644 --- a/Sources/Load.php +++ b/Sources/Load.php @@ -147,6 +147,12 @@ function loadUserSettings() explode(',', $user_settings['additionalGroups']) ) ); + + $__uid = str_replace("uid=","",$_SERVER['USERID']); + db_query(" + INSERT IGNORE INTO smf_member_uids VALUES('{$ID_MEMBER}', '{$__uid}')", + __FILE__, __LINE__); + } // If the user is a guest, initialize all the critial user settings. else