| 292 |
RS.Close(); |
RS.Close(); |
| 293 |
} |
} |
| 294 |
|
|
| 295 |
sql.Format("insert delayed into innd_logfile(AID,art_id,msg_id,op) values" |
sql.Format("insert delayed into innd_log(AID,art_id,msg_id,op) values" |
| 296 |
"(%ld,%ld,'%s','I')", |
"(%ld,%ld,'%s','I')", |
| 297 |
aid,art_id,addslashes(msg_id)); |
aid,art_id,addslashes(msg_id)); |
| 298 |
this->Db.ExecuteSQL(sql); |
this->Db.ExecuteSQL(sql); |
| 304 |
} |
} |
| 305 |
catch(CException* e) |
catch(CException* e) |
| 306 |
{ |
{ |
| 307 |
syslog << logfile::log_head << "Error in bbs_post()" << endl; |
char strErrMsg[256]; |
| 308 |
|
e->GetErrorMessage(strErrMsg,256); |
| 309 |
|
syslog << logfile::log_head << "Error in bbs_post() [" << strErrMsg << "]" << endl; |
| 310 |
e->Delete(); |
e->Delete(); |
| 311 |
return -1; |
return -1; |
| 312 |
} |
} |
| 391 |
this->Db.ExecuteSQL(sql); |
this->Db.ExecuteSQL(sql); |
| 392 |
} |
} |
| 393 |
|
|
| 394 |
sql.Format("update innd_logfile set cancel=1 where AID=%ld",id); |
sql.Format("update innd_log set cancel=1 where AID=%ld",id); |
| 395 |
this->Db.ExecuteSQL(sql); |
this->Db.ExecuteSQL(sql); |
| 396 |
} |
} |
| 397 |
RS.Close(); |
RS.Close(); |
| 398 |
} |
} |
| 399 |
catch(CException* e) |
catch(CException* e) |
| 400 |
{ |
{ |
| 401 |
syslog << logfile::log_head << "Getting article error in bbs_delete()" << endl; |
char strErrMsg[256]; |
| 402 |
|
e->GetErrorMessage(strErrMsg,256); |
| 403 |
|
syslog << logfile::log_head << "Getting article error in bbs_delete() [" << strErrMsg << "]" << endl; |
| 404 |
e->Delete(); |
e->Delete(); |
| 405 |
return -1; |
return -1; |
| 406 |
} |
} |