/[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.55 by sysadm, Tue May 27 00:54:01 2025 UTC Revision 1.61 by sysadm, Fri May 30 12:51:00 2025 UTC
# Line 153  int bbs_welcome(MYSQL *db) Line 153  int bbs_welcome(MYSQL *db)
153          u_anonymous++;          u_anonymous++;
154    
155          // Display logo          // Display logo
156          display_file_ex(DATA_WELCOME, 1, 0);          display_file(DATA_WELCOME, 1, 2);
157    
158          // Display welcome message          // Display welcome message
159          prints("\r\033[1;35m»¶Ó­¹âÁÙ\033[33m ¡¾ %s ¡¿ \033[35mBBS\r\n"          prints("\r\033[1;35m»¶Ó­¹âÁÙ\033[33m ¡¾ %s ¡¿ \033[35mBBS\r\n"
# Line 175  int bbs_logout(MYSQL *db) Line 175  int bbs_logout(MYSQL *db)
175                  return -1;                  return -1;
176          }          }
177    
178          display_file_ex(DATA_GOODBYE, 1, 1);          display_file(DATA_GOODBYE, 1, 1);
179    
180          log_std("User logout\n");          log_std("User logout\n");
181    
# Line 191  int bbs_center() Line 191  int bbs_center()
191    
192          clearscr();          clearscr();
193    
194          show_top("");          show_top("", BBS_name, "");
195          show_active_board();          show_active_board();
196          show_bottom("");          show_bottom("");
197          display_menu(p_bbs_menu);          display_menu(p_bbs_menu);
# Line 207  int bbs_center() Line 207  int bbs_center()
207    
208                          show_active_board();                          show_active_board();
209                          show_bottom("");                          show_bottom("");
210                            display_menu_cursor(p_bbs_menu, 1);
211                          iflush();                          iflush();
212                  }                  }
213    
# Line 230  int bbs_center() Line 231  int bbs_center()
231                          case REDRAW:                          case REDRAW:
232                                  t_last_action = time(0);                                  t_last_action = time(0);
233                                  clearscr();                                  clearscr();
234                                  show_top("");                                  show_top("", BBS_name, "");
235                                  show_active_board();                                  show_active_board();
236                                  show_bottom("");                                  show_bottom("");
237                                  display_menu(p_bbs_menu);                                  display_menu(p_bbs_menu);
# Line 291  int bbs_main() Line 292  int bbs_main()
292          // Welcome          // Welcome
293          if (bbs_welcome(db) < 0)          if (bbs_welcome(db) < 0)
294          {          {
                 mysql_close(db);  
295                  goto cleanup;                  goto cleanup;
296          }          }
297    
298          // User login          // User login
299          if (bbs_login(db) < 0)          if (bbs_login(db) < 0)
300          {          {
                 mysql_close(db);  
301                  goto cleanup;                  goto cleanup;
302          }          }
303          clearscr();          clearscr();
304    
305          // BBS Top 10          // BBS Top 10
306          display_file_ex(VAR_BBS_TOP, 1, 1);          display_file(VAR_BBS_TOP, 1, 1);
307    
308          // Main          // Main
309          bbs_center();          bbs_center();


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

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