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/user.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/user.c')
-rw-r--r-- | mbbsd/user.c | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 533a8dee..5c08c167 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -666,7 +666,8 @@ uinfo_query(userec_t *u, int adminmode, int unum) break; } } else { - char witness[3][32]; + FILE *fp; + char witness[3][32], title[100]; for (i = 0; i < 3; i++) { if (!getdata(19 + i, 0, "½Ð¿é¤J¨ó§UÃÒ©ú¤§¨Ï¥ÎªÌ¡G", witness[i], sizeof(witness[i]), DOECHO)) { @@ -688,8 +689,24 @@ uinfo_query(userec_t *u, int adminmode, int unum) } if (i < 3) break; - else - i = 20; + + i = 20; + sprintf(title, "%s ªº±K½X«³]³qª¾ (by %s)",u->userid, cuser.userid); + unlink("etc/updatepwd.log"); + if(! (fp = fopen("etc/updatepwd.log", "w"))) + break; + + fprintf(fp, "%s n¨D±K½X«³]:\n" + "¨£ÃÒ¤H¬° %s, %s, %s", + u->userid, witness[0], witness[1], witness[2] ); + fclose(fp); + + post_file("Security", title, "etc/updatepwd.log", "[¨t²Î¦w¥þþ§½]"); + mail_id(u->userid, title, "etc/updatepwd.log", cuser.userid); + for(i=0; i<3; i++) + { + mail_id(witness[i], title, "etc/updatepwd.log", cuser.userid); + } } if (!getdata(i++, 0, "½Ð³]©w·s±K½X¡G", buf, PASSLEN, NOECHO)) { |