似乎getattachtmppath()函数应该放进phpbbslib.c而不是留在site.php里面。
【 在 atppp (Big Mouse) 的大作中提到: 】
你这个问题我碰见过,看一下 phpbbslib.c 里面的 bbs_postarticle() 有这么一段
#if USE_TMPFS==1
snprintf(buf,MAXPATH,"%s/home/%c/%s/%d/upload",TMPFSROOT,toupper(current
user->userid[0]), currentuser->userid,getcurrentuinfo_num());
#else
snprintf(buf,MAXPATH,"%s/%s_%d",ATTACHTMPPATH,currentuser->userid,getcur
rentuinfo_num());
#endif
这里没有听从site.php里面的getattachtmppath()函数(可能也没有特别简单的解决办法)
有两个解决办法,一个是site.h里面USE_TMPFS改回0,不过似乎不推荐这么干。
还有一个就是你参考smth的site.php改你的site.php里面的getattachtmppath()函数。
这个地方不知道smthbbs的代码是不是应该改进一下。
--