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

Diff of /lbbs/src/bbs_main.c

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

Revision 1.63 by sysadm, Wed Jun 4 14:01:29 2025 UTC Revision 1.64 by sysadm, Thu Jun 5 05:24:56 2025 UTC
# Line 161  int bbs_welcome(MYSQL *db) Line 161  int bbs_welcome(MYSQL *db)
161                     "匿名游客[\033[36m%d\033[32m] "                     "匿名游客[\033[36m%d\033[32m] "
162                     "注册用户数[\033[36m%d/%d\033[32m]\r\n"                     "注册用户数[\033[36m%d/%d\033[32m]\r\n"
163                     "从 [\033[36m%s\033[32m] 起,最高人数记录:"                     "从 [\033[36m%s\033[32m] 起,最高人数记录:"
164                     "[\033[36m%d\033[32m],累计访问人次:[\033[36m%d\033[32m]\r\n",                     "[\033[36m%d\033[32m],累计访问人次:[\033[36m%d\033[32m]\033[m\r\n",
165                     BBS_name, u_online, BBS_max_client, u_anonymous, u_total,                     BBS_name, u_online, BBS_max_client, u_anonymous, u_total,
166                     BBS_max_user, BBS_start_dt, max_u_online, u_login_count);                     BBS_max_user, BBS_start_dt, max_u_online, u_login_count);
167    
168            iflush();
169    
170          return 0;          return 0;
171  }  }
172    
# Line 296  int bbs_main() Line 298  int bbs_main()
298          }          }
299    
300          // User login          // User login
301          if (bbs_login(db) < 0)          if (SSH_v2)
302            {
303                    prints("\033[1m%s 欢迎使用ssh方式访问 \033[1;33m按任意键继续...\033[m", BBS_username);
304                    iflush();
305                    igetch_t(MAX_DELAY_TIME);
306            }
307            else if (bbs_login(db) < 0)
308          {          {
309                  goto cleanup;                  goto cleanup;
310          }          }
311    
312          clearscr();          clearscr();
313    
314          // BBS Top 10          // BBS Top 10


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

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