diff options
author | lwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-08 22:11:33 +0800 |
---|---|---|
committer | lwms <lwms@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-05-08 22:11:33 +0800 |
commit | 75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6 (patch) | |
tree | 8e32f471cf5822909f5980f156b53478e7521567 /mbbsd/syspost.c | |
parent | b4fa6d0989f02802609107a4d61cb4b492ef08a2 (diff) | |
download | pttbbs-75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6.tar pttbbs-75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6.tar.gz pttbbs-75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6.tar.bz2 pttbbs-75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6.tar.lz pttbbs-75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6.tar.xz pttbbs-75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6.tar.zst pttbbs-75c6c7f01370a7ce2b34d0cabdedb0d9da09bfc6.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@153 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r-- | mbbsd/syspost.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index a2cdcea8..c7bd163b 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -1,4 +1,4 @@ -/* $Id: syspost.c,v 1.4 2002/05/08 12:04:49 lwms Exp $ */ +/* $Id: syspost.c,v 1.5 2002/05/08 14:11:33 lwms Exp $ */ #include <stdio.h> #include <string.h> #include <time.h> @@ -101,27 +101,3 @@ void post_newboard(char* bgroup, char* bname, char* bms){ post_msg("Record", title, genbuf, "[系統]"); } -void post_give_money(char *sysopid, char *userid, int money) { - FILE *fp; - fileheader_t fhdr; - time_t now = time(0); - char genbuf[200]; - - strcpy(genbuf, "boards/S/Security"); - stampfile(genbuf, &fhdr); - if(!(fp = fopen(genbuf,"w"))) - return; - - fprintf(fp, "作者: [系統安全局] 看板: Security\n" - "標題: [公安報告] 紅包機使用報告\n" - "時間: %s\n", ctime(&now)); - fprintf (fp, " 站長\033[1;32m%s給%s\033[m%d元\n", - sysopid, userid, money); - - sprintf(fhdr.title, "[公安報告] 站長%s使用紅包機報告", - cuser.userid); - strcpy(fhdr.owner, "[系統安全局]"); - append_record("boards/S/Security/.DIR", &fhdr, sizeof(fhdr)); -} - - |