From c7b5495e9dc10baf23bb3a781fc30c0a3f017aac Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 9 Jun 2005 08:31:15 +0000 Subject: incremental upgrade support (currently DBCSAWARE only) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2814 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/mbbsd.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'mbbsd') diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c index d9f48758..df34d206 100644 --- a/mbbsd/mbbsd.c +++ b/mbbsd/mbbsd.c @@ -1015,6 +1015,25 @@ user_login(void) if(ptime.tm_yday!=lasttime.tm_yday) STATINC(STAT_TODAYLOGIN_MAX); + { + /* If you wanna do incremental upgrade + * (like, added a function/flag that wants user to confirm againe) + * put it here. + */ + +#if defined(DBCSAWARE) && defined(DBCSAWARE_UPGRADE_STARTTIME) + // define the real time you upgraded in your pttbbs.conf + if(cuser.lastlogin < DBCSAWARE_UPGRADE_STARTTIME) + { + if (u_detectDBCSAwareEvilClient()) + cuser.uflag &= ~DBCSAWARE_FLAG; + else + cuser.uflag |= DBCSAWARE_FLAG; + } +#endif + + } + if (!PERM_HIDE(currutmp)) { if(ptime.tm_yday!=lasttime.tm_yday) STATINC(STAT_TODAYLOGIN_MIN); -- cgit v1.2.3