home *** CD-ROM | disk | FTP | other *** search
- Nicolas Leblanc #2 @20302
- Mon Jun 05 02:28:15 1995
- 0R 34 06/09 07:13 WWIVNET 4051->8421
- 0R 34 06/08 18:18 WWIVNet 4001->4051
- 0R 34 06/08 14:07 WWIVnet 4000->4001
- 0R 34 06/08 05:34 WWIVnet ->4000
- 0R 34 06/05 22:43 WWIVnet 4001->4000
- 0R 34 06/06 06:35 WWIVnet 20001->4001
- 0R 34 06/05 02:52 WWIVnet 20302->20001
- 0R 34 06/05 02:50 WWIVnet ->20302
- Here is a quick fix for FMD-14a.MOD, sorry for this, but we changed of
- COMMON version without noticing some changes,
-
- Replace this function in LILO.C
-
- void bdaycheck (void)
- {
- char BirthDay[9], Buffer[9], Buffer1[80], delims[3], *ss;
- int i, ok, abort;
- static int fields[5] = { 3, 2, 2, 2, 8 };
-
- strcpy(delims, "//");
- i = abort = 0;
- do
- {
- ok = 1;
- nl();
- prt(7, "Please take a moment to verify some information.");
- nl();
- prt(1, "Please enter your birth date 9(1MM9/1DD9/1YY9): ");
- mpl2(8);
- indate(BirthDay, fields, delims, &abort);
- if ((strlen(BirthDay) < 8))
- {
- nl();
- prt(6, "Sorry, you must enter your birth date in the correct format!");
- nl();
- ok = 0;
- }
- i++;
- if (ok)
- {
- sprintf(Buffer, "%02d/%02d/%02d",
- (int) thisuser.month, (int) thisuser.day, (int) thisuser.year);
- if (date_to_daten(Buffer) == date_to_daten(BirthDay))
- {
- nl();
- prt(6, "Birth date verified! Thank you!");
- nln(2);
- sprintf(Buffer1,"Verified %s birth date.", nam(&thisuser,usernum));
- sysoplog(Buffer1);
- if (ini_init("WWIV.INI", "MATRIX", NULL)==0)
- {
- if ((ss=ini_get("SEND_SSM", -1, NULL))!=NULL)
- {
- if (ss[0]==*str_yes)
- ssm(1, 0, Buffer1);
- }
- ini_done();
- }
- return;
- } else {
- nl();
- prt(6, "Invalid birth date entered!");
- nl();
- ok = 0;
- }
- }
- } while ((!hangup) && (!ok) && (i < 3));
- if (i == 3)
- {
- outchr(12);
- prt(3, "You have incorrectly responded to the 3 previous questions.");
- nl();
- prt(3, "Your access level has been changed to that of an unvalidated user.");
- nln(2);
- prt(9, "Would you like to leave the SysOp a note describing your problem? ");
- if (yn())
- {
- outchr(12);
- strcpy(irt,"Invalid Birthday Check");
- email(1, 0, 1, 0);
- }
- sprintf(Buffer1,"%s entered an invalid birth date!",
- nam(&thisuser,usernum));
- sysoplog(Buffer1);
- if (ini_init("WWIV.INI", "MATRIX", NULL)==0)
- {
- if ((ss=ini_get("SEND_SSM", -1, NULL))!=NULL)
- {
- if (ss[0]==*str_yes)
- ssm(1, 0, Buffer1);
- }
- ini_done();
- }
- thisuser.sl = thisuser.dsl = syscfg.newusersl;
- write_user(usernum, &thisuser);
- hangup = 1;
- }
- }
-
- Then in function logon_matrix:
-
- = if (ini_init("WWIV.INI", "MATRIX", NULL)==0)
- = {
- = if ((ss=ini_get("MATRIX_PASSWORD", -1, NULL))!=NULL)
- = {
- = if (ss[0]==*str_yes)
- = {
- + if ((ss=ini_get("LOGON_PASSWORD", -1, NULL))!=NULL) // ADD
- + strcpy(ini, ss); // ADD
- - get_ini_value("FMD.INI", "Matrix", "LOGON_PASSWORD", ini, 10);
- // DELETE THIS LINE
- = npr("1The login password is %c6%s1%c. "
- = "You will need it to logon.",
- = 34,ini,34);
- = nln(2);
-
- You're done.
-
- Sorry again for this.
-
- Spotnick, 2@20302
-