home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-27 | 2.5 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was not able to be converted.
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| file
| data
| default
| |
100%
| gt2
| HTML (Hyper Text Markup Language) Datei
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 71 27 63 6c 61 73 73 20 |........|q'class |
|00000010| 57 65 62 52 65 73 70 6f | 6e 73 65 20 65 78 70 61 |WebRespo|nse expa|
|00000020| 6e 64 73 20 4f 62 6a 65 | 63 74 0d 0a 09 6e 61 74 |nds Obje|ct...nat|
|00000030| 69 76 65 0d 0a 09 6e 6f | 65 78 70 6f 72 74 3b 0d |ive...no|export;.|
|00000040| 0a 0d 0a 76 61 72 20 70 | 72 69 76 61 74 65 20 6e |...var p|rivate n|
|00000050| 61 74 69 76 65 20 63 6f | 6e 73 74 20 69 6e 74 20 |ative co|nst int |
|00000060| 52 65 70 6c 61 63 65 6d | 65 6e 74 4d 61 70 5b 35 |Replacem|entMap[5|
|00000070| 5d 3b 09 2f 2f 20 54 4d | 61 70 3c 46 53 74 72 69 |];.// TM|ap<FStri|
|00000080| 6e 67 2c 20 46 53 74 72 | 69 6e 67 3e 21 0d 0a 76 |ng, FStr|ing>!..v|
|00000090| 61 72 20 63 6f 6e 73 74 | 20 63 6f 6e 66 69 67 20 |ar const| config |
|000000a0| 73 74 72 69 6e 67 20 49 | 6e 63 6c 75 64 65 50 61 |string I|ncludePa|
|000000b0| 74 68 3b 0d 0a 76 61 72 | 20 57 65 62 43 6f 6e 6e |th;..var| WebConn|
|000000c0| 65 63 74 69 6f 6e 20 43 | 6f 6e 6e 65 63 74 69 6f |ection C|onnectio|
|000000d0| 6e 3b 0d 0a 76 61 72 20 | 62 6f 6f 6c 20 62 53 65 |n;..var |bool bSe|
|000000e0| 6e 74 54 65 78 74 3b 20 | 2f 2f 20 75 73 65 64 20 |ntText; |// used |
|000000f0| 74 6f 20 77 61 72 6e 20 | 68 65 61 64 65 72 73 20 |to warn |headers |
|00000100| 61 6c 72 65 61 64 79 20 | 73 65 6e 74 0d 0a 76 61 |already |sent..va|
|00000110| 72 20 62 6f 6f 6c 20 62 | 53 65 6e 74 52 65 73 70 |r bool b|SentResp|
|00000120| 6f 6e 73 65 3b 0d 0a 0d | 0a 2f 2f 20 75 68 74 6d |onse;...|.// uhtm|
|00000130| 20 69 6e 63 6c 75 64 69 | 6e 67 0d 0a 6e 61 74 69 | includi|ng..nati|
|00000140| 76 65 20 66 69 6e 61 6c | 20 66 75 6e 63 74 69 6f |ve final| functio|
|00000150| 6e 20 53 75 62 73 74 28 | 73 74 72 69 6e 67 20 56 |n Subst(|string V|
|00000160| 61 72 69 61 62 6c 65 2c | 20 73 74 72 69 6e 67 20 |ariable,| string |
|00000170| 56 61 6c 75 65 2c 20 6f | 70 74 69 6f 6e 61 6c 20 |Value, o|ptional |
|00000180| 62 6f 6f 6c 20 62 43 6c | 65 61 72 29 3b 0d 0a 6e |bool bCl|ear);..n|
|00000190| 61 74 69 76 65 20 66 69 | 6e 61 6c 20 66 75 6e 63 |ative fi|nal func|
|000001a0| 74 69 6f 6e 20 43 6c 65 | 61 72 53 75 62 73 74 28 |tion Cle|arSubst(|
|000001b0| 29 3b 0d 0a 6e 61 74 69 | 76 65 20 66 69 6e 61 6c |);..nati|ve final|
|000001c0| 20 66 75 6e 63 74 69 6f | 6e 20 49 6e 63 6c 75 64 | functio|n Includ|
|000001d0| 65 55 48 54 4d 28 73 74 | 72 69 6e 67 20 46 69 6c |eUHTM(st|ring Fil|
|000001e0| 65 6e 61 6d 65 29 3b 0d | 0a 6e 61 74 69 76 65 20 |ename);.|.native |
|000001f0| 66 69 6e 61 6c 20 66 75 | 6e 63 74 69 6f 6e 20 49 |final fu|nction I|
|00000200| 6e 63 6c 75 64 65 42 69 | 6e 61 72 79 46 69 6c 65 |ncludeBi|naryFile|
|00000210| 28 73 74 72 69 6e 67 20 | 46 69 6c 65 6e 61 6d 65 |(string |Filename|
|00000220| 29 3b 0d 0a 0d 0a 65 76 | 65 6e 74 20 53 65 6e 64 |);....ev|ent Send|
|00000230| 54 65 78 74 28 73 74 72 | 69 6e 67 20 54 65 78 74 |Text(str|ing Text|
|00000240| 2c 20 6f 70 74 69 6f 6e | 61 6c 20 62 6f 6f 6c 20 |, option|al bool |
|00000250| 62 4e 6f 43 52 4c 46 29 | 0d 0a 7b 0d 0a 09 69 66 |bNoCRLF)|..{...if|
|00000260| 28 21 62 53 65 6e 74 54 | 65 78 74 29 0d 0a 09 7b |(!bSentT|ext)...{|
|00000270| 0d 0a 09 09 53 65 6e 64 | 53 74 61 6e 64 61 72 64 |....Send|Standard|
|00000280| 48 65 61 64 65 72 73 28 | 29 3b 0d 0a 09 09 62 53 |Headers(|);....bS|
|00000290| 65 6e 74 54 65 78 74 20 | 3d 20 54 72 75 65 3b 0d |entText |= True;.|
|000002a0| 0a 09 7d 09 0d 0a 0d 0a | 09 69 66 28 62 4e 6f 43 |..}.....|.if(bNoC|
|000002b0| 52 4c 46 29 0d 0a 09 09 | 43 6f 6e 6e 65 63 74 69 |RLF)....|Connecti|
|000002c0| 6f 6e 2e 53 65 6e 64 54 | 65 78 74 28 54 65 78 74 |on.SendT|ext(Text|
|000002d0| 29 3b 0d 0a 09 65 6c 73 | 65 0d 0a 09 09 43 6f 6e |);...els|e....Con|
|000002e0| 6e 65 63 74 69 6f 6e 2e | 53 65 6e 64 54 65 78 74 |nection.|SendText|
|000002f0| 28 54 65 78 74 24 43 68 | 72 28 31 33 29 24 43 68 |(Text$Ch|r(13)$Ch|
|00000300| 72 28 31 30 29 29 3b 0d | 0a 7d 0d 0a 0d 0a 65 76 |r(10));.|.}....ev|
|00000310| 65 6e 74 20 53 65 6e 64 | 42 69 6e 61 72 79 28 69 |ent Send|Binary(i|
|00000320| 6e 74 20 43 6f 75 6e 74 | 2c 20 62 79 74 65 20 42 |nt Count|, byte B|
|00000330| 5b 32 35 35 5d 29 0d 0a | 7b 0d 0a 09 43 6f 6e 6e |[255])..|{...Conn|
|00000340| 65 63 74 69 6f 6e 2e 53 | 65 6e 64 42 69 6e 61 72 |ection.S|endBinar|
|00000350| 79 28 43 6f 75 6e 74 2c | 20 42 29 3b 0d 0a 7d 0d |y(Count,| B);..}.|
|00000360| 0a 0d 0a 66 75 6e 63 74 | 69 6f 6e 20 46 61 69 6c |...funct|ion Fail|
|00000370| 41 75 74 68 65 6e 74 69 | 63 61 74 69 6f 6e 28 73 |Authenti|cation(s|
|00000380| 74 72 69 6e 67 20 52 65 | 61 6c 6d 29 0d 0a 7b 0d |tring Re|alm)..{.|
|00000390| 0a 09 48 54 54 50 45 72 | 72 6f 72 28 34 30 31 2c |..HTTPEr|ror(401,|
|000003a0| 20 52 65 61 6c 6d 29 3b | 0d 0a 7d 0d 0a 0d 0a 66 | Realm);|..}....f|
|000003b0| 75 6e 63 74 69 6f 6e 20 | 48 54 54 50 52 65 73 70 |unction |HTTPResp|
|000003c0| 6f 6e 73 65 28 73 74 72 | 69 6e 67 20 48 65 61 64 |onse(str|ing Head|
|000003d0| 65 72 29 0d 0a 7b 0d 0a | 09 48 54 54 50 48 65 61 |er)..{..|.HTTPHea|
|000003e0| 64 65 72 28 48 65 61 64 | 65 72 29 3b 0d 0a 09 62 |der(Head|er);...b|
|000003f0| 53 65 6e 74 52 65 73 70 | 6f 6e 73 65 20 3d 20 54 |SentResp|onse = T|
|00000400| 72 75 65 3b 0d 0a 7d 0d | 0a 0d 0a 66 75 6e 63 74 |rue;..}.|...funct|
|00000410| 69 6f 6e 20 48 54 54 50 | 48 65 61 64 65 72 28 73 |ion HTTP|Header(s|
|00000420| 74 72 69 6e 67 20 48 65 | 61 64 65 72 29 0d 0a 7b |tring He|ader)..{|
|00000430| 0d 0a 09 69 66 28 62 53 | 65 6e 74 54 65 78 74 29 |...if(bS|entText)|
|00000440| 0d 0a 09 09 4c 6f 67 28 | 22 43 61 6e 27 74 20 73 |....Log(|"Can't s|
|00000450| 65 6e 64 20 68 65 61 64 | 65 72 73 20 2d 20 61 6c |end head|ers - al|
|00000460| 72 65 61 64 79 20 63 61 | 6c 6c 65 64 20 53 65 6e |ready ca|lled Sen|
|00000470| 64 54 65 78 74 28 29 22 | 29 3b 0d 0a 0d 0a 09 43 |dText()"|);.....C|
|00000480| 6f 6e 6e 65 63 74 69 6f | 6e 2e 53 65 6e 64 54 65 |onnectio|n.SendTe|
|00000490| 78 74 28 48 65 61 64 65 | 72 24 43 68 72 28 31 33 |xt(Heade|r$Chr(13|
|000004a0| 29 24 43 68 72 28 31 30 | 29 29 3b 0d 0a 7d 0d 0a |)$Chr(10|));..}..|
|000004b0| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 48 54 54 50 45 |..functi|on HTTPE|
|000004c0| 72 72 6f 72 28 69 6e 74 | 20 45 72 72 6f 72 4e 75 |rror(int| ErrorNu|
|000004d0| 6d 2c 20 6f 70 74 69 6f | 6e 61 6c 20 73 74 72 69 |m, optio|nal stri|
|000004e0| 6e 67 20 44 61 74 61 29 | 0d 0a 7b 0d 0a 09 73 77 |ng Data)|..{...sw|
|000004f0| 69 74 63 68 28 45 72 72 | 6f 72 4e 75 6d 29 0d 0a |itch(Err|orNum)..|
|00000500| 09 7b 0d 0a 09 63 61 73 | 65 20 34 30 30 3a 0d 0a |.{...cas|e 400:..|
|00000510| 09 09 48 54 54 50 52 65 | 73 70 6f 6e 73 65 28 22 |..HTTPRe|sponse("|
|00000520| 48 54 54 50 2f 31 2e 31 | 20 34 30 30 20 42 61 64 |HTTP/1.1| 400 Bad|
|00000530| 20 52 65 71 75 65 73 74 | 22 29 3b 0d 0a 09 09 53 | Request|");....S|
|00000540| 65 6e 64 54 65 78 74 28 | 22 3c 54 49 54 4c 45 3e |endText(|"<TITLE>|
|00000550| 34 30 30 20 42 61 64 20 | 52 65 71 75 65 73 74 3c |400 Bad |Request<|
|00000560| 2f 54 49 54 4c 45 3e 3c | 48 31 3e 34 30 30 20 42 |/TITLE><|H1>400 B|
|00000570| 61 64 20 52 65 71 75 65 | 73 74 3c 2f 48 31 3e 49 |ad Reque|st</H1>I|
|00000580| 66 20 79 6f 75 20 67 6f | 74 20 74 68 69 73 20 65 |f you go|t this e|
|00000590| 72 72 6f 72 20 66 72 6f | 6d 20 61 20 73 74 61 6e |rror fro|m a stan|
|000005a0| 64 61 72 64 20 77 65 62 | 20 62 72 6f 77 73 65 72 |dard web| browser|
|000005b0| 2c 20 70 6c 65 61 73 65 | 20 6d 61 69 6c 20 6a 61 |, please| mail ja|
|000005c0| 63 6b 40 65 70 69 63 67 | 61 6d 65 73 2e 63 6f 6d |ck@epicg|ames.com|
|000005d0| 20 61 6e 64 20 73 75 62 | 6d 69 74 20 61 20 62 75 | and sub|mit a bu|
|000005e0| 67 20 72 65 70 6f 72 74 | 2e 22 29 3b 0d 0a 09 09 |g report|.");....|
|000005f0| 62 72 65 61 6b 3b 0d 0a | 09 63 61 73 65 20 34 30 |break;..|.case 40|
|00000600| 31 3a 0d 0a 09 09 48 54 | 54 50 52 65 73 70 6f 6e |1:....HT|TPRespon|
|00000610| 73 65 28 22 48 54 54 50 | 2f 31 2e 31 20 34 30 31 |se("HTTP|/1.1 401|
|00000620| 20 55 6e 61 75 74 68 6f | 72 69 7a 65 64 22 29 3b | Unautho|rized");|
|00000630| 0d 0a 09 09 48 54 54 50 | 48 65 61 64 65 72 28 22 |....HTTP|Header("|
|00000640| 57 57 57 2d 61 75 74 68 | 65 6e 74 69 63 61 74 65 |WWW-auth|enticate|
|00000650| 3a 20 62 61 73 69 63 20 | 72 65 61 6c 6d 3d 5c 22 |: basic |realm=\"|
|00000660| 22 24 44 61 74 61 24 22 | 5c 22 22 29 3b 0d 0a 09 |"$Data$"|\"");...|
|00000670| 09 53 65 6e 64 54 65 78 | 74 28 22 3c 54 49 54 4c |.SendTex|t("<TITL|
|00000680| 45 3e 34 30 31 20 55 6e | 61 75 74 68 6f 72 69 7a |E>401 Un|authoriz|
|00000690| 65 64 3c 2f 54 49 54 4c | 45 3e 3c 48 31 3e 34 30 |ed</TITL|E><H1>40|
|000006a0| 31 20 55 6e 61 75 74 68 | 6f 72 69 7a 65 64 3c 2f |1 Unauth|orized</|
|000006b0| 48 31 3e 22 29 3b 0d 0a | 09 09 62 72 65 61 6b 3b |H1>");..|..break;|
|000006c0| 0d 0a 09 63 61 73 65 20 | 34 30 34 3a 0d 0a 09 09 |...case |404:....|
|000006d0| 48 54 54 50 52 65 73 70 | 6f 6e 73 65 28 22 48 54 |HTTPResp|onse("HT|
|000006e0| 54 50 2f 31 2e 31 20 34 | 30 34 20 4f 62 6a 65 63 |TP/1.1 4|04 Objec|
|000006f0| 74 20 4e 6f 74 20 46 6f | 75 6e 64 22 29 3b 0d 0a |t Not Fo|und");..|
|00000700| 09 09 53 65 6e 64 54 65 | 78 74 28 22 3c 54 49 54 |..SendTe|xt("<TIT|
|00000710| 4c 45 3e 34 30 34 20 46 | 69 6c 65 20 4e 6f 74 20 |LE>404 F|ile Not |
|00000720| 46 6f 75 6e 64 3c 2f 54 | 49 54 4c 45 3e 3c 48 31 |Found</T|ITLE><H1|
|00000730| 3e 34 30 34 20 46 69 6c | 65 20 4e 6f 74 20 46 6f |>404 Fil|e Not Fo|
|00000740| 75 6e 64 3c 2f 48 31 3e | 54 68 65 20 55 52 4c 20 |und</H1>|The URL |
|00000750| 79 6f 75 20 72 65 71 75 | 65 73 74 65 64 20 77 61 |you requ|ested wa|
|00000760| 73 20 6e 6f 74 20 66 6f | 75 6e 64 2e 22 29 3b 0d |s not fo|und.");.|
|00000770| 0a 09 09 62 72 65 61 6b | 3b 0d 0a 09 64 65 66 61 |...break|;...defa|
|00000780| 75 6c 74 3a 0d 0a 09 09 | 62 72 65 61 6b 3b 0d 0a |ult:....|break;..|
|00000790| 09 7d 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |.}..}...|.functio|
|000007a0| 6e 20 53 65 6e 64 53 74 | 61 6e 64 61 72 64 48 65 |n SendSt|andardHe|
|000007b0| 61 64 65 72 73 28 20 6f | 70 74 69 6f 6e 61 6c 20 |aders( o|ptional |
|000007c0| 73 74 72 69 6e 67 20 43 | 6f 6e 74 65 6e 74 54 79 |string C|ontentTy|
|000007d0| 70 65 20 29 0d 0a 7b 0d | 0a 09 69 66 28 43 6f 6e |pe )..{.|..if(Con|
|000007e0| 74 65 6e 74 54 79 70 65 | 20 3d 3d 20 22 22 29 0d |tentType| == "").|
|000007f0| 0a 09 09 43 6f 6e 74 65 | 6e 74 54 79 70 65 20 3d |...Conte|ntType =|
|00000800| 20 22 74 65 78 74 2f 68 | 74 6d 6c 22 3b 0d 0a 09 | "text/h|tml";...|
|00000810| 69 66 28 21 62 53 65 6e | 74 52 65 73 70 6f 6e 73 |if(!bSen|tRespons|
|00000820| 65 29 0d 0a 09 09 48 54 | 54 50 52 65 73 70 6f 6e |e)....HT|TPRespon|
|00000830| 73 65 28 22 48 54 54 50 | 2f 31 2e 31 20 32 30 30 |se("HTTP|/1.1 200|
|00000840| 20 4f 4b 22 29 3b 0d 0a | 09 48 54 54 50 48 65 61 | OK");..|.HTTPHea|
|00000850| 64 65 72 28 22 53 65 72 | 76 65 72 3a 20 55 6e 72 |der("Ser|ver: Unr|
|00000860| 65 61 6c 45 6e 67 69 6e | 65 20 55 57 65 62 20 57 |ealEngin|e UWeb W|
|00000870| 65 62 20 53 65 72 76 65 | 72 20 42 75 69 6c 64 20 |eb Serve|r Build |
|00000880| 22 24 43 6f 6e 6e 65 63 | 74 69 6f 6e 2e 4c 65 76 |"$Connec|tion.Lev|
|00000890| 65 6c 2e 45 6e 67 69 6e | 65 56 65 72 73 69 6f 6e |el.Engin|eVersion|
|000008a0| 29 3b 0d 0a 09 48 54 54 | 50 48 65 61 64 65 72 28 |);...HTT|PHeader(|
|000008b0| 22 43 6f 6e 74 65 6e 74 | 2d 54 79 70 65 3a 20 22 |"Content|-Type: "|
|000008c0| 24 43 6f 6e 74 65 6e 74 | 54 79 70 65 29 3b 0d 0a |$Content|Type);..|
|000008d0| 09 48 54 54 50 48 65 61 | 64 65 72 28 22 22 29 3b |.HTTPHea|der("");|
|000008e0| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|000008f0| 52 65 64 69 72 65 63 74 | 28 73 74 72 69 6e 67 20 |Redirect|(string |
|00000900| 55 52 4c 29 0d 0a 7b 0d | 0a 09 48 54 54 50 52 65 |URL)..{.|..HTTPRe|
|00000910| 73 70 6f 6e 73 65 28 22 | 48 54 54 50 2f 31 2e 31 |sponse("|HTTP/1.1|
|00000920| 20 33 30 32 20 44 6f 63 | 75 6d 65 6e 74 20 4d 6f | 302 Doc|ument Mo|
|00000930| 76 65 64 22 29 3b 0d 0a | 09 48 54 54 50 48 65 61 |ved");..|.HTTPHea|
|00000940| 64 65 72 28 22 4c 6f 63 | 61 74 69 6f 6e 3a 20 22 |der("Loc|ation: "|
|00000950| 24 55 52 4c 29 3b 0d 0a | 09 53 65 6e 64 54 65 78 |$URL);..|.SendTex|
|00000960| 74 28 22 3c 68 65 61 64 | 3e 3c 74 69 74 6c 65 3e |t("<head|><title>|
|00000970| 44 6f 63 75 6d 65 6e 74 | 20 4d 6f 76 65 64 3c 2f |Document| Moved</|
|00000980| 74 69 74 6c 65 3e 3c 2f | 68 65 61 64 3e 22 29 3b |title></|head>");|
|00000990| 0d 0a 09 53 65 6e 64 54 | 65 78 74 28 22 3c 62 6f |...SendT|ext("<bo|
|000009a0| 64 79 3e 3c 68 31 3e 4f | 62 6a 65 63 74 20 4d 6f |dy><h1>O|bject Mo|
|000009b0| 76 65 64 3c 2f 68 31 3e | 54 68 69 73 20 64 6f 63 |ved</h1>|This doc|
|000009c0| 75 6d 65 6e 74 20 6d 61 | 79 20 62 65 20 66 6f 75 |ument ma|y be fou|
|000009d0| 6e 64 20 3c 61 20 48 52 | 45 46 3d 5c 22 22 24 55 |nd <a HR|EF=\""$U|
|000009e0| 52 4c 24 22 5c 22 3e 68 | 65 72 65 3c 2f 61 3e 2e |RL$"\">h|ere</a>.|
|000009f0| 22 29 3b 0d 0a 7d 0d 0a | 0d 0a 00 |");..}..|... |
+--------+-------------------------+-------------------------+--------+--------+