diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-25 23:30:43 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2009-08-25 23:30:43 +0800 |
commit | 7329e57f75f091193b7dcf9a1568e6e0d217b07a (patch) | |
tree | 6e05f8340f547203fe0ac569c006196e9fa31413 | |
parent | a3e69fa37cf0f9771b028a8f171fa32c3fddfb49 (diff) | |
download | pttbbs-7329e57f75f091193b7dcf9a1568e6e0d217b07a.tar pttbbs-7329e57f75f091193b7dcf9a1568e6e0d217b07a.tar.gz pttbbs-7329e57f75f091193b7dcf9a1568e6e0d217b07a.tar.bz2 pttbbs-7329e57f75f091193b7dcf9a1568e6e0d217b07a.tar.lz pttbbs-7329e57f75f091193b7dcf9a1568e6e0d217b07a.tar.xz pttbbs-7329e57f75f091193b7dcf9a1568e6e0d217b07a.tar.zst pttbbs-7329e57f75f091193b7dcf9a1568e6e0d217b07a.zip |
* give warning to admins who is trying to modify his own account...
git-svn-id: http://opensvn.csie.org/pttbbs/trunk@4775 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c index a54dd4bb..822b09a7 100644 --- a/pttbbs/mbbsd/user.c +++ b/pttbbs/mbbsd/user.c @@ -592,6 +592,10 @@ uinfo_query(userec_t *u, int adminmode, int unum) if (vans("使用者目前正在線上,修改資料會先踢下線。確定要繼續嗎? (y/N): ") != 'y') return; + if (unum == usernum && + vans("您正試圖修改自己的帳號;這可能會造成帳號損毀,確定要繼續嗎? (y/N): ") + != 'y') + return; } switch (ans) { case 'c': |