/[LeafOK_CVS]/innwebd/bbsd.cpp
ViewVC logotype

Diff of /innwebd/bbsd.cpp

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

Revision 1.5 by sysadm, Sun Jul 4 06:45:23 2004 UTC Revision 1.8 by sysadm, Sat Feb 26 16:10:25 2005 UTC
# Line 1  Line 1 
1  /*******************************************************/  /*******************************************************/
2  /*                                                     */  /*                                                     */
3  /*  LeafOK Innbbsd                                     */  /*  LeafOK Innbbsd                                     */
4  /*  Copyright (C) LeafOK.com, 2003-2004                */  /*  Copyright (C) LeafOK.com, 2003-2005                */
5  /*                                                     */  /*                                                     */
6  /*  Programmed by Leaf                                 */  /*  Programmed by Leaf                                 */
7  /*  E-mail:leaflet@leafok.com  QQ:6049044              */  /*  E-mail:leaflet@leafok.com  QQ:6049044              */
# Line 39  int bbsd::Accept(void) Line 39  int bbsd::Accept(void)
39          try          try
40          {          {
41                  u_online = 0;                  u_online = 0;
42                  sql = "select SID as cc from user_online group by SID";                  sql = "select SID as cc from user_online where current_action not in"
43                            " ('max_user_limit','max_ip_limit','max_session_limit','exit')"
44                            " group by SID";
45                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);
46                  while(!RS.IsEOF())                  while(!RS.IsEOF())
47                  {                  {
# Line 49  int bbsd::Accept(void) Line 51  int bbsd::Accept(void)
51                  RS.Close();                  RS.Close();
52    
53                  u_anonymous = 0;                  u_anonymous = 0;
54                  sql = "select SID as cc from user_online where UID=0 group by SID";                  sql = "select SID as cc from user_online where UID=0 and current_action not in"
55                            " ('max_user_limit','max_ip_limit','max_session_limit','exit')"
56                            " group by SID";
57                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);
58                  while(!RS.IsEOF())                  while(!RS.IsEOF())
59                  {                  {
# Line 163  int bbsd::db_env_init(void) Line 167  int bbsd::db_env_init(void)
167          }          }
168          return 0;          return 0;
169  }  }
170    
171    bool bbsd::check_priv(void)
172    {
173            return true;
174    }


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

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