home *** CD-ROM | disk | FTP | other *** search
- /*
- * Octopus, The Atari ST(e)/TT/Falcon GEM/TOS Bulletin Board System
- * written by me (Koos Kuil) on FidoNet: 2:282/397, NeST: 90:500/103
- *
- * Example English OctoScript file written on 03 March 1995
- *
- * ------------------------------------------------------------------
- * FILEBASE.SCR Filebase & Allfiles functions
- *
- * I've created a small example for how to make use of 2 file groups
- * in only one menu. You can also use GetFilearealist FULL if you
- * want to select a filearea from a list with all fileareas at once.
- * When you use this method it's not required to set the filegroup.
- *
- */
-
- #include tbank.scr /* Script file for OctoBank */
-
- :filebase
- SetFileGroup ATARI /* Set file group ATARI as default */
- SetMainArea ATARI
- Do
- Convert FileMenu
- DoChoice
- Selectchoice
-
- Case 1 SetFileGroup ATARI /* File group ATARI */
- SetMainArea ATARI
- Getfilearealist ATARI
-
- Case 2 SetFileGroup GENERAL /* File group GENERAL */
- SetMainArea GENERAL
- Getfilearealist GENERAL
-
- Case 3 SetFileGroup FANFILES /* File group FANFILES */
- SetMainArea FANFILES
- Getfilearealist FANFILES
-
- Case 4 SetFileGroup NESTFILE /* File group NESTFILE */
- SetMainArea NESTFILE
- Getfilearealist NESTFILE
-
- Case X SetFileGroup FULL /* Set Full group */
- FileListing
-
- Case F FileListing
- Case L FileListing
- Case N Newfiles
- Case K KeywordSearch
- Case D Download
- Case V ShowFileInfo
- Case U Convert rules.upl UploadtoArea
- Case S FileBaseStatistics
- Case T Gosub tbank
- Case P Convert private.upl UploadPrivate
- Case ! Gosub logoff
- Endselect
- EnddoChoice *
- Enddo *
- Return
-
- /* Allfiles menu */
-
- :allfiles
- Do
- Convert AllFmenu
- DoChoice
- SelectChoice
- Case A DownloadFile c:\octopus\allfiles\allfiles.arc
- Case B DownloadFile c:\octopus\allfiles\allfiles.lzh
- Case C DownloadFile c:\octopus\allfiles\allfiles.zip
- Case 3 DownloadFile c:\octopus\allfiles\files030.zip
- Case R Bulletin c:\octopus\allfiles\allfiles.txt
- Case ! Gosub logoff
- EndSelect
- EnddoChoice *
- Enddo *
- Return
-
- /* End FILEBASE.SCR */
-