DR01.MOD Dr. Tweez #1 @3653 Fri Feb 26 16:12:48 1993 ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ Mod Name: DR01.MOD Mod Author: Dr. Tweez 1@3653 SOLARnet ³ ³ Difficulty: ÛÛ±±±±±±±±± 1@3650 GATEWAY ³ ³ WWIV Version: 4.22 DATE: 02/27/93 ³ ³ Files Affected: FCNS.H, BBS.C, LILO.C ³ ³ Description: Adds a second password for Co-SysOp, and a bit of added ³ ³ security. ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ I knew that there was a mod out there that would let you have your co-sysop enter a seperate PW while logging on, other than the system password out there, but I never could find it so I wrote this little mod that would do so, and it can also be used as extra security by adding it to the sysop functions. First open up BBS.C and go down below the int checkpw(void) and add this below it. int checkpw1(void) /* DR01 */ { /* DR01 */ char s[81]; /* DR01 */ /* DR01 */ nl(); /* DR01 */ npr("3[1Maintenance3] 2þ 7"); /* DR01 */ echo=0; /* DR01 */ input(s,20); /* DR01 */ echo=1; /* DR01 */ if (strcmp(s,"PASSWORDHERE")==0) /* Put in the Co-SysOp PW Here */ return(1); /* DR01 */ else /* DR01 */ return(0); /* DR01 */ } /* DR01 */ Ok, now real quick load up FCNS.H and add int checkpw1(void) right after int checkpw(void). Save FCNS.H and lets move on. Go down to the sysop functions in the main menu. Now its simple to add what commands you want the bbs to ask for the Co-SysOp PW, its like this: if (strcmp(s,"LOG")==0) { if (checkpw1()) { /* DR01 ADD */ sl1(3,s1); printfile(s1); } /* DR01 ADD */ } That is all you have to add to any of the sysop functions in the main menu. it will work on all of them, all you have to do is add those two lines. Now you say that you want the Co-SysOp to enter the Co-SysOp Password when he loggs on, ok, open up LILO.C and do this: if ((thisuser.sl==255) && (incom) && (ok)) { npr("3[1Administrator3] 2þ 7"); echo=0; input(s,20); if (strcmp(s,syscfg.systempw)!=0) /* Search for */ ok=0; /* Existing Line */ } /* Existing Line */ if ((thisuser.sl==100) && (incom) && (ok)) { /* DR01 ADD */ npr("3[Maintenance3] 2þ 7"); /* DR01 ADD */ echo=0; /* DR01 ADD */ input(s,20); /* DR01 ADD */ if (strcmp(s,"PUTPASSWORDHERE")!=0) /* DR01 ADD */ ok=0; /* DR01 ADD */ } /* DR01 ADD */ echo=1; /* Original code */ if (ok) { /* Picks up here */ reset_act_sl(); changedsl(); } else { Now all you have to do is MAKE FCNS, and then MAKE your board. Well kids that is it, I know its simple, but hey thats the kinda guy I am. And as always, I am not responsible for this mod, if it causes your board to reproduce, move in with your grandma, and have sex with her.