maintain.c
@@409,1
struct boardheader newboard;
char ans[4];
char vbuf[100];
char *group;
int bid;
int now;
+char lx;
+int i;
@@599,1
prints("\n新讨论区成立\n");
{
- char secu[STRLEN];
+ char secu[STRLEN],biaoti[STRLEN],neirong[1024];
sprintf(secu, "成立新版:%s", newboard.filename);
securityreport(secu, secu);
+//added by tnds 2004.5.29
+strcpy(currboard,newboard.filename);
+sprintf(biaoti,
+"[开版公告]开设 %s / %s 讨论区 "
+,newboard.filename,newboard.title);
+sprintf(neirong,"\n\t\t\t【 公告 】\n\n"
+"\t经站务组讨论决定,开设%s讨论区\n\n"
+"\t讨论区英文名称:%s\n"
+"\t讨论区中文名称:%s\n"
+"\t讨论区分类:%s\n"
+"\t讨论区分区:%s区\n"
+"\t讨论区分区链接:%s区\n\n"
+"\t\t\t\t %s站站务组\n",
+newboard.filename,newboard.filename,newboard.title,newboard.type,newboard.sec
1,newboard.sec2,MY_BBS_NAME);
+deliverreport(biaoti,neirong);
+strcpy(currboard,"Announce");
+deliverreport(biaoti,neirong);
+if (!normal_board(newboard.filename))
+return;
+for (i = 0, lx = newboard.sec1[0];
+ i < 2 && !(i == 1 && lx == newboard.sec1[0]);
+ i++, lx = newboard.sec2[0]) {
+if (!lx)
+ break;
+if (lx > '0' && lx <= '9')
+sprintf(currboard, "%cadmin", lx);
+else
+ sprintf(currboard, "%c_admin", lx);
+deliverreport(biaoti, neirong);
+}
+//added end
}
delete.c
@@29,1
{
struct boardheader binfo;
int bid, ans;
+/*added by tnds*/
+int i;
+char cname[STRLEN];
+ char fq1,fq2,lx;
+ char biaoti[STRLEN],neirong[1024];
+ /*added end*/
char bname[STRLEN];
@@61,1
clear();
return -1;
}
+/*added by tnds*/
+ strcpy(cname,binfo.title);
+fq1=binfo.sec1[0];
+fq2=binfo.sec2[0];
+/*added edn*/
ans = askyn("你确定要删除这个讨论区", NA, NA);
if (ans != 1) {
@@110,1
move(4, 0);
prints("\n本讨论区已经删除...\n");
//added by tnds
strcpy(currboard,"Announce");
sprintf(biaoti,
"[关版公告]关闭 %s / %s讨论区 ",
bname,cname);
sprintf(neirong,
"\n\t\t\t【 公告 】\n\n"
"\t经站务组讨论决定,\n"
"\t由于%s讨论区已不具备继续存在的条件,\n"
"\t且%s讨论区的精华区已整理完毕\n"
"\t因此关闭%s讨论区\n"
"\t讨论区中文名称:%s\n\n"
"\t\t\t\t\t %s 站站务组\n",
bname,bname,bname,cname,MY_BBS_NAME);
strcpy(currboard,"Announce");
deliverreport(biaoti,neirong);
for (i = 0, lx = fq1;
i < 2 && !(i == 1 && lx == fq1);
i++, fq2) {
if (!lx)
break;
if (lx > '0' && lx <= '9')
sprintf(currboard, "%cadmin", lx);
else
sprintf(currboard, "%c_admin", lx);
deliverreport(biaoti, neirong);
}
//added end
bbsinfo.utmpshm->syncbmonline = 1;