// If they aren't logged in they get the standard menu // ================== IIP "Last Seen" code change START. $date = $this -> get_date(); $query = " UPDATE {$config['tbprefix']}Users SET U_LastSeen = $date WHERE U_Number = '{$user['U_Number']}' "; $dbh -> do_query($query); // ================== IIP "Last Seen" code change END. $phpurl = $config['phpurl'];
// We need to check for a temporary cookie and if we don't find // one then this is their first visit for that browser session // so we get rid of the TempRead values in their profile if ( !${$config['cookieprefix']."w3t_visit"} ) { $date = time(); $query = " UPDATE {$config['tbprefix']}Users SET U_Laston = $date, U_TempRead = '' WHERE U_Username = '$Username' AND U_Laston < ($date - 14300) "; $dbh -> do_query($query); } // ================== IIP "Last Seen" code change START. $date = $this -> get_date(); $query = " UPDATE {$config['tbprefix']}Users SET U_LastSeen = $date WHERE U_Number = '{$user['U_Number']}' "; $dbh -> do_query($query); // ================== IIP "Last Seen" code change END. $phpurl = $config['phpurl'];
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.