home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / SYSOP / MODS1.ZIP / APOLLO27.423 < prev    next >
Text File  |  1993-12-27  |  3KB  |  88 lines

  1. ┌──────────────────────────────────────────────────────Filo─Header─(c)────┐
  2. │ Mod Name: Apollo27.423  Mod Authors: Apollo  1@92938 WWIVNet & BRNet    │
  3. │ Difficulty: █▒▒▒▒▒▒▒▒▒               1@2939 TARDIS,TERRA,ICE & Mas Nets │
  4. │ WWIV Version: v4.23            Date: 12/09/93                           │
  5. │ Files Affected: XFER.C                                                  │
  6. │ When a user goes to download a file, it puts the Description, uploaded  │
  7. │ by, date uploaded, ect...In a box, making it look a whole lot nicer.    │
  8. └─────────────────────────────────────────────────────────────────────────┘
  9.  
  10. Special Thanks to the writer of THEMAN01.MOD.
  11. Theman01 was written for 4.20e, I upgraded it for 4.22, added a few
  12. niceties, and condensed the display a bit.
  13. I've now updated it for 4.23.
  14.  
  15. LEGEND:
  16. = old code, Search for this
  17. + new code
  18. - Remove or comment out this line
  19. > Modified From Virgin Code
  20.  
  21. #include <witty disclaimer>
  22.  
  23. BACKUP your Source
  24.  
  25. Load up: XFER.C
  26. Find: int printfileinfo(uploadsrec *u, int dn)
  27. =  char s[81];
  28. +  char s1[81];                                          /* Apollo27.423 */
  29. =  double d;
  30. =  int i,abort;
  31. =
  32. =  if (modem_speed)
  33. =    d=((double) (((u->numbytes)+127)/128)) *
  34. =      (1620.0) /
  35. =      ((double) (modem_speed));
  36. =  else
  37. =    d=0.0;
  38. - outstr(get_string(746)); pl(stripfn(u->filename));
  39. - outstr(get_string(747)); pl(u->description);
  40. - outstr(get_string(748)); npr("%dk\r\n", ((u->numbytes)+1023)/1024);
  41. - outstr(get_string(749)); pl(ctim(d));
  42. - outstr(get_string(750)); pl(u->date);
  43. - outstr(get_string(751)); pl(u->upby);
  44. - outstr(get_string(752)); pln(u->numdloads);
  45. + sprintf(s,                                     /* Watch for line wrap! */
  46. +     "%d╒═══════════════════════════════════════════════════════════════════════╕",
  47. +     FRAME);
  48. + outstr(s); nl();
  49. + sprintf(s,"%d│5%s1%-58s%d│",FRAME,get_string(746),
  50. +     stripfn(u->filename),FRAME);
  51. + outstr(s); nl();
  52. + sprintf(s,"%d│5%s1%-58s%d│",FRAME,get_string(747),
  53. +     u->description,FRAME);
  54. + outstr(s); nl();
  55. + sprintf(s1,"%dk",((u->numbytes)+1023)/1024);
  56. + sprintf(s,"%d│5%s1%-6s   ",FRAME,get_string(748),s1);
  57. + outstr(s);
  58. + sprintf(s,"5%s1%-8s   ",get_string(749),ctim(d));
  59. + outstr(s);
  60. + sprintf(s,"5%s1%-4d        %d│",get_string(752),
  61. +     u->numdloads,FRAME);
  62. + outstr(s); nl();
  63. + sprintf(s,"%d│5%s:1%-8s   5%s1%-31s  %d│",FRAME,
  64. +     get_string(750),u->date,get_string(751),u->upby,FRAME);
  65. + outstr(s); nl();
  66. + sprintf(s,                                     /* Watch for line wrap! */
  67. +     "%d╘═══════════════════════════════════════════════════════════════════════╛0",
  68. +     FRAME);
  69. + outstr(s);
  70. = nl();
  71. = abort=0;
  72. = if (u->mask & mask_extended) {
  73. =   pl(get_string(753));
  74. =   print_extended(u->filename,&abort,255,0);
  75. = }
  76.  
  77.  
  78. NOTE: Beware of line wrap on all lines that start with +, if there is no + or
  79. = at the begining of the line, then linewrap has attacked, unwrap the line
  80. before compiling.
  81.  
  82. done.
  83.  
  84. Save, Recompile and run.
  85. As you can see, It's as easy as most of my mod's!
  86.  
  87. ---- /┤PΘ££Θ   (8{[}  <-- Bald Vampire W/Glasses & Facial Hair (me)
  88.