]> git.mxchange.org Git - mailer.git/commitdiff
Remote address is now being updated with every click the member is doing
authorRoland Häder <roland@mxchange.org>
Wed, 1 Oct 2008 02:29:41 +0000 (02:29 +0000)
committerRoland Häder <roland@mxchange.org>
Wed, 1 Oct 2008 02:29:41 +0000 (02:29 +0000)
inc/databases.php
inc/mysql-manager.php

index af6aaf6f1e409ba842317b14ad2a4aad32bf17d8..c845071d181689512ac537b968262cd285aab3a5 100644 (file)
@@ -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);
index d8855d32ca8797998139a5e2137ce1d06250d4e5..ec203bd135a430bff0e5eb214b2c39d67a0e294f 100644 (file)
@@ -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!