home *** CD-ROM | disk | FTP | other *** search
- setequal(f=%maxfarea%) ;this sets the max area to search...
- setequal(g=1)
- Jump(ST_Check)
- say(&CR&&11&You last checked for new files on &12&/:LASTCHK/&11&. Please enter the date to start)
- say(the search at or press (&14&ENTER&11&) to start at &12&/:LASTCHK/.)
- setequal(y=15)
- *askagain
- say(&CR&&3&Please enter the date to start at&12&: &11&( )&15&*)
- back(9)
- SetFill(/:lastchk/)
- menuask%CRON%%LEN8%(*)
- *COMMAND
- setequal(n=%RESP%)
- if (%RESP%)=(<CR>) then setequal(n=/:LASTCHK/)
- ;**************
- If (%RESP%)=(S) then setequal(n=/:LASTCHK/)
- If (%RESP%)=(s) then setequal(n=/:LASTCHK/)
- ;**************
- ;Lines in between stars need to be added to allow user to select since last
- ;Check through the command line.
- dateok(%var%n)
- if (%ARESP%)=(No) then goto (invdate)
- Jump(C_Check)
- loadsub(control\selfilea.ctl)
- clearscr
- defpause($7$&0&[More?]$0$&3& (&11&S&3&)top, (&11&N&3&)onstop, (&11&V&3&)iew, (&11&D&3&)ownload, (&11&T&3&)ag, (&11&H&3&)elp or (&11&C&3&)ontinue?&12&: &7&)
- defPif(s:stop,n:nonstop,v:view2,h:fhlp,t:tag2,d:down2)
- say(&11&(Spacebar) Aborts. &14&Searching file database for "%var%n". . .&CR&)
- log(--,New Files Scan (%var%n))
- spause(3)
- *stsearch
- selfarea(%var%g)
- enufsec(%FILSEC%)
- if (%ARESP%)=(No) then goto (skcheck)
- *cnew
- eline(79)
- say(&7&Searching file area: %FILNAME%|)
- if (%CD%)=(No) then new(%FILPATH%files.bbs,12,15,7,11,3,%var%n)
- if (%CD%)=(Yes) then new (%CDPath%%filarea%\files.bbs,12,15,7,11,3,%var%n)
- iftrue (goto (enew))
- ifkey( )
- ifTrue (goto (enew)) ;did user hit stop?
- localkey(1)
- notif (%ARESP%)=(No) then goto (enew)
- *skcheck
- if (&g)=(&f) then goto (enew)
- inc(g)
- goto (stsearch)
-
- *enew
- eline(79)
- selfarea(/:LASTDOWN/)
- defpause($7$&0&[Send more text?]$0$&3& (&11&S&3&)top, (&11&N&3&)onstop or (&11&C&3&)ontinue?&12&: &7&)
- defPif(s:stop,n:nonstop)
- setequal(/LASTCHK=%DATE%)
- setequal(k=0)
- display(display\newdone)
- Return
-
- *invdate
- display(display\INVDATE)
- goto (askagain)
- *view2
- setequal(k=%ARESP%)
- loadsub(control\macros\zview.ctl)
- goto (blist2)
- *tag2
- setequal(k=%ARESP%)
- loadsub(control\macros\tfiles.ctl)
- goto (blist2)
- *down2
- setequal(k=%ARESP%)
- loadsub(control\macros\down.ctl)
- selfarea(/:Lastdown/)
- goto (blist2)
- *blist2
- spause(0)
- clearscr
- goto (cnew)
- *fhlp
- defpause($7$&0&[Send more text?]$0$&3& (&11&S&3&)top, (&11&N&3&)onstop or (&11&C&3&)ontinue?&12&: &7&)
- defPif(s:stop,n:nonstop)
- setequal(k=%ARESP%)
- display(display\help\lst,/:SEC/)
- goto (blist2)
-
- *C_CHECK
- SetEqual(z=;)
- ;Z will be search character (' ' or ';')
- Find(%RESP%,;)
- If (%ARESP%)=(0) Then
- Find(%RESP%, )
- If(%ARESP%)=(0) then Ret
- SetEqual(z= )
- endif
- ;SetEqual(/nvz=%RESP%)
- SetEqual(^1=%RESP%)
- *ST_CHECK
- ;SetEqual(a=%NV%Z)
- SetEqual(a=^:1^)
- Find(%VAR%A,%VAR%Z)
- If(%ARESP%)=(0) then Goto(NoMoreCommands)
- AddVar(%ARESP%+-1=b)
- Get(%VAR%A,1,%VAR%B)
- SetEqual(/resp=%ARESP%)
- *Cont
- If (%RESP%)=() Then Ret
- AddVar(%VAR%B+2=b)
- Get(%VAR%A,%VAR%B,100)
- ;SetEqual(/nvz=%ARESP%)
- SetEqual(^1=%ARESP%)
- Goto(COMMAND)
- Ret
-
- *NoMoreCommands
- SetEqual(/resp=^:1^)
- SetEqual(^1=)
- If (%RESP%)=() Then Ret
- Goto(command)
-