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

Diff of /innwebd/base_active.cpp

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

Revision 1.3 by sysadm, Sun Jul 4 06:45:23 2004 UTC Revision 1.4 by sysadm, Sun Jul 4 08:04:08 2004 UTC
# Line 476  int base_active::get_cancel(const char* Line 476  int base_active::get_cancel(const char*
476                                  if (i >= step || cur_art_id >= art_end || rec_count >= step*10)                                  if (i >= step || cur_art_id >= art_end || rec_count >= step*10)
477                                  {                                  {
478                                          //Delete article                                          //Delete article
479                                          sql.Format("select AID from innd_logfile where msg_id in (%s"                                          sql.Format("select AID from innd_log where msg_id in (%s"
480                                                  ") and op='I' and cancel=0",msg_id_list);                                                  ") and op='I' and cancel=0",msg_id_list);
481    
482                                          RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);                                          RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);
# Line 617  int base_active::post_article(const char Line 617  int base_active::post_article(const char
617    
618                          if (out.Left(3) == "240") // Post successfully                          if (out.Left(3) == "240") // Post successfully
619                          {                          {
620                                  sql.Format("insert delayed into innd_logfile (AID,art_id,msg_id,op) "                                  sql.Format("insert delayed into innd_log (AID,art_id,msg_id,op) "
621                                          "values(%ld,0,'%s','O')",aid,msg_id);                                          "values(%ld,0,'%s','O')",aid,msg_id);
622                                  this->Db.ExecuteSQL(sql);                                  this->Db.ExecuteSQL(sql);
623    
# Line 655  int base_active::post_cancel(const char* Line 655  int base_active::post_cancel(const char*
655                  sql.Format("select bbs.nickname,innd_todo.ID,innd_conf.group,innd_todo.SID as doSID,"                  sql.Format("select bbs.nickname,innd_todo.ID,innd_conf.group,innd_todo.SID as doSID,"
656                          "user_list.username,innd_todo.AID,"                          "user_list.username,innd_todo.AID,"
657                          "subdate(innd_todo.dt,interval '8' hour) as dt,"                          "subdate(innd_todo.dt,interval '8' hour) as dt,"
658                          "innd_logfile.msg_id from innd_todo inner join innd_conf on"                          "innd_log.msg_id from innd_todo inner join innd_conf on"
659                          " innd_todo.server=innd_conf.server and innd_todo.SID=innd_conf.SID left join bbs on"                          " innd_todo.server=innd_conf.server and innd_todo.SID=innd_conf.SID left join bbs on"
660                          " innd_todo.AID=bbs.AID inner join user_list on"                          " innd_todo.AID=bbs.AID inner join user_list on"
661                          " bbs.UID=user_list.UID inner join innd_logfile on"                          " bbs.UID=user_list.UID inner join innd_log on"
662                          " innd_todo.AID=innd_logfile.AID where innd_conf.out=1 and"                          " innd_todo.AID=innd_log.AID where innd_conf.out=1 and"
663                          " innd_conf.passive_mode=0 and innd_conf.server='%s' and"                          " innd_conf.passive_mode=0 and innd_conf.server='%s' and"
664                          " innd_todo.op='C' and innd_logfile.cancel=0 order by innd_todo.AID",news_server);                          " innd_todo.op='C' and innd_log.cancel=0 order by innd_todo.AID",news_server);
665    
666                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);
667    
# Line 720  int base_active::post_cancel(const char* Line 720  int base_active::post_cancel(const char*
720    
721                          if (out.Left(3) == "240") // Post successfully                          if (out.Left(3) == "240") // Post successfully
722                          {                          {
723                                  sql.Format("update innd_logfile set cancel=1 where msg_id='%s'",cancel_msg_id);                                  sql.Format("update innd_log set cancel=1 where msg_id='%s'",cancel_msg_id);
724                                  this->Db.ExecuteSQL(sql);                                  this->Db.ExecuteSQL(sql);
725    
726                                  sql.Format("delete from innd_todo where ID=%ld",id);                                  sql.Format("delete from innd_todo where ID=%ld",id);
# Line 1003  int base_active::ihave_article(const cha Line 1003  int base_active::ihave_article(const cha
1003    
1004                          if (out.Left(3) == "235") // Ihave successfully                          if (out.Left(3) == "235") // Ihave successfully
1005                          {                          {
1006                                  sql.Format("insert delayed into innd_logfile (AID,art_id,msg_id,op) "                                  sql.Format("insert delayed into innd_log (AID,art_id,msg_id,op) "
1007                                          "values(%ld,0,'%s','O')",aid,msg_id);                                          "values(%ld,0,'%s','O')",aid,msg_id);
1008                                  this->Db.ExecuteSQL(sql);                                  this->Db.ExecuteSQL(sql);
1009    
# Line 1048  int base_active::ihave_cancel(const char Line 1048  int base_active::ihave_cancel(const char
1048                  sql.Format("select bbs.nickname,innd_todo.ID,innd_conf.group,innd_todo.SID as doSID,"                  sql.Format("select bbs.nickname,innd_todo.ID,innd_conf.group,innd_todo.SID as doSID,"
1049                          "user_list.username,innd_todo.AID,"                          "user_list.username,innd_todo.AID,"
1050                          "subdate(innd_todo.dt,interval '8' hour) as dt,"                          "subdate(innd_todo.dt,interval '8' hour) as dt,"
1051                          "innd_logfile.msg_id from innd_todo inner join innd_conf on"                          "innd_log.msg_id from innd_todo inner join innd_conf on"
1052                          " innd_todo.server=innd_conf.server and innd_todo.SID=innd_conf.SID left join bbs on"                          " innd_todo.server=innd_conf.server and innd_todo.SID=innd_conf.SID left join bbs on"
1053                          " innd_todo.AID=bbs.AID inner join user_list on"                          " innd_todo.AID=bbs.AID inner join user_list on"
1054                          " bbs.UID=user_list.UID inner join innd_logfile on"                          " bbs.UID=user_list.UID inner join innd_log on"
1055                          " innd_todo.AID=innd_logfile.AID where innd_conf.out=1 and"                          " innd_todo.AID=innd_log.AID where innd_conf.out=1 and"
1056                          " innd_conf.passive_mode=1 and innd_conf.server='%s' and"                          " innd_conf.passive_mode=1 and innd_conf.server='%s' and"
1057                          " innd_todo.op='C' and innd_logfile.cancel=0 order by innd_todo.AID",news_server);                          " innd_todo.op='C' and innd_log.cancel=0 order by innd_todo.AID",news_server);
1058    
1059                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);
1060    
# Line 1113  int base_active::ihave_cancel(const char Line 1113  int base_active::ihave_cancel(const char
1113    
1114                          if (out.Left(3) == "235") // Ihave successfully                          if (out.Left(3) == "235") // Ihave successfully
1115                          {                          {
1116                                  sql.Format("update innd_logfile set cancel=1 where msg_id='%s'",cancel_msg_id);                                  sql.Format("update innd_log set cancel=1 where msg_id='%s'",cancel_msg_id);
1117                                  this->Db.ExecuteSQL(sql);                                  this->Db.ExecuteSQL(sql);
1118    
1119                                  sql.Format("delete from innd_todo where ID=%ld",id);                                  sql.Format("delete from innd_todo where ID=%ld",id);


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

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