home *** CD-ROM | disk | FTP | other *** search
-
- setequal(w=1)
- kill(udescs.%NODE%,ubatch.%NODE%,ubatch1.%NODE%)
-
- *fname
- if (&w)=(10) then goto (askup)
- say(&CR&&10&Pressing (ENTER) will let you start uploading your files.)
- say(&3&Please enter name of the file to upload&12&: &14&( )&15&*)
- back(13)
- menuask%NOCR%%CRON%%LEN12%(*)
- if (%RESP%)=(<CR>) then Say ()
- if (%RESP%)=(<CR>) then goto (askup)
- len(%Resp%)
- back(%Aresp%)
- adddef(.%DEFEXT%)
- say(%Resp%)
- setequal(d=%RESP%)
- iseek(%var%d)
- if (%aresp%)=(Yes) then goto (ishere)
- if (%Aresp%)=(INVALID) then goto (invfn)
- appendto(ubatch.%NODE%,files\uploads\%var%d)
- setequal(^%var%w=files\uploads\%var%d)
- inc(w)
- appendto(ubatch1.%NODE%,%var%d)
- say(&CR&&14&Please enter a description for your file. &10&The description can take up 3 lines.*)
- resetwrap ;the resetwrap command resets the wordwrap.
- say(&CR&&15& (----2----3----4----5----6----7---8----))
- wrapask %MIN1%%LEN40%(&3&1&12&: &15&*)
- setequal(r=1)
- appendto(udescs.%NODE%,%RESP%)
- wrapask %LEN40%%CRON%(&3&2&12&: &15&*)
- find(%resp%,<CR>)
- notif (%aresp%)=(0) then goto (nomore)
- appendto(udescs.%NODE%,%RESP%)
- setequal(r=2)
- ask %LEN39%(&3&3&12&: &15&*)
- appendto(udescs.%NODE%,%RESP%)
- setequal(r=3)
- goto (fname)
-
- *nomore
- appendto(udescs.%NODE%, )
- appendto(udescs.%NODE%, )
- goto (fname)
-
- *askup
- if (^1)=() then goto (ex)
- say(&CR&&3& Would you like to upload these files? &9&[ ]&14&*)
- back(4)
- yesnoask(*)
- if (%Resp%)=(No) then goto (ex)
- say(&3&Would you like us to log you off afterwards? &9&[ ]&14&*)
- back(4)
- yesnoask(*)
- setequal(m=%RESP%)
- if (%LOCAL%)=(TRUE) then goto (local)
- setactivity(Uploading Files)
- say(&CR&&11&We're ready to receive the files. Please start sending them now.)
- fixfile(protocol\%var%b-u.bt,protocol\%var%b-u.bat)
- initclock ;initalize the timer that keeps track of how long the d/l took...
- exec(protocol\%var%b-u.BAT│)
- kill(protocol\%var%b-u.bat)
-
- *success
- notif (%ARESP%)=(0) then goto (aborted)
- xfertime
- setequal(e=%ARESP%)
- if (%ARESP%)=(ERROR) then goto (dsucc)
- upped
- setequal(t=0)
- linefeed(1)
- setequal(a=/:UPLOADS/)
- clearmem
- setequal(c=0)
- setequal(i=1)
-
- *stcalc
- inpline(ubatch1.%NODE%,%var%i)
- if (%ARESP%)=() then goto (donecalc)
- setequal(d=%ARESP%)
- setequal(b=0)
- loadsub(zc\zc.ctl)
- if (&a)=(2) then goto (nextfile)
- size(files\uploads\%var%d)
- addvar(%var%t+%ARESP%=t)
- cnvtk(%ARESP%)
- addvar(%ARESP%+/:KUP/=o)
- setequal(/KUP=%var%o)
- multvar(%var%c*3=y)
- if (&b)=(0) then arrayread(udescs.%NODE%,%var%y,3)
- file(files\uploads\,%var%d,10)
- log(--,%var%d Uploaded (batch).)
- appendto(logs\UPLOAD.%NODE%,%var%d uploaded at %TIME% on %DATE% by %NAME%.)
- *nextfile
- inc(i)
- inc(c)
- goto (stcalc)
-
- *donecalc
- inc(c)
- say(%BEEP%)
- multvar(%XMIN%*60=o)
- divvar(%var%t/%var%o=g)
- setequal(/UPLOADS=%var%a)
- log(--,Rate: %var%g CPS)
-
- *dsucc
- display (display\SUCCUB)
- if (%var%m)=(Yes) then goto (autooff)
-
- *ex
- selfarea(/:LASTDOWN/)
- linefeed(1)
- seek(bxtest.bt)
- if (%ARESP%)=(Yes) then goto (testup)
- resetlist
- listfile(%FAREA%)
- Return
-
- *aborted
- log(--,Batch Download aborted.)
- display (display\ABORTED)
- goto (ex)
-
- *ishere
- display(display\ISHERE)
- enter
- linefeed(1)
- goto (fname)
-
- *testup
- fixfile(bxcheck.bt,bxcheck.bat)
- exec(bxcheck.bat)
- display (display\USUCCESS)
- goto (ex)
-
- *autooff
- loadmem(control\autoOff.ctl)
-
- *local
- initclock
- say(&CR&&10&You will now specify the path where the file resides. Ex: C:\DOWNLOADS\)
- menuask(&3&Please enter the path&12&: &15&*)
- fcopy (%RESP%\%var%d,files\uploads\%var%d)
- goto (success)
-
- *invfn
- display(display\INVALID)
- flushout
- selfarea(/:LASTDOWN/)
- enter
- goto (fname)
-
- *notenufs
- display (display\NOSPACE)
- selfarea(/:LASTDOWN/)
- enter
- goto (fname)
-
- *phelp
- display(display\help\prot,/:SEC/)
- goto (pickprot)
-