home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / TD004A.MOD < prev    next >
Text File  |  1995-06-17  |  3KB  |  77 lines

  1. Tonedef #1 @5479 1-3+5*7[9THe SWiTCH - (919)781-06197]5*3+1-
  2. Fri Jun 16 13:33:50 1995
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │ Mod Name      : TD004A.MOD           Mod Author:  ToneDef                  │
  5. │ Difficulty    : █▒▒▒▒▒▒▒▒▒                              1 @ 1    SilNet    │
  6. │ WWIV Version  : 4.24                                    1 @ 5479 WWIVNet   │
  7. │ Mod Date      : 06/10/95                                1 @ 7512 FIITAnet  │
  8. │ Files Affected: BBSUTL1.C                               1 @ 2    CompNet   │
  9. │ Description   : New int checkpw(void) function, looks MUCH nicer, ANSI     │
  10. │                   only, but, your the SysOp if you see it, so...           │
  11. └────────────────────────────────────────────────────────────────────────────┘
  12.  
  13. ══[ Description ]═════════════════════════════════════════════════════════════
  14.  
  15. Completely replaces the int checkpw(void) function.
  16.  
  17. ══[ Disclaimer ]══════════════════════════════════════════════════════════════
  18.  
  19. Don't complain to me if your board crashes, your hard drive grows legs and
  20.   walks away, the green mother sings the song of chaos, or you're girlfriend
  21.   gets pregnant.  The code in this mod should be harmless, but I can't
  22.   guarantee it will work for you.  It works on my board and thats all I
  23.   care about.
  24.  
  25. ══[ Step 1 ]══════════════════════════════════════════════════════════════════
  26.  
  27. Please back up your source code.  Even the best programmers make mistakes.
  28.  
  29. ══[ Step 2 ]══════════════════════════════════════════════════════════════════
  30.  
  31. Open up BBSUTL1.C, search for 'checkpw', and replace it with this...
  32.  
  33. int checkpw(void)
  34. {
  35.   char s[81];
  36.  
  37.   outstr("\f");
  38.   nl();nl();nl();nl();nl();nl();
  39.   npr("                         ┌─┐─4┬─∙9─∙ ∙           ∙ ∙  ∙4──┬0─┌─┐\r\n");
  40.   npr("                         └─4┼──9─────────────────────────4──┼0─┘\r\n");
  41.   npr("                         4├9─│─┘7     System Password     9└─:4─┤\r\n");0
  42.   npr("                         9├─:───────∙─∙∙  ∙ ∙ ∙∙─∙────────:─┤\r\n");0
  43.   npr("                         9│ .                             . │\r\n");0
  44.   npr("                         4│9     7W4h0at's the password??       9│\r\n");0
  45.   npr("                         4│9                                 │\r\n");0
  46.   npr("                         4│9                               : │\r\n");0
  47.   npr("                         4│ 9:                            4 : │\r\n");0
  48.   npr("                         4├─:9─┐                         ┌4─│0─┤\r\n");
  49.   npr("                         ┌─4┼──9─4─9──────────────────4─9─4─────0┼─┐\r\n");
  50.   npr("                         └─┘4─┴9─∙∙ ∙            ∙ ∙∙ ∙∙─4┴─└0─┘\r\n");
  51.   npr("                               ");
  52.   CURSORUP(5);  // sorry bout that... 
  53.   echo=0;
  54.   input(s,20);
  55.   echo=1;
  56.   pl("\f");
  57.   if (strcmp(s,(syscfg.systempw))==0)
  58.     return(1);
  59.   else
  60.     return(0);
  61. }
  62.  
  63.  
  64. ══[ Step 3 ]══════════════════════════════════════════════════════════════════
  65.  
  66. Save your source and compile.  You're done...check it out.
  67.  
  68. ══[ Credits ]═════════════════════════════════════════════════════════════════
  69.  
  70. ToneDef
  71. 1 @ 1     SilNet
  72. 1 @ 5479  WWIVNet
  73. 1 @ 7512  FIITANet
  74. 1 @ 2     CompNet
  75.  
  76. ══[ END ]═════════════════════════════════════════════════════════════════════
  77.