| 1 |
/*******************************************************/ |
/*******************************************************/ |
| 2 |
/* */ |
/* */ |
| 3 |
/* LeafOK Innbbsd */ |
/* LeafOK Innbbsd */ |
|
/* Copyright (C) LeafOK.com, 2003-2004 */ |
|
| 4 |
/* */ |
/* */ |
| 5 |
/* Programmed by Leaf */ |
/* Copyright (C) LeafOK.com, 2003-2008 */ |
|
/* E-mail:leaflet@leafok.com QQ:6049044 */ |
|
| 6 |
/* */ |
/* */ |
| 7 |
/* http://bbs.leafok.com */ |
/* http://www.leafok.com */ |
|
/* http://bbs.leafok.net */ |
|
|
/* http://bbs.fenglin.info */ |
|
| 8 |
/* */ |
/* */ |
| 9 |
/*******************************************************/ |
/*******************************************************/ |
| 10 |
|
|
| 35 |
try |
try |
| 36 |
{ |
{ |
| 37 |
u_online = 0; |
u_online = 0; |
| 38 |
sql = "select SID as cc from user_online group by SID"; |
sql = "select SID as cc from user_online where current_action not in" |
| 39 |
|
" ('max_user_limit','max_ip_limit','max_session_limit','exit')" |
| 40 |
|
" group by SID"; |
| 41 |
RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); |
RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); |
| 42 |
while(!RS.IsEOF()) |
while(!RS.IsEOF()) |
| 43 |
{ |
{ |
| 47 |
RS.Close(); |
RS.Close(); |
| 48 |
|
|
| 49 |
u_anonymous = 0; |
u_anonymous = 0; |
| 50 |
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" |
| 51 |
|
" ('max_user_limit','max_ip_limit','max_session_limit','exit')" |
| 52 |
|
" group by SID"; |
| 53 |
RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); |
RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); |
| 54 |
while(!RS.IsEOF()) |
while(!RS.IsEOF()) |
| 55 |
{ |
{ |
| 112 |
} |
} |
| 113 |
catch(CException* e) |
catch(CException* e) |
| 114 |
{ |
{ |
| 115 |
syslog << logfile::log_head << "Error in accept()" << endl; |
char strErrMsg[1024]; |
| 116 |
|
e->GetErrorMessage(strErrMsg,1024); |
| 117 |
|
syslog << logfile::log_head << "Error in accept() [" << strErrMsg << "]" << endl; |
| 118 |
e->Delete(); |
e->Delete(); |
| 119 |
return -1; |
return -1; |
| 120 |
} |
} |
| 165 |
} |
} |
| 166 |
return 0; |
return 0; |
| 167 |
} |
} |
| 168 |
|
|
| 169 |
|
bool bbsd::check_priv(void) |
| 170 |
|
{ |
| 171 |
|
return true; |
| 172 |
|
} |