home *** CD-ROM | disk | FTP | other *** search
- display (display\UPLD)
- kill(ubatch.%NODE%)
- enter
- clearmem
- freespace(%CDRIVE%:)
- setequal(i=%ARESP%)
- cmpval(%ARESP%,%MINSPACE%)
- ifTrue (goto (notenufs))
- if (%LOCAL%)=(TRUE) then goto (pok)
- *pickprot
- display (display\up-PROTS)
- menuask %MIN1%(&3&Which transfer protocol would you like to use?&11&(or Q to Quit)&12&: &15&*)
- find(%RESP%,\)
- notif (%ARESP%)=(0) then goto (badprot)
- BigIf(h:phelp,q:filesback)
- seek(protocol\%RESP%-U.BT)
- ifTrue (goto (Pok))
- *badprot
- loadsub(control\macros\badsel.ctl)
- goto (pickprot)
- *Pok
- setequal(b=%RESP%)
- addcomma(%var%i)
- say(&CR&&14&%aresp% &7&Bytes Free.)
- len(%var%b)
- notif (%ARESP%)=(1) then loadmem(control\macros\ubatch.ctl)
- *gtname
- say(&CR&&3&Please enter the name of the file to upload&12&: &14&(&F&12)&15&*)
- back(13)
- menuask%NOCR%%CRON%%LEN12%(*)
- if (%RESP%)=(<CR>) then say()
- if (%RESP%)=(<CR>) then Return
- len(%Resp%)
- back(%Aresp%)
- adddef(.%DEFEXT%)
- say(%Resp%&11&&CR&)
- setequal(d=%RESP%)
- iseek(%var%d)
- if (%aresp%)=(Yes) then goto (ishere)
- if (%Aresp%)=(INVALID) then goto (invfn)
- say(&14&Please enter a description for your file. &10&The description can take up 3 lines.&15&)
- resetwrap
- say( (----2----3----4----5----6----7---8----))
- setequal(r=1)
- wrapask %MIN1%%LEN40%(&3&1&12&: &15&*)
- setequal(^1=%RESP%)
- setequal(r=2)
- wrapask %LEN40%%CRON%(&3&2&12&: &15&*)
- if (%RESP%)=(<CR>) then goto (askup)
- setequal(^2=%RESP%)
- setequal(r=3)
- ask %LEN39% %CRON%(&3&3&12&: &15&*)
- if (%RESP%)=(<CR>) then goto (askup)
- setequal(^3=%RESP%)
- *askup
- say(&CR&&3& Would you like to upload this file? &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 a File)
- say(&CR&&11&We're ready to receive the file. Please start sending it now.)
- fixfile(protocol\%var%b-u.bt,protocol\%var%b-u.bat)
- initclock
- exec(protocol\%var%b-u.BAT│)
- kill(protocol\%var%b-u.bat)
-
- *success
- eline(20)
- notif (%ARESP%)=(0) then goto (aborted)
- setequal(k=0)
- *lsuccess
- xfertime
- setequal(e=%ARESP%)
- loadsub(zc\zc.ctl)
- if (&a)=(2) then goto (aborted)
-
- notif (%BAUD%)=(LOCAL) then toglocal
- setequal(b=%XMIN%)
- if (&b)=(0) then setequal(b=1)
- multvar(%var%b*60=o)
- size(files\uploads\%var%d)
- divvar(%ARESP%/%var%o=g)
- log(--,%var%d Uploaded. Took %XMIN% minutes.)
- log(--,Rate: %var%g CPS)
- cnvtk(%ARESP%)
- addvar(%ARESP%+/:KUP/=o)
- setequal(/KUP=%var%o)
- say(%BEEP%*)
- refund ;refund some of the users time...
- upped ;set last upload time...
- appendto(logs\UPLOAD.%NODE%,%var%d uploaded at %TIME% on %DATE% by %NAME%.)
- setequal(a=/:UPLOADS/)
- inc(a)
- setequal(/UPLOADS=%var%a)
- file(files\uploads\,%var%d,10)
- notif (%BAUD%)=(LOCAL) then toglocal
- seek(xcheck.bt)
- if (%ARESP%)=(Yes) then goto (testup)
- display (display\USUCCESS)
- if (&m)=(Yes) then goto (autooff)
- *ex
- resetlist
- listfile(%FAREA%)
- Return
- *aborted
- log(--,Upload of %var%d aborted.)
- display (display\ABORTED)
- goto (ex)
- *ishere
- display(display\ISHERE)
- enter
- goto (gtname)
-
- *testup
- fixfile(xcheck.bt,xcheck.bat)
- exec(xcheck.bat)
- display (display\USUCCESS)
- goto (ex)
-
- *autooff
- loadmem(control\autooff.ctl)
-
- *local
- say(&CR&&10&You will now specify the path where the file resides. Ex: C:\DOWNLOADS\)
- menuask(&3&Please enter the path&12&: &15&*)
- setequal(k=10)
- initclock
- fcopy (%RESP%\%var%d,files\uploads\%var%d)
- notif (%ARESP%)=(0) then goto (err)
- goto (lsuccess)
- *err
- say(&11&&CR&File not found!&CR&)
- enter
- Return
-
- *invfn
- display(display\INVALID)
- flushout
- selfarea(/:LASTDOWN/)
- enter
- Return
-
- *notenufs
- display (display\NOSPACE)
- selfarea(/:LASTDOWN/)
- enter
- Return
-
- *phelp
- display(display\help\prot,/:SEC/)
- goto (pickprot)
-
- *filesback
- Return
-