1.~/pttbbs/sample/etc/editable 漏加了etc/Welcome_login.0
2.admin.c 改成这样是不错啦~
但是etc/Welcome_login 1~4 是成功登入后的4个画面随机出现
新版的接口如果不想要某个画面没办法删除
只能 ctrl+y 删到底
但 ~/etc 底下该档案还是存在
所以还是要找系统站长把它 rm 掉 XD
3.user.c 里面
snprintf(genbuf, sizeof(genbuf), "%d", u->goodpost);
if (getdata_str(y++, 0, "优良文章数:", buf, 10, DOECHO, genbuf))
if ((tmp = atoi(buf)) >= 0)
x.goodpost = tmp;
snprintf(genbuf, sizeof(genbuf), "%d", u->badpost);
if (getdata_str(y++, 0, "恶劣文章数:", buf, 10, DOECHO, genbuf))
if ((tmp = atoi(buf)) >= 0)
x.badpost = tmp;
前面加个 #ifdef ASSESS 是不是比较好?