home *** CD-ROM | disk | FTP | other *** search
- | !Run for ArcWeb
- |
- | Copyright (C) Stewart Brodie, 1994, 1995
- |
- |
- | Ensure RISC OS 3.1 or later; DrawFile 1.30 or later
- |
- RmEnsure UtilityModule 3.10 Error ArcWeb requires RISC OS 3.10 or later
- RmEnsure DrawFile 1.30 RMLoad System:Modules.DrawFile
- RmEnsure DrawFile 1.30 Error You need at least DrawFile 1.30 to run ArcWeb (see Problems file)
- |
- | Follow PRM (4:497) advice and prevent multiple running
- |
- If "<ArcWeb$Running>" = "yes" Then Error ArcWeb is already running
- |
- Set ArcWeb$Dir <Obey$Dir>
- <Obey$Dir>.ROFS
- If "<ArcWeb$CacheDir>" = "" Then If "<ArcWeb$ROFS_Status>" = "no" Then Set ArcWeb$CacheDir <ArcWeb$Dir>.WWWcache
- If "<ArcWeb$CacheDir>" = "" Then If "<Wimp$ScrapDir>" <> "" Then Set ArcWeb$CacheDir <Wimp$ScrapDir>.WWWCache
- If "<ArcWeb$CacheDir>" = "" Then Error You must find a !WebCache in a read/write filing system before running !ArcWeb
- Unset ArcWeb$ROFS_Status
- |
- | Determine whether we are using KA9Q or Acorn TCP/IP
- | Detect this by lack of FreeNet or Internet module
- |
- UnSet ArcWeb$usingKA9Q
- RMEnsure Internet 0.00 Set ArcWeb$UsingKA9Q yes
- |
- | Note that this is a special syntax for ArcWeb$Home ONLY. On startup, ArcWeb
- | automatically converts this into a valid local: URL.
- | The local://riscos-full-path syntax is allowed to allow you to use
- | variables such as <arcweb$dir> in the ArcWeb$Home variable
- |
- If "<ArcWeb$Home>" = "" Then Set ArcWeb$Home local://<ArcWeb$Dir>.PublicHTML.Welcome
- |
- | Now set the user preferences file
- |
- If "<ArcWeb$Choices>" = "" Then Set ArcWeb$Choices <ArcWeb$CacheDir>.Choices
- |
- | Locate the directory containing the helpers
- |
- If "<ArcWeb$Helper$Dir>" = "" Then Set ArcWeb$Helper$Dir <ArcWeb$Dir>.^.!WebHelper.AppDir
- |
- Set File$Type_FAF HTML
- Set Alias$@RunType_FAF Run <Arcweb$Dir>.!Run %%*0
- |
- Set ArcWeb$CFSIOptions -nomode -max64K
- IconSprites <ArcWeb$Dir>.!Sprites
- WimpSlot -min 288K -max 288K
- |
- | If you *really* do not want forms displayed ever, put -noforms before the -cache
- | If you *really* do not want extended URLs, put -noexturl before the -cache too
- | FORMs won't work without extended URLs. You almost certainly do not want to be
- | changing this.
- |
- | You can change the number after -cache to be the number of cache sections you will
- | have. This will make the cache size 75*number entries big. eg. 5*75 = 375 entry cache
- |
- | To make the cache consistency check run on startup, add -sane option
- |
- Run <ArcWeb$Dir>.!RunImage -cache 5 %*0