Home » Personal collection » Acorn hard disk » apps » web » !ArcWeb/!Run

!ArcWeb/!Run

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » web
Filename: !ArcWeb/!Run
Read OK:
File size: 103F bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
| !Run for ArcWeb
|
| Copyright (C) Stewart Brodie, 1994, 1995, 1996, 1997
|
|
| Have a look at the host computer system and determine if we can run on it,
| and if so, which extra modules we need.
|
RmEnsure UtilityModule 3.10 Error 0 ArcWeb requires RISC OS 3.10 or later
|
| Follow PRM (4:497) advice and prevent multiple running
|
If "<ArcWeb$Running>" = "yes" Then Error ArcWeb is already running
|
WimpSlot -min 800K
|
RmEnsure FilterManager 0.00 RMLoad System:Modules.FilterMgr
RmEnsure FilterManager 0.09 Error 0 You need at least Filter Manager 0.09 to run ArcWeb (see Problems Q21)
RMEnsure BorderUtils 0.05 RmEnsure WindowManager 3.17 RMLoad System:modules.BorderUtil
|
| Set up the paths now that we are sure we want to set the,
|
Set ArcWeb$Dir <Obey$Dir>
SetMacro ArcWeb$Path <ArcWeb$Dir>.,<ArcWeb$Dir>.Resources.,Resources:$.Resources.ArcWeb.
|
| Ensure that the ArcWeb module is present - this is now mandatory
RMEnsure ArcWeb 0.00 Run ArcWeb:ArcWeb
|
| Find out if we are in a read-only filing system
Run <Obey$Dir>.ROFS
|
|
| If the cache location is unknown (haven't seen !WebCache) AND we are in a read/write
| filing system, then use a subdirectory of ourselves as a last resort
|
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 AddSprites is present and disable it whilst we insert small_b28
| into the common sprite pool.
| Also load in the extra sprites from RISC OS 3.5 that we need for RISC OS 3.1x only
Set ArcWeb$AddSprites "1"
RMEnsure AddSprites 0.00 Set ArcWeb$AddSprites "0"
Set ArcWeb$ASSmall   <AddSprites$Small>
Set AddSprites$Small   On
RmEnsure UtilityModule 3.50 IconSprites ArcWeb:310.!Sprites
IconSprites <ArcWeb$Dir>.!Sprites
Set AddSprites$Small <ArcWeb$ASSmall>
If "<ArcWeb$AddSprites>" = "0" Then Unset AddSprites$Small
Unset ArcWeb$ASSmall
Unset ArcWeb$AddSprites
IconSprites <ArcWeb$Dir>.!Types
|
|
| 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
|
| The default hotlist is <ArcWeb$HotLists>.usrHotList, the directory is .Bookmarks on the end of that
|
If "<ArcWeb$HotLists>" = "" Then Set ArcWeb$HotLists <ArcWeb$CacheDir>
|
| The default history location is in the cache
|
If "<ArcWeb$History>" = "" Then Set ArcWeb$History <ArcWeb$CacheDir>.History
|
| Now set the user preferences file
|
If "<ArcWeb$Choices>" = "" Then Set ArcWeb$Choices <ArcWeb$CacheDir>.Choices
|
| Locate the directory containing the helpers (need to guess if we don't know)
|
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>.!RunURL -file %%*0
|
|
| This is a default setting. WILL BE OVERRIDDEN by the Choices file
Set ArcWeb$CFSIOptions -nomode -max160K
|
If "<ArcWeb$MimeTypes>" = "" Then Set ArcWeb$MimeTypes ArcWeb:mime/types
If "<ArcWeb$AuthFile>" = "" Then Set ArcWeb$AuthFile <ArcWeb$Dir>.Auth_DB
|
| Run the Version checker
Set ArcWebUpgrader$Dir <ArcWeb$Dir>.Upgrader
Set ArcWebUpgrader$Path <ArcWebUpgrader$Dir>.
WimpSlot -min 160K -max 160K
|Run <ArcWebUpgrader$Dir>.!RunImage
|
| Set up the URL launch protocol variables
|
Set Alias$URLOpen_HTTP Run <ArcWeb$Dir>.!RunURL %%*0
Set Alias$URLOpen_FTP Run <ArcWeb$Dir>.!RunURL %%*0
Set Alias$URLOpen_gopher Run <ArcWeb$Dir>.!RunURL %%*0
Set Alias$URLOpen_local Run <ArcWeb$Dir>.!RunURL %%*0
|
| Ensure enough memory is present, and claim the minimum we can survive with to start
| up, which will expand to the first value on a 8 section cache after initialisation
|
WimpSlot -min 800K -max 800K
|
Run <ArcWeb$Dir>.!RunImage %*0
00000000  7c 20 21 52 75 6e 20 66  6f 72 20 41 72 63 57 65  || !Run for ArcWe|
00000010  62 0a 7c 0a 7c 20 43 6f  70 79 72 69 67 68 74 20  |b.|.| Copyright |
00000020  28 43 29 20 53 74 65 77  61 72 74 20 42 72 6f 64  |(C) Stewart Brod|
00000030  69 65 2c 20 31 39 39 34  2c 20 31 39 39 35 2c 20  |ie, 1994, 1995, |
00000040  31 39 39 36 2c 20 31 39  39 37 0a 7c 0a 7c 0a 7c  |1996, 1997.|.|.||
00000050  20 48 61 76 65 20 61 20  6c 6f 6f 6b 20 61 74 20  | Have a look at |
00000060  74 68 65 20 68 6f 73 74  20 63 6f 6d 70 75 74 65  |the host compute|
00000070  72 20 73 79 73 74 65 6d  20 61 6e 64 20 64 65 74  |r system and det|
00000080  65 72 6d 69 6e 65 20 69  66 20 77 65 20 63 61 6e  |ermine if we can|
00000090  20 72 75 6e 20 6f 6e 20  69 74 2c 0a 7c 20 61 6e  | run on it,.| an|
000000a0  64 20 69 66 20 73 6f 2c  20 77 68 69 63 68 20 65  |d if so, which e|
000000b0  78 74 72 61 20 6d 6f 64  75 6c 65 73 20 77 65 20  |xtra modules we |
000000c0  6e 65 65 64 2e 0a 7c 0a  52 6d 45 6e 73 75 72 65  |need..|.RmEnsure|
000000d0  20 55 74 69 6c 69 74 79  4d 6f 64 75 6c 65 20 33  | UtilityModule 3|
000000e0  2e 31 30 20 45 72 72 6f  72 20 30 20 41 72 63 57  |.10 Error 0 ArcW|
000000f0  65 62 20 72 65 71 75 69  72 65 73 20 52 49 53 43  |eb requires RISC|
00000100  20 4f 53 20 33 2e 31 30  20 6f 72 20 6c 61 74 65  | OS 3.10 or late|
00000110  72 0a 7c 0a 7c 20 46 6f  6c 6c 6f 77 20 50 52 4d  |r.|.| Follow PRM|
00000120  20 28 34 3a 34 39 37 29  20 61 64 76 69 63 65 20  | (4:497) advice |
00000130  61 6e 64 20 70 72 65 76  65 6e 74 20 6d 75 6c 74  |and prevent mult|
00000140  69 70 6c 65 20 72 75 6e  6e 69 6e 67 0a 7c 0a 49  |iple running.|.I|
00000150  66 20 22 3c 41 72 63 57  65 62 24 52 75 6e 6e 69  |f "<ArcWeb$Runni|
00000160  6e 67 3e 22 20 3d 20 22  79 65 73 22 20 54 68 65  |ng>" = "yes" The|
00000170  6e 20 45 72 72 6f 72 20  41 72 63 57 65 62 20 69  |n Error ArcWeb i|
00000180  73 20 61 6c 72 65 61 64  79 20 72 75 6e 6e 69 6e  |s already runnin|
00000190  67 0a 7c 0a 57 69 6d 70  53 6c 6f 74 20 2d 6d 69  |g.|.WimpSlot -mi|
000001a0  6e 20 38 30 30 4b 0a 7c  0a 52 6d 45 6e 73 75 72  |n 800K.|.RmEnsur|
000001b0  65 20 46 69 6c 74 65 72  4d 61 6e 61 67 65 72 20  |e FilterManager |
000001c0  30 2e 30 30 20 52 4d 4c  6f 61 64 20 53 79 73 74  |0.00 RMLoad Syst|
000001d0  65 6d 3a 4d 6f 64 75 6c  65 73 2e 46 69 6c 74 65  |em:Modules.Filte|
000001e0  72 4d 67 72 0a 52 6d 45  6e 73 75 72 65 20 46 69  |rMgr.RmEnsure Fi|
000001f0  6c 74 65 72 4d 61 6e 61  67 65 72 20 30 2e 30 39  |lterManager 0.09|
00000200  20 45 72 72 6f 72 20 30  20 59 6f 75 20 6e 65 65  | Error 0 You nee|
00000210  64 20 61 74 20 6c 65 61  73 74 20 46 69 6c 74 65  |d at least Filte|
00000220  72 20 4d 61 6e 61 67 65  72 20 30 2e 30 39 20 74  |r Manager 0.09 t|
00000230  6f 20 72 75 6e 20 41 72  63 57 65 62 20 28 73 65  |o run ArcWeb (se|
00000240  65 20 50 72 6f 62 6c 65  6d 73 20 51 32 31 29 0a  |e Problems Q21).|
00000250  52 4d 45 6e 73 75 72 65  20 42 6f 72 64 65 72 55  |RMEnsure BorderU|
00000260  74 69 6c 73 20 30 2e 30  35 20 52 6d 45 6e 73 75  |tils 0.05 RmEnsu|
00000270  72 65 20 57 69 6e 64 6f  77 4d 61 6e 61 67 65 72  |re WindowManager|
00000280  20 33 2e 31 37 20 52 4d  4c 6f 61 64 20 53 79 73  | 3.17 RMLoad Sys|
00000290  74 65 6d 3a 6d 6f 64 75  6c 65 73 2e 42 6f 72 64  |tem:modules.Bord|
000002a0  65 72 55 74 69 6c 0a 7c  0a 7c 20 53 65 74 20 75  |erUtil.|.| Set u|
000002b0  70 20 74 68 65 20 70 61  74 68 73 20 6e 6f 77 20  |p the paths now |
000002c0  74 68 61 74 20 77 65 20  61 72 65 20 73 75 72 65  |that we are sure|
000002d0  20 77 65 20 77 61 6e 74  20 74 6f 20 73 65 74 20  | we want to set |
000002e0  74 68 65 2c 0a 7c 0a 53  65 74 20 41 72 63 57 65  |the,.|.Set ArcWe|
000002f0  62 24 44 69 72 20 3c 4f  62 65 79 24 44 69 72 3e  |b$Dir <Obey$Dir>|
00000300  0a 53 65 74 4d 61 63 72  6f 20 41 72 63 57 65 62  |.SetMacro ArcWeb|
00000310  24 50 61 74 68 20 3c 41  72 63 57 65 62 24 44 69  |$Path <ArcWeb$Di|
00000320  72 3e 2e 2c 3c 41 72 63  57 65 62 24 44 69 72 3e  |r>.,<ArcWeb$Dir>|
00000330  2e 52 65 73 6f 75 72 63  65 73 2e 2c 52 65 73 6f  |.Resources.,Reso|
00000340  75 72 63 65 73 3a 24 2e  52 65 73 6f 75 72 63 65  |urces:$.Resource|
00000350  73 2e 41 72 63 57 65 62  2e 0a 7c 0a 7c 20 45 6e  |s.ArcWeb..|.| En|
00000360  73 75 72 65 20 74 68 61  74 20 74 68 65 20 41 72  |sure that the Ar|
00000370  63 57 65 62 20 6d 6f 64  75 6c 65 20 69 73 20 70  |cWeb module is p|
00000380  72 65 73 65 6e 74 20 2d  20 74 68 69 73 20 69 73  |resent - this is|
00000390  20 6e 6f 77 20 6d 61 6e  64 61 74 6f 72 79 0a 52  | now mandatory.R|
000003a0  4d 45 6e 73 75 72 65 20  41 72 63 57 65 62 20 30  |MEnsure ArcWeb 0|
000003b0  2e 30 30 20 52 75 6e 20  41 72 63 57 65 62 3a 41  |.00 Run ArcWeb:A|
000003c0  72 63 57 65 62 0a 7c 0a  7c 20 46 69 6e 64 20 6f  |rcWeb.|.| Find o|
000003d0  75 74 20 69 66 20 77 65  20 61 72 65 20 69 6e 20  |ut if we are in |
000003e0  61 20 72 65 61 64 2d 6f  6e 6c 79 20 66 69 6c 69  |a read-only fili|
000003f0  6e 67 20 73 79 73 74 65  6d 0a 52 75 6e 20 3c 4f  |ng system.Run <O|
00000400  62 65 79 24 44 69 72 3e  2e 52 4f 46 53 0a 7c 0a  |bey$Dir>.ROFS.|.|
00000410  7c 0a 7c 20 49 66 20 74  68 65 20 63 61 63 68 65  ||.| If the cache|
00000420  20 6c 6f 63 61 74 69 6f  6e 20 69 73 20 75 6e 6b  | location is unk|
00000430  6e 6f 77 6e 20 28 68 61  76 65 6e 27 74 20 73 65  |nown (haven't se|
00000440  65 6e 20 21 57 65 62 43  61 63 68 65 29 20 41 4e  |en !WebCache) AN|
00000450  44 20 77 65 20 61 72 65  20 69 6e 20 61 20 72 65  |D we are in a re|
00000460  61 64 2f 77 72 69 74 65  0a 7c 20 66 69 6c 69 6e  |ad/write.| filin|
00000470  67 20 73 79 73 74 65 6d  2c 20 74 68 65 6e 20 75  |g system, then u|
00000480  73 65 20 61 20 73 75 62  64 69 72 65 63 74 6f 72  |se a subdirector|
00000490  79 20 6f 66 20 6f 75 72  73 65 6c 76 65 73 20 61  |y of ourselves a|
000004a0  73 20 61 20 6c 61 73 74  20 72 65 73 6f 72 74 0a  |s a last resort.|
000004b0  7c 0a 49 66 20 22 3c 41  72 63 57 65 62 24 43 61  ||.If "<ArcWeb$Ca|
000004c0  63 68 65 44 69 72 3e 22  20 3d 20 22 22 20 54 68  |cheDir>" = "" Th|
000004d0  65 6e 20 49 66 20 22 3c  41 72 63 57 65 62 24 52  |en If "<ArcWeb$R|
000004e0  4f 46 53 5f 53 74 61 74  75 73 3e 22 20 3d 20 22  |OFS_Status>" = "|
000004f0  6e 6f 22 20 54 68 65 6e  20 53 65 74 20 41 72 63  |no" Then Set Arc|
00000500  57 65 62 24 43 61 63 68  65 44 69 72 20 3c 41 72  |Web$CacheDir <Ar|
00000510  63 57 65 62 24 44 69 72  3e 2e 57 57 57 63 61 63  |cWeb$Dir>.WWWcac|
00000520  68 65 0a 49 66 20 22 3c  41 72 63 57 65 62 24 43  |he.If "<ArcWeb$C|
00000530  61 63 68 65 44 69 72 3e  22 20 3d 20 22 22 20 54  |acheDir>" = "" T|
00000540  68 65 6e 20 49 66 20 22  3c 57 69 6d 70 24 53 63  |hen If "<Wimp$Sc|
00000550  72 61 70 44 69 72 3e 22  20 3c 3e 20 22 22 20 54  |rapDir>" <> "" T|
00000560  68 65 6e 20 53 65 74 20  41 72 63 57 65 62 24 43  |hen Set ArcWeb$C|
00000570  61 63 68 65 44 69 72 20  3c 57 69 6d 70 24 53 63  |acheDir <Wimp$Sc|
00000580  72 61 70 44 69 72 3e 2e  57 57 57 43 61 63 68 65  |rapDir>.WWWCache|
00000590  0a 49 66 20 22 3c 41 72  63 57 65 62 24 43 61 63  |.If "<ArcWeb$Cac|
000005a0  68 65 44 69 72 3e 22 20  3d 20 22 22 20 54 68 65  |heDir>" = "" The|
000005b0  6e 20 45 72 72 6f 72 20  59 6f 75 20 6d 75 73 74  |n Error You must|
000005c0  20 66 69 6e 64 20 61 20  21 57 65 62 43 61 63 68  | find a !WebCach|
000005d0  65 20 69 6e 20 61 20 72  65 61 64 2f 77 72 69 74  |e in a read/writ|
000005e0  65 20 66 69 6c 69 6e 67  20 73 79 73 74 65 6d 20  |e filing system |
000005f0  62 65 66 6f 72 65 20 72  75 6e 6e 69 6e 67 20 21  |before running !|
00000600  41 72 63 57 65 62 0a 55  6e 73 65 74 20 41 72 63  |ArcWeb.Unset Arc|
00000610  57 65 62 24 52 4f 46 53  5f 53 74 61 74 75 73 0a  |Web$ROFS_Status.|
00000620  7c 0a 7c 0a 7c 20 44 65  74 65 72 6d 69 6e 65 20  ||.|.| Determine |
00000630  77 68 65 74 68 65 72 20  41 64 64 53 70 72 69 74  |whether AddSprit|
00000640  65 73 20 69 73 20 70 72  65 73 65 6e 74 20 61 6e  |es is present an|
00000650  64 20 64 69 73 61 62 6c  65 20 69 74 20 77 68 69  |d disable it whi|
00000660  6c 73 74 20 77 65 20 69  6e 73 65 72 74 20 73 6d  |lst we insert sm|
00000670  61 6c 6c 5f 62 32 38 0a  7c 20 69 6e 74 6f 20 74  |all_b28.| into t|
00000680  68 65 20 63 6f 6d 6d 6f  6e 20 73 70 72 69 74 65  |he common sprite|
00000690  20 70 6f 6f 6c 2e 0a 7c  20 41 6c 73 6f 20 6c 6f  | pool..| Also lo|
000006a0  61 64 20 69 6e 20 74 68  65 20 65 78 74 72 61 20  |ad in the extra |
000006b0  73 70 72 69 74 65 73 20  66 72 6f 6d 20 52 49 53  |sprites from RIS|
000006c0  43 20 4f 53 20 33 2e 35  20 74 68 61 74 20 77 65  |C OS 3.5 that we|
000006d0  20 6e 65 65 64 20 66 6f  72 20 52 49 53 43 20 4f  | need for RISC O|
000006e0  53 20 33 2e 31 78 20 6f  6e 6c 79 0a 53 65 74 20  |S 3.1x only.Set |
000006f0  41 72 63 57 65 62 24 41  64 64 53 70 72 69 74 65  |ArcWeb$AddSprite|
00000700  73 20 22 31 22 0a 52 4d  45 6e 73 75 72 65 20 41  |s "1".RMEnsure A|
00000710  64 64 53 70 72 69 74 65  73 20 30 2e 30 30 20 53  |ddSprites 0.00 S|
00000720  65 74 20 41 72 63 57 65  62 24 41 64 64 53 70 72  |et ArcWeb$AddSpr|
00000730  69 74 65 73 20 22 30 22  0a 53 65 74 20 41 72 63  |ites "0".Set Arc|
00000740  57 65 62 24 41 53 53 6d  61 6c 6c 20 20 20 3c 41  |Web$ASSmall   <A|
00000750  64 64 53 70 72 69 74 65  73 24 53 6d 61 6c 6c 3e  |ddSprites$Small>|
00000760  0a 53 65 74 20 41 64 64  53 70 72 69 74 65 73 24  |.Set AddSprites$|
00000770  53 6d 61 6c 6c 20 20 20  4f 6e 0a 52 6d 45 6e 73  |Small   On.RmEns|
00000780  75 72 65 20 55 74 69 6c  69 74 79 4d 6f 64 75 6c  |ure UtilityModul|
00000790  65 20 33 2e 35 30 20 49  63 6f 6e 53 70 72 69 74  |e 3.50 IconSprit|
000007a0  65 73 20 41 72 63 57 65  62 3a 33 31 30 2e 21 53  |es ArcWeb:310.!S|
000007b0  70 72 69 74 65 73 0a 49  63 6f 6e 53 70 72 69 74  |prites.IconSprit|
000007c0  65 73 20 3c 41 72 63 57  65 62 24 44 69 72 3e 2e  |es <ArcWeb$Dir>.|
000007d0  21 53 70 72 69 74 65 73  0a 53 65 74 20 41 64 64  |!Sprites.Set Add|
000007e0  53 70 72 69 74 65 73 24  53 6d 61 6c 6c 20 3c 41  |Sprites$Small <A|
000007f0  72 63 57 65 62 24 41 53  53 6d 61 6c 6c 3e 0a 49  |rcWeb$ASSmall>.I|
00000800  66 20 22 3c 41 72 63 57  65 62 24 41 64 64 53 70  |f "<ArcWeb$AddSp|
00000810  72 69 74 65 73 3e 22 20  3d 20 22 30 22 20 54 68  |rites>" = "0" Th|
00000820  65 6e 20 55 6e 73 65 74  20 41 64 64 53 70 72 69  |en Unset AddSpri|
00000830  74 65 73 24 53 6d 61 6c  6c 0a 55 6e 73 65 74 20  |tes$Small.Unset |
00000840  41 72 63 57 65 62 24 41  53 53 6d 61 6c 6c 0a 55  |ArcWeb$ASSmall.U|
00000850  6e 73 65 74 20 41 72 63  57 65 62 24 41 64 64 53  |nset ArcWeb$AddS|
00000860  70 72 69 74 65 73 0a 49  63 6f 6e 53 70 72 69 74  |prites.IconSprit|
00000870  65 73 20 3c 41 72 63 57  65 62 24 44 69 72 3e 2e  |es <ArcWeb$Dir>.|
00000880  21 54 79 70 65 73 0a 7c  0a 7c 0a 7c 20 4e 6f 74  |!Types.|.|.| Not|
00000890  65 20 74 68 61 74 20 74  68 69 73 20 69 73 20 61  |e that this is a|
000008a0  20 73 70 65 63 69 61 6c  20 73 79 6e 74 61 78 20  | special syntax |
000008b0  66 6f 72 20 41 72 63 57  65 62 24 48 6f 6d 65 20  |for ArcWeb$Home |
000008c0  4f 4e 4c 59 2e 20 20 4f  6e 20 73 74 61 72 74 75  |ONLY.  On startu|
000008d0  70 2c 20 41 72 63 57 65  62 0a 7c 20 61 75 74 6f  |p, ArcWeb.| auto|
000008e0  6d 61 74 69 63 61 6c 6c  79 20 63 6f 6e 76 65 72  |matically conver|
000008f0  74 73 20 74 68 69 73 20  69 6e 74 6f 20 61 20 76  |ts this into a v|
00000900  61 6c 69 64 20 6c 6f 63  61 6c 3a 20 55 52 4c 2e  |alid local: URL.|
00000910  0a 7c 20 54 68 65 20 6c  6f 63 61 6c 3a 2f 2f 72  |.| The local://r|
00000920  69 73 63 6f 73 2d 66 75  6c 6c 2d 70 61 74 68 20  |iscos-full-path |
00000930  73 79 6e 74 61 78 20 69  73 20 61 6c 6c 6f 77 65  |syntax is allowe|
00000940  64 20 74 6f 20 61 6c 6c  6f 77 20 79 6f 75 20 74  |d to allow you t|
00000950  6f 20 75 73 65 0a 7c 20  76 61 72 69 61 62 6c 65  |o use.| variable|
00000960  73 20 73 75 63 68 20 61  73 20 3c 61 72 63 77 65  |s such as <arcwe|
00000970  62 24 64 69 72 3e 20 69  6e 20 74 68 65 20 41 72  |b$dir> in the Ar|
00000980  63 57 65 62 24 48 6f 6d  65 20 76 61 72 69 61 62  |cWeb$Home variab|
00000990  6c 65 0a 7c 0a 49 66 20  22 3c 41 72 63 57 65 62  |le.|.If "<ArcWeb|
000009a0  24 48 6f 6d 65 3e 22 20  3d 20 22 22 20 54 68 65  |$Home>" = "" The|
000009b0  6e 20 53 65 74 20 41 72  63 57 65 62 24 48 6f 6d  |n Set ArcWeb$Hom|
000009c0  65 20 6c 6f 63 61 6c 3a  2f 2f 3c 41 72 63 57 65  |e local://<ArcWe|
000009d0  62 24 44 69 72 3e 2e 50  75 62 6c 69 63 48 54 4d  |b$Dir>.PublicHTM|
000009e0  4c 2e 57 65 6c 63 6f 6d  65 0a 7c 0a 7c 20 54 68  |L.Welcome.|.| Th|
000009f0  65 20 64 65 66 61 75 6c  74 20 68 6f 74 6c 69 73  |e default hotlis|
00000a00  74 20 69 73 20 3c 41 72  63 57 65 62 24 48 6f 74  |t is <ArcWeb$Hot|
00000a10  4c 69 73 74 73 3e 2e 75  73 72 48 6f 74 4c 69 73  |Lists>.usrHotLis|
00000a20  74 2c 20 74 68 65 20 64  69 72 65 63 74 6f 72 79  |t, the directory|
00000a30  20 69 73 20 2e 42 6f 6f  6b 6d 61 72 6b 73 20 6f  | is .Bookmarks o|
00000a40  6e 20 74 68 65 20 65 6e  64 20 6f 66 20 74 68 61  |n the end of tha|
00000a50  74 0a 7c 0a 49 66 20 22  3c 41 72 63 57 65 62 24  |t.|.If "<ArcWeb$|
00000a60  48 6f 74 4c 69 73 74 73  3e 22 20 3d 20 22 22 20  |HotLists>" = "" |
00000a70  54 68 65 6e 20 53 65 74  20 41 72 63 57 65 62 24  |Then Set ArcWeb$|
00000a80  48 6f 74 4c 69 73 74 73  20 3c 41 72 63 57 65 62  |HotLists <ArcWeb|
00000a90  24 43 61 63 68 65 44 69  72 3e 0a 7c 0a 7c 20 54  |$CacheDir>.|.| T|
00000aa0  68 65 20 64 65 66 61 75  6c 74 20 68 69 73 74 6f  |he default histo|
00000ab0  72 79 20 6c 6f 63 61 74  69 6f 6e 20 69 73 20 69  |ry location is i|
00000ac0  6e 20 74 68 65 20 63 61  63 68 65 0a 7c 0a 49 66  |n the cache.|.If|
00000ad0  20 22 3c 41 72 63 57 65  62 24 48 69 73 74 6f 72  | "<ArcWeb$Histor|
00000ae0  79 3e 22 20 3d 20 22 22  20 54 68 65 6e 20 53 65  |y>" = "" Then Se|
00000af0  74 20 41 72 63 57 65 62  24 48 69 73 74 6f 72 79  |t ArcWeb$History|
00000b00  20 3c 41 72 63 57 65 62  24 43 61 63 68 65 44 69  | <ArcWeb$CacheDi|
00000b10  72 3e 2e 48 69 73 74 6f  72 79 0a 7c 0a 7c 20 4e  |r>.History.|.| N|
00000b20  6f 77 20 73 65 74 20 74  68 65 20 75 73 65 72 20  |ow set the user |
00000b30  70 72 65 66 65 72 65 6e  63 65 73 20 66 69 6c 65  |preferences file|
00000b40  0a 7c 0a 49 66 20 22 3c  41 72 63 57 65 62 24 43  |.|.If "<ArcWeb$C|
00000b50  68 6f 69 63 65 73 3e 22  20 3d 20 22 22 20 54 68  |hoices>" = "" Th|
00000b60  65 6e 20 53 65 74 20 41  72 63 57 65 62 24 43 68  |en Set ArcWeb$Ch|
00000b70  6f 69 63 65 73 20 3c 41  72 63 57 65 62 24 43 61  |oices <ArcWeb$Ca|
00000b80  63 68 65 44 69 72 3e 2e  43 68 6f 69 63 65 73 0a  |cheDir>.Choices.|
00000b90  7c 0a 7c 20 4c 6f 63 61  74 65 20 74 68 65 20 64  ||.| Locate the d|
00000ba0  69 72 65 63 74 6f 72 79  20 63 6f 6e 74 61 69 6e  |irectory contain|
00000bb0  69 6e 67 20 74 68 65 20  68 65 6c 70 65 72 73 20  |ing the helpers |
00000bc0  28 6e 65 65 64 20 74 6f  20 67 75 65 73 73 20 69  |(need to guess i|
00000bd0  66 20 77 65 20 64 6f 6e  27 74 20 6b 6e 6f 77 29  |f we don't know)|
00000be0  0a 7c 0a 49 66 20 22 3c  41 72 63 57 65 62 24 48  |.|.If "<ArcWeb$H|
00000bf0  65 6c 70 65 72 24 44 69  72 3e 22 20 3d 20 22 22  |elper$Dir>" = ""|
00000c00  20 54 68 65 6e 20 53 65  74 20 41 72 63 57 65 62  | Then Set ArcWeb|
00000c10  24 48 65 6c 70 65 72 24  44 69 72 20 3c 41 72 63  |$Helper$Dir <Arc|
00000c20  57 65 62 24 44 69 72 3e  2e 5e 2e 21 57 65 62 48  |Web$Dir>.^.!WebH|
00000c30  65 6c 70 65 72 2e 41 70  70 44 69 72 0a 7c 0a 53  |elper.AppDir.|.S|
00000c40  65 74 20 46 69 6c 65 24  54 79 70 65 5f 46 41 46  |et File$Type_FAF|
00000c50  20 48 54 4d 4c 0a 53 65  74 20 41 6c 69 61 73 24  | HTML.Set Alias$|
00000c60  40 52 75 6e 54 79 70 65  5f 46 41 46 20 52 75 6e  |@RunType_FAF Run|
00000c70  20 3c 41 72 63 77 65 62  24 44 69 72 3e 2e 21 52  | <Arcweb$Dir>.!R|
00000c80  75 6e 55 52 4c 20 2d 66  69 6c 65 20 25 25 2a 30  |unURL -file %%*0|
00000c90  0a 7c 0a 7c 0a 7c 20 54  68 69 73 20 69 73 20 61  |.|.|.| This is a|
00000ca0  20 64 65 66 61 75 6c 74  20 73 65 74 74 69 6e 67  | default setting|
00000cb0  2e 20 57 49 4c 4c 20 42  45 20 4f 56 45 52 52 49  |. WILL BE OVERRI|
00000cc0  44 44 45 4e 20 62 79 20  74 68 65 20 43 68 6f 69  |DDEN by the Choi|
00000cd0  63 65 73 20 66 69 6c 65  0a 53 65 74 20 41 72 63  |ces file.Set Arc|
00000ce0  57 65 62 24 43 46 53 49  4f 70 74 69 6f 6e 73 20  |Web$CFSIOptions |
00000cf0  2d 6e 6f 6d 6f 64 65 20  2d 6d 61 78 31 36 30 4b  |-nomode -max160K|
00000d00  0a 7c 0a 49 66 20 22 3c  41 72 63 57 65 62 24 4d  |.|.If "<ArcWeb$M|
00000d10  69 6d 65 54 79 70 65 73  3e 22 20 3d 20 22 22 20  |imeTypes>" = "" |
00000d20  54 68 65 6e 20 53 65 74  20 41 72 63 57 65 62 24  |Then Set ArcWeb$|
00000d30  4d 69 6d 65 54 79 70 65  73 20 41 72 63 57 65 62  |MimeTypes ArcWeb|
00000d40  3a 6d 69 6d 65 2f 74 79  70 65 73 0a 49 66 20 22  |:mime/types.If "|
00000d50  3c 41 72 63 57 65 62 24  41 75 74 68 46 69 6c 65  |<ArcWeb$AuthFile|
00000d60  3e 22 20 3d 20 22 22 20  54 68 65 6e 20 53 65 74  |>" = "" Then Set|
00000d70  20 41 72 63 57 65 62 24  41 75 74 68 46 69 6c 65  | ArcWeb$AuthFile|
00000d80  20 3c 41 72 63 57 65 62  24 44 69 72 3e 2e 41 75  | <ArcWeb$Dir>.Au|
00000d90  74 68 5f 44 42 0a 7c 0a  7c 20 52 75 6e 20 74 68  |th_DB.|.| Run th|
00000da0  65 20 56 65 72 73 69 6f  6e 20 63 68 65 63 6b 65  |e Version checke|
00000db0  72 0a 53 65 74 20 41 72  63 57 65 62 55 70 67 72  |r.Set ArcWebUpgr|
00000dc0  61 64 65 72 24 44 69 72  20 3c 41 72 63 57 65 62  |ader$Dir <ArcWeb|
00000dd0  24 44 69 72 3e 2e 55 70  67 72 61 64 65 72 0a 53  |$Dir>.Upgrader.S|
00000de0  65 74 20 41 72 63 57 65  62 55 70 67 72 61 64 65  |et ArcWebUpgrade|
00000df0  72 24 50 61 74 68 20 3c  41 72 63 57 65 62 55 70  |r$Path <ArcWebUp|
00000e00  67 72 61 64 65 72 24 44  69 72 3e 2e 0a 57 69 6d  |grader$Dir>..Wim|
00000e10  70 53 6c 6f 74 20 2d 6d  69 6e 20 31 36 30 4b 20  |pSlot -min 160K |
00000e20  2d 6d 61 78 20 31 36 30  4b 0a 7c 52 75 6e 20 3c  |-max 160K.|Run <|
00000e30  41 72 63 57 65 62 55 70  67 72 61 64 65 72 24 44  |ArcWebUpgrader$D|
00000e40  69 72 3e 2e 21 52 75 6e  49 6d 61 67 65 0a 7c 0a  |ir>.!RunImage.|.|
00000e50  7c 20 53 65 74 20 75 70  20 74 68 65 20 55 52 4c  || Set up the URL|
00000e60  20 6c 61 75 6e 63 68 20  70 72 6f 74 6f 63 6f 6c  | launch protocol|
00000e70  20 76 61 72 69 61 62 6c  65 73 0a 7c 0a 53 65 74  | variables.|.Set|
00000e80  20 41 6c 69 61 73 24 55  52 4c 4f 70 65 6e 5f 48  | Alias$URLOpen_H|
00000e90  54 54 50 20 52 75 6e 20  3c 41 72 63 57 65 62 24  |TTP Run <ArcWeb$|
00000ea0  44 69 72 3e 2e 21 52 75  6e 55 52 4c 20 25 25 2a  |Dir>.!RunURL %%*|
00000eb0  30 0a 53 65 74 20 41 6c  69 61 73 24 55 52 4c 4f  |0.Set Alias$URLO|
00000ec0  70 65 6e 5f 46 54 50 20  52 75 6e 20 3c 41 72 63  |pen_FTP Run <Arc|
00000ed0  57 65 62 24 44 69 72 3e  2e 21 52 75 6e 55 52 4c  |Web$Dir>.!RunURL|
00000ee0  20 25 25 2a 30 0a 53 65  74 20 41 6c 69 61 73 24  | %%*0.Set Alias$|
00000ef0  55 52 4c 4f 70 65 6e 5f  67 6f 70 68 65 72 20 52  |URLOpen_gopher R|
00000f00  75 6e 20 3c 41 72 63 57  65 62 24 44 69 72 3e 2e  |un <ArcWeb$Dir>.|
00000f10  21 52 75 6e 55 52 4c 20  25 25 2a 30 0a 53 65 74  |!RunURL %%*0.Set|
00000f20  20 41 6c 69 61 73 24 55  52 4c 4f 70 65 6e 5f 6c  | Alias$URLOpen_l|
00000f30  6f 63 61 6c 20 52 75 6e  20 3c 41 72 63 57 65 62  |ocal Run <ArcWeb|
00000f40  24 44 69 72 3e 2e 21 52  75 6e 55 52 4c 20 25 25  |$Dir>.!RunURL %%|
00000f50  2a 30 0a 7c 0a 7c 20 45  6e 73 75 72 65 20 65 6e  |*0.|.| Ensure en|
00000f60  6f 75 67 68 20 6d 65 6d  6f 72 79 20 69 73 20 70  |ough memory is p|
00000f70  72 65 73 65 6e 74 2c 20  61 6e 64 20 63 6c 61 69  |resent, and clai|
00000f80  6d 20 74 68 65 20 6d 69  6e 69 6d 75 6d 20 77 65  |m the minimum we|
00000f90  20 63 61 6e 20 73 75 72  76 69 76 65 20 77 69 74  | can survive wit|
00000fa0  68 20 74 6f 20 73 74 61  72 74 0a 7c 20 75 70 2c  |h to start.| up,|
00000fb0  20 77 68 69 63 68 20 77  69 6c 6c 20 65 78 70 61  | which will expa|
00000fc0  6e 64 20 74 6f 20 74 68  65 20 66 69 72 73 74 20  |nd to the first |
00000fd0  76 61 6c 75 65 20 6f 6e  20 61 20 38 20 73 65 63  |value on a 8 sec|
00000fe0  74 69 6f 6e 20 63 61 63  68 65 20 61 66 74 65 72  |tion cache after|
00000ff0  20 69 6e 69 74 69 61 6c  69 73 61 74 69 6f 6e 0a  | initialisation.|
00001000  7c 0a 57 69 6d 70 53 6c  6f 74 20 2d 6d 69 6e 20  ||.WimpSlot -min |
00001010  38 30 30 4b 20 2d 6d 61  78 20 38 30 30 4b 0a 7c  |800K -max 800K.||
00001020  0a 52 75 6e 20 3c 41 72  63 57 65 62 24 44 69 72  |.Run <ArcWeb$Dir|
00001030  3e 2e 21 52 75 6e 49 6d  61 67 65 20 25 2a 30     |>.!RunImage %*0|
0000103f