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

Diff of /innwebd/innd.cpp

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

Revision 1.6 by sysadm, Sun Jul 4 06:45:23 2004 UTC Revision 1.12 by sysadm, Sat Feb 26 16:10:26 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 156  int innd::cmd_list(void) Line 156  int innd::cmd_list(void)
156    
157                  sql = "select * from innd_conf order by `group`";                  sql = "select * from innd_conf order by `group`";
158    
159                  RS.Open(CRecordset::snapshot,sql,CRecordst::forwardOnly | CRecordset::readOnly);                  RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);
160                  while(!RS.IsEEOF())                  while(!RS.IsEOF())
161                  {                  {
162                          RS.GetFieldValue("group",dbVar,SQL_C_CHAR);                          RS.GetFieldValue("group",dbVar,SQL_C_CHAR);
163                          group = *(dbVr.m_pstring);                          group = *(dbVar.m_pstring);
164                          art_begin = 1;                          art_begin = 1;
165                          art_end = 0;;                          art_end = 0;;
166                          RS.GetFieldValue("in",dbVar,SQL_C_SSHORT);                          RS.GetFieldValue("in",dbVar,SQL_C_SSHORT);
# Line 316  int innd::cmd_ihave(const char* msg_id) Line 316  int innd::cmd_ihave(const char* msg_id)
316                  if (strcmp(cmd,"cancel")==0 && strcmp(cancel_msg_id,"")!=0) //Empty Message-ID                  if (strcmp(cmd,"cancel")==0 && strcmp(cancel_msg_id,"")!=0) //Empty Message-ID
317                  {                  {
318                          //Delete article                          //Delete article
319                          sql.Format("select AID from innd_logfile where msg_id='%s'"                          sql.Format("select AID from innd_log where msg_id='%s'"
320                                  " and op='I' and cancel=0",base::addslashes(cancel_msg_id));                                  " and op='I' and cancel=0",base::addslashes(cancel_msg_id));
321    
322                          RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);                          RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly);
# Line 355  int innd::cmd_ihave(const char* msg_id) Line 355  int innd::cmd_ihave(const char* msg_id)
355          }          }
356          catch(CException* e)          catch(CException* e)
357          {          {
358                  syslog << logfile::log_head << "Error in cmd_ihave()" << endl;                  char strErrMsg[1024];
359                    e->GetErrorMessage(strErrMsg,1024);
360                    syslog << logfile::log_head << "Error in cmd_ihave() [" << strErrMsg << "]" << endl;
361                  e->Delete();                  e->Delete();
362                  return -1;                  return -1;
363          }          }
# Line 396  int innd::db_env_init(void) Line 398  int innd::db_env_init(void)
398          }          }
399          return 0;          return 0;
400  }  }
401    
402    bool innd::check_priv(void)
403    {
404            return this->access.get;
405    }


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

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