home *** CD-ROM | disk | FTP | other *** search
/ RISC DISC 2 / RISC_DISC_2.iso / the_web / browsers / arcweb / _arcweb / _run < prev    next >
Encoding:
Text File  |  1995-09-18  |  2.4 KB  |  61 lines

  1. | !Run for ArcWeb
  2. |
  3. | Copyright (C) Stewart Brodie, 1994, 1995
  4. |
  5. |
  6. | Ensure RISC OS 3.1 or later; DrawFile 1.30 or later
  7. |
  8. RmEnsure UtilityModule 3.10 Error ArcWeb requires RISC OS 3.10 or later
  9. RmEnsure DrawFile 1.30 RMLoad System:Modules.DrawFile
  10. RmEnsure DrawFile 1.30 Error You need at least DrawFile 1.30 to run ArcWeb (see Problems file)
  11. |
  12. | Follow PRM (4:497) advice and prevent multiple running
  13. |
  14. If "<ArcWeb$Running>" = "yes" Then Error ArcWeb is already running
  15. |
  16. Set ArcWeb$Dir <Obey$Dir>
  17. <Obey$Dir>.ROFS
  18. If "<ArcWeb$CacheDir>" = "" Then If "<ArcWeb$ROFS_Status>" = "no" Then Set ArcWeb$CacheDir <ArcWeb$Dir>.WWWcache
  19. If "<ArcWeb$CacheDir>" = "" Then If "<Wimp$ScrapDir>" <> "" Then Set ArcWeb$CacheDir <Wimp$ScrapDir>.WWWCache
  20. If "<ArcWeb$CacheDir>" = "" Then Error You must find a !WebCache in a read/write filing system before running !ArcWeb
  21. Unset ArcWeb$ROFS_Status
  22. |
  23. | Determine whether we are using KA9Q or Acorn TCP/IP
  24. | Detect this by lack of FreeNet or Internet module
  25. |
  26. UnSet ArcWeb$usingKA9Q
  27. RMEnsure Internet 0.00 Set ArcWeb$UsingKA9Q yes
  28. |
  29. | Note that this is a special syntax for ArcWeb$Home ONLY.  On startup, ArcWeb
  30. | automatically converts this into a valid local: URL.
  31. | The local://riscos-full-path syntax is allowed to allow you to use
  32. | variables such as <arcweb$dir> in the ArcWeb$Home variable
  33. |
  34. If "<ArcWeb$Home>" = "" Then Set ArcWeb$Home local://<ArcWeb$Dir>.PublicHTML.Welcome
  35. |
  36. | Now set the user preferences file
  37. |
  38. If "<ArcWeb$Choices>" = "" Then Set ArcWeb$Choices <ArcWeb$CacheDir>.Choices
  39. |
  40. | Locate the directory containing the helpers
  41. |
  42. If "<ArcWeb$Helper$Dir>" = "" Then Set ArcWeb$Helper$Dir <ArcWeb$Dir>.^.!WebHelper.AppDir
  43. |
  44. Set File$Type_FAF HTML
  45. Set Alias$@RunType_FAF Run <Arcweb$Dir>.!Run %%*0
  46. |
  47. Set ArcWeb$CFSIOptions -nomode -max64K
  48. IconSprites <ArcWeb$Dir>.!Sprites
  49. WimpSlot -min 288K -max 288K
  50. |
  51. | If you *really* do not want forms displayed ever, put -noforms before the -cache
  52. | If you *really* do not want extended URLs, put -noexturl before the -cache too
  53. | FORMs won't work without extended URLs.  You almost certainly do not want to be
  54. | changing this.
  55. |
  56. | You can change the number after -cache to be the number of cache sections you will
  57. | have.  This will make the cache size 75*number entries big. eg. 5*75 = 375 entry cache
  58. |
  59. | To make the cache consistency check run on startup, add -sane option
  60. |
  61. Run <ArcWeb$Dir>.!RunImage -cache 5 %*0