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 >
Wrap
Text File
|
1995-06-01
|
9KB
|
185 lines
Papa Bear #1 @11579
7Monday1, 7May 291, 71995 2106:249 pm
0R 34 06/01 08:40 WWIVnet ->8339
0R 34 06/01 03:58 WWIVnet 8314->8304
0R 34 06/01 03:03 WWIVNET 4001->8314
0R 34 06/01 02:42 WWIVnet 4000->4001
0R 34 05/31 07:27 WWIVnet ->4000
0R 34 05/30 10:10 WWIVnet 4001->4000
0R 34 05/30 14:02 WWIVnet 11579->4001
0R 34 05/29 22:49 WWIVnet ->11579
4Msg. Status:9▄ 5Please reply!
9 ▀▀▀▀▀▀▀▀▀▀▀▀
┌────────────────────────────A CEREBRUM RELEASE!─────────────────────────────┐
│ Mod Name: SPV-010B.MOD Mod Authors: Pâpâ ßêâr (1@11579.wwivnet) │
│ Difficulty: ▓░░░░░░░░░ First ----- [01/03/93] │
│ WWIV Version: 4.24 Last ------ [05/29/95] │
│ Files Affected: XFEROVL2.C BATCH.C │
│ Description: A better reporting via SSM when a person downloads a file. │
│Will now forward SSM's over the net if the uploader has forwarded their box.│
╞═────────────────────────────────────═╤═───────────────────────────────────═╡
│ StarPort Valhalla [ ] - ASV 28.8kbps Home of the SPV mod series! │
└─────────────────────────────────────═╧═────────────────────────────────────┘
>> OFFICIAL WWIV SUPPORT SITE! <<
Word of Warning: You installed it, you're responsible! Make back-ups BEFORE
attempting to install this modification! Read all text before beginning.
─────────────────────────────────────────────────────────────────────────────
LEGEND:
== Original Code [use this to search on]
++ Add this Line [mods ALWAYS add stuff, don't they?]
-- Delete this Line [or comment out, its not needed]
─────────────────────────────────────────────────────────────────────────────
LONG DESCRIPTION: Well, I was getting really tired of the same old choppy
code that would send me repeating SSM's anytime a person downloaded a file
that I had uploaded to the board. So I changed it.
Features:
o It will report to you, the sysop, the name of the file downloaded, when it
was downloaded, and who uploaded it in the first place. If the file was
batch downloaded, and average CPS information is available, that will be
included as well.
o It will report to the person who uploaded the file in the first place.
o If the person who uploaded the file has forwarded their mailbox to another
system or account, the reporting SSM will be forwarded as well. It will
look like this:
SPV-010A.ARJ was d/l'ed from StarPort Valhalla by Papa Bear #1 on 05/25/94
The major change for the "A" revision is that it will now forward the
resulting SSM over the nets, if the user has forwarded their mailbox. This
was also a major overhaul from the last version, as that was for 4.21 only.
─────────────────────────────────────────────────────────────────────────────
STEP 1: Declare these variables in BATCH.C,
void downloaded(char *fn, long cps)
== char s[161];
== userrec ur;
++ char s1[81],s2[81],s3[81]; // SPV-010B
++ unsigned short un,sy; // SPV-010B
==
== for (i1=0; i1<numbatch; i1++) {
─────────────────────────────────────────────────────────────────────────────
STEP 2: Make these changes to BATCH.C, same function:
== SETREC(f,i);
== sh_write(f,(void *)&u,sizeof(uploadsrec));
== f=sh_close(f);
// START SPV-010A
-- if (cps)
-- sprintf(s,get_stringx(1,50),u.filename, cps);
-- else
-- sprintf(s,get_stringx(1,43),u.filename);
-- sysoplog(s);
-- if (syscfg.sysconfig & sysconfig_log_dl) {
-- read_user(u.ownerusr, &ur);
-- if (!(ur.inact & inact_deleted)) {
-- if (date_to_daten(ur.firston) < u.daten) {
-- sprintf(s,get_stringx(1,51),
-- nam(&thisuser,usernum), u.filename, date());
-- ssm(u.ownerusr,0,s);
-- }
-- }
-- }
++ if (cps)
++ sprintf(s,"1%s 9downloaded 1%s 3(2%ld c.p.s.3)9.0",
++ nam(&thisuser,usernum),u.filename,cps);
++ else
++ sprintf(s,"1%s 9downloaded 1%s9.0",
++ nam(&thisuser,usernum),u.filename);
++ sprintf(s2,"5Uploaded by 2%s 0",u.upby);
++ ssm(1,0,s);
++ ssm(1,0,s2);
++ sysoplog(s);
++ sysoplog(s2);
++ if (u.ownerusr!=1) {
++ read_user(u.ownerusr,&ur);
++ if (ur.forwardsys!=0) {
++ sprintf(s3,"%d@%d.%s",ur.forwardusr,ur.forwardsys,
++ net_networks[ur.net_num].name);
++ parse_email_info(s3,&un,&sy);
++ sprintf(s1,
++ "1%s 9was d/l'ed from 1%14.14s 9by 1%14.14s 9on 1%s0",
++ u.filename,syscfg.systemname,nam(&thisuser,usernum),date());
++ ssm(un,sy,s1);
++ } else {
++ ssm(u.ownerusr,0,s);
++ ssm(u.ownerusr,0,s2);
++ }
++ }
// END SPV-010A
== }
== delbatch(i1);
───────────────────────────────────────────────────────────────────────────
STEP 3: Add these variable declarations to XFEROVL2.C in:
int try_to_download(char *s, int dn,int title)
== char s1[81],s2[81];
== userrec ur;
++ char s3[81]; // SPV-010B
++ unsigned short sy,un; // SPV-010B
==
== dliscan1(dn);
== i=recno(s);
─────────────────────────────────────────────────────────────────────────────
STEP 4: Make these changes to XFEROVL2.C, same function:
== read_user(u.ownerusr, &ur);
== if (!(ur.inact & inact_deleted)) {
== if (date_to_daten(ur.firston) < u.daten) {
// START SPV-010B MOD CHANGES
-+ sprintf(s1,"1%s 9%s '1%s9' %s 1%s0", // CHANGED LINE!
== nam(&thisuser,usernum), get_string(785),
== u.filename, get_string(786),date());
-- ssm(u.ownerusr,0,s1); // DELETED LINE!
++ sprintf(s2,"5Uploaded by 2%s 0",u.upby);
++ ssm(1,0,s1);
++ ssm(1,0,s2);
++ sysoplog(s1);
++ sysoplog(s2);
++ if (u.ownerusr!=1) {
++ if (ur.forwardsys!=0) {
++ sprintf(s3,"%d@%d.%s",ur.forwardusr,ur.forwardsys,
++ net_networks[ur.net_num].name);
++ parse_email_info(s3,&un,&sy);
++ sprintf(s1,
++ "1%s 9was d/l'ed from 1%14.14s 9by 1%14.14s 9on 1%s0",
++ u.filename,syscfg.systemname,nam(&thisuser,usernum),date());
++ ssm(un,sy,s1);
++ } else {
++ ssm(u.ownerusr,0,s1);
++ ssm(u.ownerusr,0,s2);
++ }
++ }
// END SPV-010B MOD CHANGES
== }
== }
== }
== if (useron)
== topscreen();
─────────────────────────────────────────────────────────────────────────────
STEP 3: Recompile
─────────────────────────────────────────────────────────────────────────────
Here ya go, another 4.24 update for ya'll.
This mod is copyright 1993,1994 by Tracy Baker, aka Papa Bear, and is
distributed as freeware. Permission is granted to distribute and post this
mod on BBS systems and online services, provided no alterations are made
(removal of message headers/taglines allowed). This mod may contain some
parts of WWIV source code, which is copyright 1988-1994 by Wayne Bell and
licensed only to registered users of WWIV. Use of WWIV source without
registration constitutes a license violation and could lead to legal
prosecution and certain doom.
Shareware distributors and CD-ROM publishers may not distribute this mod
without express written permission of the Author or WWIV Software Services.
7-9=1*6>2Pâpâ ßêâr6<1*9=7-0
8311579.wwivnet1· 2 ╪╫9≡8║7⌐¬4¥5╓╥╖1· · 2▒1 · 2▒ 3(510)522-35831 ·
732.sexnet 1∙ 6 ·0░░▒▒▓▓6∞0▓▒░6·2 StarPort ▒ ▒ 2 ▒1 ·2▒ ▒ ▒1 ·2 ▒ ▒1 ·2▒ ▒ 1·
6315061.wwivlink 0 ████1 · . 2 ▒ ▒ ▒ ▒ ▒1 · 2▒▒▒ ▒ ▒ ▒ ▒ ▒ ▒
535079.icenet 1. . 0 │└6·0└6· 1 ∙ 2 ▒ ▒ ▒ ▒▒▒ ▒ ▒ ▒1 ·2 ▒ ▒▒▒ ▒▒▒ ▒1 ∙ 2▒
---
5The more you run over a cat, the flatter it gets.