home *** CD-ROM | disk | FTP | other *** search
/ The Arcade BBS / arcadebbs.zip / arcadebbs / bbstools / MODS / ALLMODS.ZIP / FMD-14A.ZIP / FMD-14A.FIX < prev    next >
Encoding:
Text File  |  1995-06-09  |  3.6 KB  |  125 lines

  1. Nicolas Leblanc #2 @20302
  2. Mon Jun 05 02:28:15 1995
  3. 0R 34 06/09 07:13 WWIVNET 4051->8421
  4. 0R 34 06/08 18:18 WWIVNet 4001->4051
  5. 0R 34 06/08 14:07 WWIVnet 4000->4001
  6. 0R 34 06/08 05:34 WWIVnet ->4000
  7. 0R 34 06/05 22:43 WWIVnet 4001->4000
  8. 0R 34 06/06 06:35 WWIVnet 20001->4001
  9. 0R 34 06/05 02:52 WWIVnet 20302->20001
  10. 0R 34 06/05 02:50 WWIVnet ->20302
  11. Here is a quick fix for FMD-14a.MOD, sorry for this, but we changed of
  12. COMMON version without noticing some changes,
  13.  
  14. Replace this function in LILO.C
  15.  
  16. void bdaycheck (void)
  17. {
  18.   char BirthDay[9], Buffer[9], Buffer1[80], delims[3], *ss;
  19.   int i, ok, abort;
  20.   static int fields[5] = { 3, 2, 2, 2, 8 };
  21.  
  22.   strcpy(delims, "//");
  23.   i = abort = 0;
  24.   do
  25.   {
  26.     ok = 1;
  27.     nl();
  28.     prt(7, "Please take a moment to verify some information.");
  29.     nl();
  30.     prt(1, "Please enter your birth date 9(1MM9/1DD9/1YY9): ");
  31.     mpl2(8);
  32.     indate(BirthDay, fields, delims, &abort);
  33.     if ((strlen(BirthDay) < 8))
  34.     {
  35.       nl();
  36.       prt(6, "Sorry, you must enter your birth date in the correct format!");
  37.       nl();
  38.       ok = 0;
  39.     }
  40.     i++;
  41.     if (ok)
  42.     {
  43.       sprintf(Buffer, "%02d/%02d/%02d",
  44.              (int) thisuser.month, (int) thisuser.day, (int) thisuser.year);
  45.       if (date_to_daten(Buffer) == date_to_daten(BirthDay))
  46.       {
  47.         nl();
  48.         prt(6, "Birth date verified!  Thank you!");
  49.         nln(2);
  50.         sprintf(Buffer1,"Verified %s birth date.", nam(&thisuser,usernum));
  51.         sysoplog(Buffer1);
  52.         if (ini_init("WWIV.INI", "MATRIX", NULL)==0)
  53.         {
  54.           if ((ss=ini_get("SEND_SSM", -1, NULL))!=NULL)
  55.           {
  56.             if (ss[0]==*str_yes)
  57.               ssm(1, 0, Buffer1);
  58.           }
  59.           ini_done();
  60.         }
  61.         return;
  62.       } else {
  63.         nl();
  64.         prt(6, "Invalid birth date entered!");
  65.         nl();
  66.         ok = 0;
  67.       }
  68.     }
  69.   } while ((!hangup) && (!ok) && (i < 3));
  70.   if (i == 3)
  71.   {
  72.     outchr(12);
  73.     prt(3, "You have incorrectly responded to the 3 previous questions.");
  74.     nl();
  75.     prt(3, "Your access level has been changed to that of an unvalidated user.");
  76.     nln(2);
  77.     prt(9, "Would you like to leave the SysOp a note describing your problem? ");
  78.     if (yn())
  79.     {
  80.       outchr(12);
  81.       strcpy(irt,"Invalid Birthday Check");
  82.       email(1, 0, 1, 0);
  83.     }
  84.     sprintf(Buffer1,"%s entered an invalid birth date!",
  85.               nam(&thisuser,usernum));
  86.     sysoplog(Buffer1);
  87.     if (ini_init("WWIV.INI", "MATRIX", NULL)==0)
  88.     {
  89.       if ((ss=ini_get("SEND_SSM", -1, NULL))!=NULL)
  90.       {
  91.         if (ss[0]==*str_yes)
  92.           ssm(1, 0, Buffer1);
  93.       }
  94.       ini_done();
  95.     }
  96.     thisuser.sl = thisuser.dsl = syscfg.newusersl;
  97.     write_user(usernum, &thisuser);
  98.     hangup = 1;
  99.   }
  100. }
  101.  
  102. Then in function logon_matrix:
  103.  
  104. =                  if (ini_init("WWIV.INI", "MATRIX", NULL)==0)
  105. =                  {
  106. =                    if ((ss=ini_get("MATRIX_PASSWORD", -1, NULL))!=NULL)
  107. =                    {
  108. =                      if (ss[0]==*str_yes)
  109. =                      {
  110. +                       if ((ss=ini_get("LOGON_PASSWORD", -1, NULL))!=NULL) // ADD
  111. +                         strcpy(ini, ss); // ADD
  112. -                       get_ini_value("FMD.INI", "Matrix", "LOGON_PASSWORD", ini, 10);
  113.                         // DELETE THIS LINE
  114. =                       npr("1The login password is %c6%s1%c. "
  115. =                           "You will need it to logon.",
  116. =                            34,ini,34);
  117. =                       nln(2);
  118.  
  119. You're done.
  120.  
  121. Sorry again for this.
  122.  
  123. Spotnick, 2@20302
  124.  
  125.