- 主题:想添加一个功能,新帖子都转到某个版面,方便扫版
而且 post_file 如果 mode == 0 的话貌似啥也发不出来,被英明神武的acore给咔嚓了。
【 在 jiangjun2000 (%d) 的大作中提到: 】
: 函数原型是:
: int post_file(struct userec *user, char *fromboard, char *filename, char *nboard, char *posttitle, int Anony, int mode, session_t* session)
: 所以调用的时候你少了最后一个参数getSession()
: ...................
--
FROM 221.219.3.*
int post_file(struct userec *user, const char *fromboard, const char *filename, const char *nboard, const char *posttitle, int Anony, int mode, session_t* session)/* 将某文件 POST 在某版 */{
const struct boardheader *toboard;
if (mode == 0) {
return -1; // 对此有意见者找 atppp 单挑 20060425
}
....
【 在 jiangjun2000 (%d) 的大作中提到: 】
: mode == 0不是转载么?(我是比较老的了,当然)
: post_cross
: if (!mode) {
: ...................
--
FROM 221.219.3.*
那你可以直接调用 post_cross 嘛
【 在 jiangjun2000 (%d) 的大作中提到: 】
: 有意见...但是不敢单挑...
--
FROM 221.219.3.*