diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-05 15:58:09 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-07-05 15:58:09 +0800 |
commit | 85dd021ec967d2f58a531912a78ed9a956dd10dc (patch) | |
tree | e6df2e059864c3c9dd37ef29c4eba0d9d44df823 /util | |
parent | a2ab5ac739305ff4bd756e829f7f4e5c3b71d9a9 (diff) | |
download | pttbbs-85dd021ec967d2f58a531912a78ed9a956dd10dc.tar pttbbs-85dd021ec967d2f58a531912a78ed9a956dd10dc.tar.gz pttbbs-85dd021ec967d2f58a531912a78ed9a956dd10dc.tar.bz2 pttbbs-85dd021ec967d2f58a531912a78ed9a956dd10dc.tar.lz pttbbs-85dd021ec967d2f58a531912a78ed9a956dd10dc.tar.xz pttbbs-85dd021ec967d2f58a531912a78ed9a956dd10dc.tar.zst pttbbs-85dd021ec967d2f58a531912a78ed9a956dd10dc.zip |
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
Diffstat (limited to 'util')
-rw-r--r-- | util/account.c | 10 |
1 files changed, 9 insertions, 1 deletions
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; } |