From 85dd021ec967d2f58a531912a78ed9a956dd10dc Mon Sep 17 00:00:00 2001 From: in2 Date: Sat, 5 Jul 2003 07:58:09 +0000 Subject: count #Welcomes in account to SHM instead of mbbsd.c git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@1029 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- util/account.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'util/account.c') diff --git a/util/account.c b/util/account.c index 5220f713..bbc84244 100644 --- a/util/account.c +++ b/util/account.c @@ -1,4 +1,4 @@ -/* $Id: account.c,v 1.7 2002/06/16 22:21:12 ptt Exp $ */ +/* $Id: account.c,v 1.8 2003/07/05 07:58:09 in2 Exp $ */ #include "bbs.h" #define MAX_LINE 16 @@ -399,5 +399,13 @@ int main() { SHM->Puptime = 0; resolve_fcache(); reset_garbage(); + + printf("計算進站畫面數: "); + for( i = 0 ; i < 5 ; ++i ){ + sprintf(buf, "etc/Welcome_login.%d", i); + if( access(buf, 0) < 0 ) + break; + } + printf("%d\n", SHM->GV2.e.nWelcomes = i); return 0; } -- cgit v1.2.3