From 98a14c993a7c65e63706a0dd93860aa699fbcf2f Mon Sep 17 00:00:00 2001 From: in2 Date: Fri, 2 Jun 2006 03:38:11 +0000 Subject: handle ALLHIDPOST git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3363 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- sample/crontab | 2 +- util/initbbs.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sample/crontab b/sample/crontab index 876451c8..3734c470 100644 --- a/sample/crontab +++ b/sample/crontab @@ -97,7 +97,7 @@ 30 3 * * * bin/dailybackup.pl # 每日砍除 ALLPOST -30 5 * * * /bin/rm boards/A/ALLPOST; mkdir boards/A/ALLPOST +30 5 * * * /bin/rm boards/A/ALLPOST boards/A/ALLHIDPOST; mkdir boards/A/ALLPOST boards/A/ALLHIDPOST # for safty 9 * * * * bin/shmctl bBMC diff --git a/util/initbbs.c b/util/initbbs.c index 0e8c4549..9073d247 100644 --- a/util/initbbs.c +++ b/util/initbbs.c @@ -182,6 +182,13 @@ static void initBoards() { b.level = 0; b.gid = 5; newboard(fp, &b); + + strcpy(b.brdname, "ALLHIDPOST"); + strcpy(b.title, "嘰哩 ◎跨板式LOCAL新文章(隱板)"); + b.brdattr = BRD_POSTMASK | BRD_HIDE; + b.level = PERM_SYSOP; + b.gid = 5; + newboard(fp, &b); #ifdef GLOBAL_DIGEST strcpy(b.brdname, GLOBAL_DIGEST); -- cgit v1.2.3