/[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.22 by sysadm, Mon Mar 21 05:43:43 2005 UTC Revision 1.23 by sysadm, Mon Mar 21 13:27:00 2005 UTC
# Line 19  Line 19 
19  #include "common.h"  #include "common.h"
20  #include "io.h"  #include "io.h"
21  #include "menu.h"  #include "menu.h"
22    #include "bbs_cmd.h"
23  #include <time.h>  #include <time.h>
24  #include <fcntl.h>  #include <fcntl.h>
25  #include <unistd.h>  #include <unistd.h>
# Line 100  bbs_center () Line 101  bbs_center ()
101    
102    show_top ("");    show_top ("");
103    show_active_board ();    show_active_board ();
   display_menu (get_menu (&bbs_menu, "TOPMENU"));  
104    show_bottom ("");    show_bottom ("");
105      display_menu (get_menu (&bbs_menu, "TOPMENU"));
106    
107    while (1)    while (1)
108      {      {
# Line 130  bbs_center () Line 131  bbs_center ()
131                    return 0;                    return 0;
132                  default:                  default:
133                    strcpy (action, menu_control (&bbs_menu, ch));                    strcpy (action, menu_control (&bbs_menu, ch));
134                    if (strcmp (action, "EXITBBS") == 0)                    switch (get_cmd_value (action))
135                      return 0;                      {
136                          case EXITBBS:
137                            return 0;
138                          case BBSNET:
139                            bbs_net();
140                            clearscr ();
141                            show_top ("");
142                            show_active_board ();
143                            show_bottom ("");
144                            display_current_menu (&bbs_menu);
145                            break;
146                          case UNKNOWN_CMD:
147                            break;
148                        }
149                  }                  }
150              }              }
151            break;            break;
# Line 139  bbs_center () Line 153  bbs_center ()
153        if (time (0) - t_last_action >= 10)        if (time (0) - t_last_action >= 10)
154          {          {
155            t_last_action = time (0);            t_last_action = time (0);
156              show_top ("");
157            show_active_board ();            show_active_board ();
158            show_bottom ("");            show_bottom ("");
159          }          }


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

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