/[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.1 by sysadm, Mon Oct 18 11:33:48 2004 UTC Revision 1.7 by sysadm, Fri Oct 22 15:20:32 2004 UTC
# Line 1  Line 1 
1  /***************************************************************************  /***************************************************************************
2                            bbsd.c  -  description                            bbs_main.c  -  description
3                               -------------------                               -------------------
4      begin                : Mon Oct 18 2004      begin                : Mon Oct 18 2004
5      copyright            : (C) 2004 by leaf      copyright            : (C) 2004 by Leaflet
6      email                : leaflet@leafok.com      email                : leaflet@leafok.com
7   ***************************************************************************/   ***************************************************************************/
8    
# Line 15  Line 15 
15   *                                                                         *   *                                                                         *
16   ***************************************************************************/   ***************************************************************************/
17    
18    #include "bbs.h"
19  #include "common.h"  #include "common.h"
20    #include "io.h"
21    
22  int  int
23  bbs_main()  bbs_main()
24  {  {
25          log_std("bbs_main()\n");    int ret;
26              
27          return 0;    bbs_info();
28      bbs_welcome();
29    
30      ret = bbs_login();
31      if (ret < 0)
32        return -1;
33      
34      bbs_center();
35    
36      bbs_exit();
37    
38      return 0;
39    }
40    
41    int
42    bbs_info()
43    {
44      prints(
45        "\033[1;37m»¶Ó­¹âÁÙ \033[33m%s \033[32m[%s]  \033[37m( %s )\r\n",
46        BBS_name, BBS_server, app_version);
47        
48      iflush();
49    
50      return 0;
51    }
52    
53    int
54    bbs_exit()
55    {
56      prints("\033[0;37m\r\n");
57      iflush();
58    
59      sleep(1);
60      
61      return 0;
62    }
63    
64    int
65    bbs_center()
66    {
67      show_top();
68    
69      show_bottom();
70    
71      return 0;
72  }  }


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

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