Category : BBS Programs+Doors
Archive   : TONSMOD.ZIP
Filename : DLANYFIL.MOD

 
Output of file : DLANYFIL.MOD contained in archive : TONSMOD.ZIP
T Badd #1 @8750
Fri Oct 05 18:33:45 1990

ÖÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ·
º Download Any File º
º Modification º
º v1.0 º
º º
º By: T BADD 1 @ 8750 º
º The Mist - 817-691-0603 º
ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ


For those of you who do maintenance on your BBS remotely:

How many times have you shelled to DOS, copied a file over to your sysop
directory, exited back to the BBS, gone to the Transfer section, uploaded
the file to the section, downloaded the file, and then removed the file?
(Whew!)

I personally do a lot of work on my board from work (on my lunch hour, of
course!). I really got tired of doing the above on a day to day basis. The
purpose of this mod is to bypass all those steps, and allow you, as the
sysop, to download ANY file on your disk using Zmodem. This file does not
need to be added to your WWIV file directory for you to download it.

This command could cause some SERIOUS problems if the wrong person was able
to use it (i.e. downloading your USER.LST)...so if you don't trust the
users who you have given sysop access to, YOU SHOULDN'T USE THIS MOD.

All this mod will do is ask you for the FULL PATH and filename for the file
that you want to download. It will check for it's existance, and execute
a DSZ Zmodem transfer on this file if it does.

You must have DSZ.COM (or DSZ.EXE) in either your BBS root directory, or
in your DOS path for this to work correctly.

Now, on to the mod:

ÚÄÄÄÄÄÄÄÄ¿
³ STEP 1 ³
ÀÄÄÄÄÄÄÄÄÙ

At the bottom of XFER.C, add the following function:

void download_any_file()
{
char s[81],s1[81];

nl();
prt(2,"Download what file? ");
mpl(50);
input(s,50);
if (exist(s)) {
sprintf(s1,"@ Downloaded file: %s",s);
sysoplog(s1);
sprintf(s1,"DSZ port %d sz -Z -r %s",syscfg.primaryport,s);
run_external(s1);
} else {
nl();
prt(6,"File not found!");
nl();
}
}

ÚÄÄÄÄÄÄÄÄ¿
³ STEP 2 ³
ÀÄÄÄÄÄÄÄÄÙ

In BBS.C, void mainmenu(), add the following lines next to all the other
similar looking sysop related commands:

if ((strcmp(s,"DOWNLOAD")==0) && so())
download_any_file();

ÚÄÄÄÄÄÄÄÄ¿
³ STEP 3 ³
ÀÄÄÄÄÄÄÄÄÙ

Press F9, and recompile. It shouldn't take long, since we didn't have to
mess with FCNS.H or anything.

ÚÄÄÄÄÄÄÄÄ¿
³ STEP 4 ³
ÀÄÄÄÄÄÄÄÄÙ

That's it! Now, from the Main Menu, you can type //DOWNLOAD, and download
any file from anywhere on your system.

ÚÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Disclaimer ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÙ

It's not my fault. You didn't see me do it & you can't prove anything!
Seriously, if you have problems, E-mail me, and I'll see if I can help.
I have auto-validation for WWIV sysops, if you want to call my system.

ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Compatibility ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ

This mod should work with ALL versions of WWIV 4.XX without any modifications.
It has been tested with WWIV 4.11 and 4.12 without any problems.

TFB 10/05/90

  3 Responses to “Category : BBS Programs+Doors
Archive   : TONSMOD.ZIP
Filename : DLANYFIL.MOD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/