/[LeafOK_CVS]/lbbs/src/login.c
ViewVC logotype

Diff of /lbbs/src/login.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.60 by sysadm, Sat Oct 18 14:35:04 2025 UTC Revision 1.62 by sysadm, Wed Oct 22 16:12:50 2025 UTC
# Line 503  int user_online_add(MYSQL *db) Line 503  int user_online_add(MYSQL *db)
503          }          }
504    
505          snprintf(sql, sizeof(sql),          snprintf(sql, sizeof(sql),
506                           "INSERT INTO user_online(SID, UID, ip, login_tm, last_tm) "                           "INSERT INTO user_online(SID, UID, ip, current_action, login_tm, last_tm) "
507                           "VALUES('Telnet_Process_%d', %d, '%s', NOW(), NOW())",                           "VALUES('Telnet_Process_%d', %d, '%s', 'LOGIN', NOW(), NOW())",
508                           getpid(), BBS_priv.uid, hostaddr_client);                           getpid(), BBS_priv.uid, hostaddr_client);
509          if (mysql_query(db, sql) != 0)          if (mysql_query(db, sql) != 0)
510          {          {
# Line 579  int user_online_update(const char *actio Line 579  int user_online_update(const char *actio
579          }          }
580    
581          snprintf(sql, sizeof(sql),          snprintf(sql, sizeof(sql),
582                           "UPDATE user_online SET current_action = '%s', last_tm=NOW() "                           "UPDATE user_online SET current_action = '%s', last_tm = NOW() "
583                           "WHERE SID = 'Telnet_Process_%d'",                           "WHERE SID = 'Telnet_Process_%d'",
584                           BBS_current_action, getpid());                           BBS_current_action, getpid());
585          if (mysql_query(db, sql) != 0)          if (mysql_query(db, sql) != 0)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1