--- innwebd/bbsd.cpp 2004/07/04 06:45:23 1.5 +++ innwebd/bbsd.cpp 2008/04/11 17:14:49 1.9 @@ -1,14 +1,10 @@ /*******************************************************/ /* */ /* LeafOK Innbbsd */ -/* Copyright (C) LeafOK.com, 2003-2004 */ /* */ -/* Programmed by Leaf */ -/* E-mail:leaflet@leafok.com QQ:6049044 */ +/* Copyright (C) LeafOK.com, 2003-2008 */ /* */ -/* http://bbs.leafok.com */ -/* http://bbs.leafok.net */ -/* http://bbs.fenglin.info */ +/* http://www.leafok.com */ /* */ /*******************************************************/ @@ -39,7 +35,9 @@ int bbsd::Accept(void) try { u_online = 0; - sql = "select SID as cc from user_online group by SID"; + sql = "select SID as cc from user_online where current_action not in" + " ('max_user_limit','max_ip_limit','max_session_limit','exit')" + " group by SID"; RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); while(!RS.IsEOF()) { @@ -49,7 +47,9 @@ int bbsd::Accept(void) RS.Close(); u_anonymous = 0; - 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" + " ('max_user_limit','max_ip_limit','max_session_limit','exit')" + " group by SID"; RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); while(!RS.IsEOF()) { @@ -112,7 +112,9 @@ int bbsd::Accept(void) } catch(CException* e) { - syslog << logfile::log_head << "Error in accept()" << endl; + char strErrMsg[1024]; + e->GetErrorMessage(strErrMsg,1024); + syslog << logfile::log_head << "Error in accept() [" << strErrMsg << "]" << endl; e->Delete(); return -1; } @@ -163,3 +165,8 @@ int bbsd::db_env_init(void) } return 0; } + +bool bbsd::check_priv(void) +{ + return true; +}