diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-22 23:03:52 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-06-22 23:03:52 +0800 |
commit | a1d2b5a7522d4a225309c7c3a0215388e9e26f3b (patch) | |
tree | 9aab3257f8c3b75e054fb91ed512fea8d3797ca7 /mbbsd/syspost.c | |
parent | 369ac1934a26c796897a370a4669b5d3a922c93c (diff) | |
download | pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.gz pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.bz2 pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.lz pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.xz pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.tar.zst pttbbs-a1d2b5a7522d4a225309c7c3a0215388e9e26f3b.zip |
1. patch of defining BBSENAME
2. chage log format for red envelope
3. remove unused function give_money_log
4. add log for deleting a post. (who delete it)
5. add log for changing basic permission.
6. add log for changing user's password and mail to notify user and witnesses.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2855 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/syspost.c')
-rw-r--r-- | mbbsd/syspost.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/mbbsd/syspost.c b/mbbsd/syspost.c index a5780eec..fbed4c7f 100644 --- a/mbbsd/syspost.c +++ b/mbbsd/syspost.c @@ -70,7 +70,7 @@ post_change_perm(int oldperm, int newperm, const char *sysopid, const char *user fprintf(fp, "作者: [系統安全局] 看板: Security\n" "標題: [公安報告] 站長修改權限報告\n" "時間: %s\n", ctime4(&now)); - for (i = 5; i < NUMPERMS; i++) { + for (i = 1; i < NUMPERMS; i++) { if (((oldperm >> i) & 1) != ((newperm >> i) & 1)) { fprintf(fp, " 站長" ANSI_COLOR(1;32) "%s%s%s%s" ANSI_RESET "的權限\n", sysopid, @@ -128,19 +128,3 @@ post_newboard(const char *bgroup, const char *bname, const char *bms) post_msg("Record", title, genbuf, "[系統]"); } - -void -give_money_post(const char *userid, int money) -{ - char title[TTLEN+1]; - char msg[128]; - - snprintf(title, sizeof(title), "[公安報告] 站長%s使用紅包機報告", cuser.userid); - snprintf(msg, sizeof(msg), "\n 站長" ANSI_COLOR(1;32) "%s" ANSI_RESET "給" ANSI_COLOR(1;33) "%s %d 元" ANSI_RESET, - cuser.userid, userid, money); - - post_msg("Security", title, msg, "[系統安全局]"); - - clrtobot(); - clear(); -} |