home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 12 / CD_ASCQ_12_0294.iso / vrac / 5mods_3.zip / ILLEGALM.MOD < prev    next >
Text File  |  1994-01-25  |  3KB  |  84 lines

  1. ┌────────────────────────────────────────────────────────────────────────────┐
  2. │ Mod Name: SPV-006A.MOD     Mod Authors: Pâpâ ßêâr (1@5079 WWIV/IceNET)     │
  3. │ Difficulty: ▓░░░░░░░░░     [12/04/92] [12/05/93]  (1@5050 SEX/JAMDnet)     │
  4. │ WWIV Version: 4.23                                 (1@15061 WWIVlink)      │
  5. │ Files Affected: LILO.C                               (1@18 CARDNet)        │
  6. │ Description: Allows user to log on as NEW if failed normal log on 3 times. │
  7. │Allows user to send E-Mail to you if not logging on as new.                 │
  8. ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
  9. │ StarPort Valhalla [510]522-3583 ASV 14.4kbps  Home of the SPV mod series!  │
  10. ╘═────────────────────────────────────═╧═───────────────────────────────────═╛
  11.  Word of Warning:  You installed it, you're responsible! Make back-ups BEFORE
  12.  attempting to install this modification!  Read all text before beginning.
  13. -----------------------------------------------------------------------------
  14.  LEGEND:
  15.  ==  Original Code [use this to search on]
  16.  ++  Add this Line [mods ALWAYS add stuff, don't they?]
  17.  --  Remove these lines [comment out or delete]
  18. -----------------------------------------------------------------------------
  19.  LONG DESCRIPTION: Well, this is for you SysOps who have users who can't
  20. remember the head from a hole in the ground, nor their password.  Lets 'em
  21. log on as NEW -OR- send E-Mail to you explaining their problem (or not, but
  22. you'll know about it by both the SYSOPLOG and SSM).
  23. -----------------------------------------------------------------------------
  24. STEP 1 : Open up LILO.C, search for void getuser(void):  Add the following
  25.          lines:
  26.  
  27. ==            hangup=1;
  28. ==          }
  29. ==  } while ((!hangup) && (!ok) && (++count<3));
  30. --  if (count==3)
  31. --    hangup=1;
  32. // START SPV-006
  33. ++  if (count==3) {
  34. ++    outchr(12);
  35. ++    printfile("CONSTR.MSG");
  36. ++    npr("DO YOU WANT TO LOG IN AS NEW? ");
  37. ++    if (yn())
  38. ++      newuser();
  39. ++    else {
  40. ++      npr("Do you want leave E-Mail describing your problem [y/N]? ");
  41. ++      if (yn()) {
  42. ++        outchr(12);
  43. ++        printfile("BADLO2.MSG");
  44. ++        email(1,0,1,0);
  45. ++        hangup=1;
  46. ++      } else {
  47. ++        sprintf(s,"Illegal logon! User chose not to leave mail!");
  48. ++        sysoplog(s);
  49. ++        ssm(1,0,s);
  50. ++        hangup=1;
  51. ++      }
  52. ++    }
  53. ++  }
  54. // END SPV-006
  55. ==  checkit=0;
  56. ==  okmacro=1;
  57. ==  if ((!hangup) && (usernum>0) && (thisuser.restrict & restrict_logon) &&
  58. ==    (strcmp(date(),thisuser.laston)==0) && (thisuser.ontoday>0)) {
  59. -----------------------------------------------------------------------------
  60. STEP 2: Create 2 files in GFILES ddirectory.  The first, CONSTR.MSG and the
  61.         second is BADLO2.MSG.  Here are mine:
  62.  
  63. CONSTR.MSG:
  64. -----------
  65.                                !!! Important !!!
  66.  
  67. Incoming Transmission From SPV Control Center:
  68.  
  69.   "We're sorry, but we can't seem to find your docking paperwork.  We've been
  70. doing some construction around here recently, and it is possible that your
  71. account was lost in the shuffle.
  72.   "We apologize for the inconvenience.  We hope that you will take this
  73. opportunity to log in as NEW."
  74.  
  75.  
  76.  
  77. BADLO2.MSG:
  78. -----------
  79. Please leave your NAME, PASSWORD, VOICE PHONE NUMBER,
  80. (so I can call you with the information if you need it),
  81. and any other pertinent information.
  82.  
  83. STEP 3: Compile...
  84.