| 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 |
{ |
{ |
| 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 |
{ |
{ |