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

  1. Papa Bear #1 @11579
  2. 7Monday1, 7May 291, 71995 2106:249 pm
  3. 0R 34 06/01 08:40 WWIVnet ->8339
  4. 0R 34 06/01 03:58 WWIVnet 8314->8304
  5. 0R 34 06/01 03:03 WWIVNET 4001->8314
  6. 0R 34 06/01 02:42 WWIVnet 4000->4001
  7. 0R 34 05/31 07:27 WWIVnet ->4000
  8. 0R 34 05/30 10:10 WWIVnet 4001->4000
  9. 0R 34 05/30 14:02 WWIVnet 11579->4001
  10. 0R 34 05/29 22:49 WWIVnet ->11579
  11. 4Msg. Status:9▄ 5Please reply!
  12. 9 ▀▀▀▀▀▀▀▀▀▀▀▀
  13. ┌────────────────────────────A CEREBRUM RELEASE!─────────────────────────────┐
  14. │ Mod Name: SPV-010B.MOD     Mod Authors: Pâpâ ßêâr (1@11579.wwivnet)        │
  15. │ Difficulty: ▓░░░░░░░░░     First ----- [01/03/93]                          │
  16. │ WWIV Version: 4.24         Last ------ [05/29/95]                          │
  17. │ Files Affected: XFEROVL2.C  BATCH.C                                        │
  18. │ Description: A better reporting via SSM when a person downloads a file.    │
  19. │Will now forward SSM's over the net if the uploader has forwarded their box.│
  20. ╞═────────────────────────────────────═╤═───────────────────────────────────═╡
  21. │ StarPort Valhalla [   ]   -     ASV 28.8kbps  Home of the SPV mod series!  │
  22. └─────────────────────────────────────═╧═────────────────────────────────────┘
  23.  
  24.                       >> OFFICIAL WWIV SUPPORT SITE! <<
  25.  
  26.  Word of Warning:  You installed it, you're responsible! Make back-ups BEFORE
  27.  attempting to install this modification!  Read all text before beginning.
  28. ─────────────────────────────────────────────────────────────────────────────
  29.  LEGEND:
  30.  ==  Original Code [use this to search on]
  31.  ++  Add this Line [mods ALWAYS add stuff, don't they?]
  32.  --  Delete this Line [or comment out, its not needed]
  33. ─────────────────────────────────────────────────────────────────────────────
  34. LONG DESCRIPTION:  Well, I was getting really tired of the same old choppy
  35. code that would send me repeating SSM's anytime a person downloaded a file
  36. that I had uploaded to the board.  So I changed it.
  37.  
  38. Features:
  39.  o It will report to you, the sysop, the name of the file downloaded, when it
  40.    was downloaded, and who uploaded it in the first place.  If the file was
  41.    batch downloaded, and average CPS information is available, that will be
  42.    included as well.
  43.  o It will report to the person who uploaded the file in the first place.
  44.  o If the person who uploaded the file has forwarded their mailbox to another
  45.    system or account, the reporting SSM will be forwarded as well.  It will
  46.    look like this:
  47.  
  48.    SPV-010A.ARJ was d/l'ed from StarPort Valhalla by Papa Bear #1 on 05/25/94
  49.  
  50. The major change for the "A" revision is that it will now forward the
  51. resulting SSM over the nets, if the user has forwarded their mailbox.  This
  52. was also a major overhaul from the last version, as that was for 4.21 only.
  53. ─────────────────────────────────────────────────────────────────────────────
  54. STEP 1: Declare these variables in BATCH.C,
  55.        void downloaded(char *fn, long cps)
  56.  
  57. ==  char s[161];
  58. ==  userrec ur;
  59. ++  char s1[81],s2[81],s3[81];                                    // SPV-010B
  60. ++  unsigned short un,sy;                                         // SPV-010B
  61. ==
  62. ==  for (i1=0; i1<numbatch; i1++) {
  63. ─────────────────────────────────────────────────────────────────────────────
  64. STEP 2: Make these changes to BATCH.C, same function:
  65.  
  66. ==        SETREC(f,i);
  67. ==        sh_write(f,(void *)&u,sizeof(uploadsrec));
  68. ==        f=sh_close(f);
  69. // START SPV-010A
  70. --        if (cps)
  71. --          sprintf(s,get_stringx(1,50),u.filename, cps);
  72. --        else
  73. --          sprintf(s,get_stringx(1,43),u.filename);
  74. --        sysoplog(s);
  75. --        if (syscfg.sysconfig & sysconfig_log_dl) {
  76. --          read_user(u.ownerusr, &ur);
  77. --          if (!(ur.inact & inact_deleted)) {
  78. --            if (date_to_daten(ur.firston) < u.daten) {
  79. --              sprintf(s,get_stringx(1,51),
  80. --                nam(&thisuser,usernum), u.filename, date());
  81. --              ssm(u.ownerusr,0,s);
  82. --            }
  83. --          }
  84. --        }
  85. ++        if (cps)
  86. ++          sprintf(s,"1%s 9downloaded 1%s 3(2%ld c.p.s.3)9.0",
  87. ++            nam(&thisuser,usernum),u.filename,cps);
  88. ++        else
  89. ++          sprintf(s,"1%s 9downloaded 1%s9.0",
  90. ++            nam(&thisuser,usernum),u.filename);
  91. ++        sprintf(s2,"5Uploaded by 2%s 0",u.upby);
  92. ++        ssm(1,0,s);
  93. ++        ssm(1,0,s2);
  94. ++        sysoplog(s);
  95. ++        sysoplog(s2);
  96. ++        if (u.ownerusr!=1) {
  97. ++          read_user(u.ownerusr,&ur);
  98. ++          if (ur.forwardsys!=0) {
  99. ++            sprintf(s3,"%d@%d.%s",ur.forwardusr,ur.forwardsys,
  100. ++                        net_networks[ur.net_num].name);
  101. ++            parse_email_info(s3,&un,&sy);
  102. ++            sprintf(s1,
  103. ++             "1%s 9was d/l'ed from 1%14.14s 9by 1%14.14s 9on 1%s0",
  104. ++             u.filename,syscfg.systemname,nam(&thisuser,usernum),date());
  105. ++            ssm(un,sy,s1);
  106. ++          } else {
  107. ++            ssm(u.ownerusr,0,s);
  108. ++            ssm(u.ownerusr,0,s2);
  109. ++          }
  110. ++        }
  111. // END SPV-010A
  112. ==      }
  113. ==      delbatch(i1);
  114. ───────────────────────────────────────────────────────────────────────────
  115. STEP 3: Add these variable declarations to XFEROVL2.C in:
  116.         int try_to_download(char *s, int dn,int title)
  117.  
  118. ==  char s1[81],s2[81];
  119. ==  userrec ur;
  120. ++  char s3[81];                                                  // SPV-010B
  121. ++  unsigned short sy,un;                                         // SPV-010B
  122. ==
  123. ==  dliscan1(dn);
  124. ==  i=recno(s);
  125. ─────────────────────────────────────────────────────────────────────────────
  126. STEP 4: Make these changes to XFEROVL2.C, same function:
  127.  
  128. ==          read_user(u.ownerusr, &ur);
  129. ==          if (!(ur.inact & inact_deleted)) {
  130. ==            if (date_to_daten(ur.firston) < u.daten) {
  131. // START SPV-010B MOD CHANGES
  132. -+              sprintf(s1,"1%s 9%s '1%s9' %s 1%s0",   // CHANGED LINE!
  133. ==              nam(&thisuser,usernum), get_string(785),
  134. ==                                       u.filename, get_string(786),date());
  135. --              ssm(u.ownerusr,0,s1);                        // DELETED LINE!
  136. ++              sprintf(s2,"5Uploaded by 2%s 0",u.upby);
  137. ++              ssm(1,0,s1);
  138. ++              ssm(1,0,s2);
  139. ++              sysoplog(s1);
  140. ++              sysoplog(s2);
  141. ++              if (u.ownerusr!=1) {
  142. ++                if (ur.forwardsys!=0) {
  143. ++                  sprintf(s3,"%d@%d.%s",ur.forwardusr,ur.forwardsys,
  144. ++                              net_networks[ur.net_num].name);
  145. ++                  parse_email_info(s3,&un,&sy);
  146. ++                  sprintf(s1,
  147. ++             "1%s 9was d/l'ed from 1%14.14s 9by 1%14.14s 9on 1%s0",
  148. ++             u.filename,syscfg.systemname,nam(&thisuser,usernum),date());
  149. ++                  ssm(un,sy,s1);
  150. ++                } else {
  151. ++                  ssm(u.ownerusr,0,s1);
  152. ++                  ssm(u.ownerusr,0,s2);
  153. ++                }
  154. ++              }
  155. // END SPV-010B MOD CHANGES
  156. ==            }
  157. ==          }
  158. ==        }
  159. ==        if (useron)
  160. ==          topscreen();
  161. ─────────────────────────────────────────────────────────────────────────────
  162. STEP 3: Recompile
  163. ─────────────────────────────────────────────────────────────────────────────
  164.   Here ya go, another 4.24 update for ya'll.
  165.  
  166.     This mod is copyright 1993,1994 by Tracy Baker, aka Papa Bear, and is
  167.  distributed as freeware.  Permission is granted to distribute and post this
  168.    mod on BBS systems and online services, provided no alterations are made
  169.   (removal of message headers/taglines allowed).  This mod may contain some
  170.   parts of WWIV source code, which is copyright 1988-1994 by Wayne Bell and
  171.     licensed only to registered users of WWIV.  Use of WWIV source without
  172.      registration constitutes a license violation and could lead to legal
  173.                         prosecution and certain doom.
  174.    Shareware distributors and CD-ROM publishers may not distribute this mod
  175.  without express written permission of the Author or WWIV Software Services.
  176.  
  177. 7-9=1*6>2Pâpâ ßêâr6<1*9=7-0
  178.  
  179. 8311579.wwivnet1· 2 ╪╫9≡8║7⌐¬4¥5╓╥╖1·     ·     2▒1 ·   2▒       3(510)522-35831    ·
  180. 732.sexnet  1∙   6 ·0░░▒▒▓▓6∞0▓▒░6·2 StarPort   ▒   ▒ 2 ▒1  ·2▒   ▒ ▒1 ·2 ▒   ▒1  ·2▒     ▒ 1·
  181. 6315061.wwivlink    0 ████1 ·     .       2  ▒ ▒  ▒ ▒  ▒1 · 2▒▒▒  ▒ ▒  ▒   ▒    ▒ ▒
  182. 535079.icenet 1.  .  0 │└6·0└6· 1     ∙         2 ▒  ▒   ▒ ▒▒▒ ▒ ▒ ▒1 ·2 ▒ ▒▒▒ ▒▒▒ ▒1 ∙ 2▒
  183. ---
  184. 5The more you run over a cat, the flatter it gets.
  185.