• logon.js.patch

    From echto@VERT/ECHTOBBS to Digital Man on Sun Nov 13 14:08:14 2011
    This corrects the logic for turning off flag 4G if a user with level 99 answersã'no' to the 'Ask again later' question about creating a Guest/Anonymous userãaccount.ãã224c224ã< user.security.flags4&=~UFLAG_G; /* Turn off flag 4G to not askãagain */ã---ã> user.security.flags4&=!~UFLAG_G; /* Turn off flag 4G toãnot ask again */ããããechtoã---ã þ Synchronet þ -=-= echto bbs =-=-ã
  • From Digital Man@VERT to echto on Sun Nov 13 19:57:43 2011
    Re: logon.js.patchã By: echto to Digital Man on Sun Nov 13 2011 02:08 pmãã > This corrects the logic for turning off flag 4G if a user with level 99ã > answers 'no' to the 'Ask again later' question about creating aã > Guest/Anonymous user account.ã >ã > 224c224ã > < user.security.flags4&=~UFLAG_G; /* Turn off flag 4G to notã > ask again */ããUm, no it doesn't. It's a bit-flag, not a boolean. ãã digital manããSynchronet "Real Fact" #29:ãThe COM I/O routines for Synchronet for DOS were written in ASM by Steve Deppe.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From echto@VERT/ECHTOBBS to Digital Man on Sun Nov 13 22:34:26 2011
    Re: logon.js.patchã By: Digital Man to echto on Sun Nov 13 2011 19:57:43ãã > Um, no it doesn't. It's a bit-flag, not a boolean. ããHmm.. ok. I kept getting prompted even after answering "no" so I added thatãand it correctly set the flag. You might want to try and duplicate it on yourãend.ããechtoãbbs.echto.netããã---ã þ Synchronet þ -=-= echto bbs =-=-ã
  • From echto@VERT/ECHTOBBS to Digital Man on Mon Nov 14 09:47:15 2011
    Re: logon.js.patchã By: Digital Man to echto on Sun Nov 13 2011 19:57:43ãã > > < user.security.flags4&=~UFLAG_G; /* Turn off flag 4G toããOk, I found your js object documentation. For some reason the bit is not beingãflipped with the above statement. ããechtoãbbs.echto.netããã---ã þ Synchronet þ -=-= echto bbs =-=-ã
  • From echto@VERT/ECHTOBBS to Digital Man on Mon Nov 14 17:43:35 2011
    Re: logon.js.patchã By: Digital Man to echto on Sun Nov 13 2011 19:57:43ãã > Um, no it doesn't. It's a bit-flag, not a boolean. ããI may have tracked it down. Please take a look at sbbsdefs.js. Here is anãexcerpt. Start at line 777. Notice anything odd? scroll down and you willãsee this. " var U_FLAGS4 =U_FLAGS3+8; /* Flag set #4 */ "ãã/********************************************/ã/* field values for system.matchuserdata() */ã/********************************************/ãvar U_ALIAS =0;ãvar U_NAME =U_ALIAS+LEN_ALIAS;ãvar U_HANDLE =U_NAME+LEN_NAME;ãvar U_NOTE =U_HANDLE+LEN_HANDLE+2;ãvar U_COMP =U_NOTE+LEN_NOTE;ãvar U_COMMENT =U_COMP+LEN_COMP+2;ãvar U_NETMAIL =U_COMMENT+LEN_COMMENT+2;ãvar U_ADDRESS =U_NETMAIL+LEN_NETMAIL+2;ãvar U_LOCATION =U_ADDRESS+LEN_ADDRESS;ãvar U_ZIPCODE =U_LOCATION+LEN_LOCATION;ãvar U_PASS =U_ZIPCODE+LEN_ZIPCODE+2;ãvar U_PHONE =U_PASS+8;ãvar U_BIRTH =U_PHONE+12;ãvar U_MODEM =U_BIRTH+8;ãvar U_LASTON =U_MODEM+8;ãvar U_FIRSTON =U_LASTON+8;ãvar U_EXPIRE =U_FIRSTON+8;ãvar U_PWMOD =U_EXPIRE+8;ãvar U_LOGONS =U_PWMOD+8+2;ãããechtoãbbs.echto.netããã---ã þ Synchronet þ -=-= echto bbs =-=-ã
  • From Digital Man@VERT to echto on Wed Nov 16 15:40:09 2011
    Re: logon.js.patchã By: echto to Digital Man on Sun Nov 13 2011 10:34 pmãã > Re: logon.js.patchã > By: Digital Man to echto on Sun Nov 13 2011 19:57:43ã >ã > > Um, no it doesn't. It's a bit-flag, not a boolean.ã >ã > Hmm.. ok. I kept getting prompted even after answering "no" so I addedã > that and it correctly set the flag. You might want to try and duplicate itã > on your end.ããOkay, I'll do that. It might be missing some parens.ãã digital manããSynchronet "Real Fact" #21:ãThe second ever Synchronet BBS was the Mid-Nite Hacker BBS (sysop: The Zapper).ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to echto on Wed Nov 16 15:46:46 2011
    Re: logon.js.patch - take a look at sbbsdefs.js pleaseã By: echto to Digital Man on Mon Nov 14 2011 05:43 pmãã > Re: logon.js.patchã > By: Digital Man to echto on Sun Nov 13 2011 19:57:43ã >ã > > Um, no it doesn't. It's a bit-flag, not a boolean.ã >ã > I may have tracked it down. Please take a look at sbbsdefs.js. Here is anã > excerpt. Start at line 777. Notice anything odd? scroll down and youã > will see this. " var U_FLAGS4 =U_FLAGS3+8; /* Flag set #4 */ããIt's not obvious to me what you think the problem is. These U_FLAG* macros ã(offsets into user.dat records) are not to be confused with the UFLAG_* macros ã(bit flag definitions). They're not used inter-changeably.ãã digital manããSynchronet "Real Fact" #79:ã85 SBBSecho registrations were sold (at $49) between 1994 and 1996.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Digital Man@VERT to echto on Wed Nov 16 16:18:03 2011
    Re: logon.js.patchã By: Digital Man to echto on Wed Nov 16 2011 03:40 pmãã > Re: logon.js.patchã > By: echto to Digital Man on Sun Nov 13 2011 10:34 pmã >ã > > Re: logon.js.patchã > > By: Digital Man to echto on Sun Nov 13 2011 19:57:43ã > >ã > > > Um, no it doesn't. It's a bit-flag, not a boolean.ã > >ã > > Hmm.. ok. I kept getting prompted even after answering "no" so I addedã > > that and it correctly set the flag. You might want to try and duplicateã > itã > > on your end.ã >ã > Okay, I'll do that. It might be missing some parens.ããJust tested it here and it turned off the 4G flag for user #1 as expected.ãã digital manããSynchronet "Real Fact" #50:ãRob Swindell was introduced to BBSing in 1982 by his older brother, Dr. Seuss.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From echto@VERT/ECHTOBBS to Digital Man on Wed Nov 16 17:49:21 2011
    Re: logon.js.patch - take a look at sbbsdefs.js pleaseã By: Digital Man to echto on Wed Nov 16 2011 15:46:46ãã > It's not obvious to me what you think the problem is. These U_FLAG* macrosããOk, it just looks kind of odd to me; the 'field values forãsystem.matchuserdata() section.ããvar U_ALIAS =0;ãvar U_NAME =U_ALIAS+LEN_ALIAS;ãvar U_HANDLE =U_NAME+LEN_NAME;ãvar U_NOTE =U_HANDLE+LEN_HANDLE+2;ãvar U_COMP =U_NOTE+LEN_NOTE;ãvar U_COMMENT =U_COMP+LEN_COMP+2;ãvar U_NETMAIL =U_COMMENT+LEN_COMMENT+2;ãvar U_ADDRESS =U_NETMAIL+LEN_NETMAIL+2;ãvar U_LOCATION =U_ADDRESS+LEN_ADDRESS;ãvar U_ZIPCODE =U_LOCATION+LEN_LOCATION;ãvar U_PASS =U_ZIPCODE+LEN_ZIPCODE+2;ãvar U_PHONE =U_PASS+8;ãvar U_BIRTH =U_PHONE+12;ãã/going psuedo here/ãU_ALIAS = 0;ãU_NAME = alias plus lengthãU_NEMAIL = comment + length of comment 2ãU_PASS = zipcodeãU_BIRTH = phone numberããFIrst impression from looking at it and seeing BIRTH = PHONE kinda made meãwonder if the 2 columns were pasted together incorrectly.ããThanks for taking a look.ããechtoãã-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-ã ---===== [ telnet://bbs.echto.net 1:340/100 ] =====---ã-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-ãã---ã þ Synchronet þ -=-= echto bbs =-=-ã
  • From MCMLXXIX@VERT/MDJ to echto on Thu Nov 17 09:06:13 2011
    Re: logon.js.patch - take a look at sbbsdefs.js pleaseã By: echto to Digital Man on Wed Nov 16 2011 17:49:21ãã > Re: logon.js.patch - take a look at sbbsdefs.js pleaseã > By: Digital Man to echto on Wed Nov 16 2011 15:46:46ã > ã > > It's not obvious to me what you think the problem is. These U_FLAG* macroã > ã > Ok, it just looks kind of odd to me; the 'field values forã > system.matchuserdata() section.ã > ã > var U_ALIAS =0;ã > var U_NAME =U_ALIAS+LEN_ALIAS;ã > var U_HANDLE =U_NAME+LEN_NAME;ã > var U_NOTE =U_HANDLE+LEN_HANDLE+2;ã > var U_COMP =U_NOTE+LEN_NOTE;ã > var U_COMMENT =U_COMP+LEN_COMP+2;ã > var U_NETMAIL =U_COMMENT+LEN_COMMENT+2;ã > var U_ADDRESS =U_NETMAIL+LEN_NETMAIL+2;ã > var U_LOCATION =U_ADDRESS+LEN_ADDRESS;ã > var U_ZIPCODE =U_LOCATION+LEN_LOCATION;ã > var U_PASS =U_ZIPCODE+LEN_ZIPCODE+2;ã > var U_PHONE =U_PASS+8;ã > var U_BIRTH =U_PHONE+12;ã > ã > /going psuedo here/ã > U_ALIAS = 0;ã > U_NAME = alias plus lengthã > U_NEMAIL = comment + length of comment 2ã > U_PASS = zipcodeã > U_BIRTH = phone numberã > ã > FIrst impression from looking at it and seeing BIRTH = PHONE kinda made meã > wonder if the 2 columns were pasted together incorrectly.ã > ããthat's generally my fault for even being there. those values are for use withãsystem.matchuserdata() sine that method previous had no reference for theãassociated record offsets.ããããããã---ã þ Synchronet þ The BRoKEN BuBBLE (MDJ.ATH.CX)ã
  • From Digital Man@VERT to echto on Sat Nov 19 02:57:51 2011
    Re: logon.js.patch - take a look at sbbsdefs.js pleaseã By: echto to Digital Man on Wed Nov 16 2011 05:49 pmãã > FIrst impression from looking at it and seeing BIRTH = PHONE kinda made meã > wonder if the 2 columns were pasted together incorrectly.ããThey're correct.ãã > Thanks for taking a look.ããNo problem.ãã digital manããSynchronet "Real Fact" #6:ãThe name "Synchronet" was suggested by Steve Deppe (Ille Homine Albe) in 1991.ã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã