From 0509df6d3ab2f3401a1983ce2af1bf504ce70f8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Wed, 1 Oct 2008 02:29:41 +0000 Subject: [PATCH] Remote address is now being updated with every click the member is doing --- inc/databases.php | 2 +- inc/mysql-manager.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/databases.php b/inc/databases.php index af6aaf6f1e..c845071d18 100644 --- a/inc/databases.php +++ b/inc/databases.php @@ -113,7 +113,7 @@ define('USAGE_BASE', "usage"); define('SERVER_URL', "http://www.mxchange.org"); // This current patch level -define('CURR_SVN_REVISION', "429"); +define('CURR_SVN_REVISION', "430"); // Take a prime number which is long (if you know a longer one please try it out!) define('_PRIME', 591623); diff --git a/inc/mysql-manager.php b/inc/mysql-manager.php index d8855d32ca..ec203bd135 100644 --- a/inc/mysql-manager.php +++ b/inc/mysql-manager.php @@ -699,8 +699,8 @@ function UPDATE_LOGIN_DATA () { } // END - if // Update last module / online time - $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET last_module='%s', last_online=UNIX_TIMESTAMP() WHERE userid=%s LIMIT 1", - array($GLOBALS['what'], $GLOBALS['userid']), __FILE__, __LINE__); + $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET last_module='%s', last_online=UNIX_TIMESTAMP(), REMOTE_ADDR='%s' WHERE userid=%s LIMIT 1", + array($GLOBALS['what'], GET_REMOTE_ADDR(), $GLOBALS['userid']), __FILE__, __LINE__); } } else { // Destroy session, we cannot update! -- 2.39.5