home *** CD-ROM | disk | FTP | other *** search
Unknown | 1999-09-27 | 1.9 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
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 6f 1d 63 6c 61 73 73 20 |........|o.class |
|00000010| 48 65 6c 6c 6f 57 65 62 | 20 65 78 70 61 6e 64 73 |HelloWeb| expands|
|00000020| 20 57 65 62 41 70 70 6c | 69 63 61 74 69 6f 6e 3b | WebAppl|ication;|
|00000030| 0d 0a 0d 0a 2f 2a 20 55 | 73 61 67 65 3a 0d 0a 54 |..../* U|sage:..T|
|00000040| 68 69 73 20 69 73 20 61 | 20 73 61 6d 70 6c 65 20 |his is a| sample |
|00000050| 77 65 62 20 61 70 70 6c | 69 63 61 74 69 6f 6e 2c |web appl|ication,|
|00000060| 20 74 6f 20 64 65 6d 6f | 6e 73 74 72 61 74 65 20 | to demo|nstrate |
|00000070| 68 6f 77 20 74 6f 20 70 | 72 6f 67 72 61 6d 20 66 |how to p|rogram f|
|00000080| 6f 72 20 74 68 65 20 77 | 65 62 20 73 65 72 76 65 |or the w|eb serve|
|00000090| 72 2e 0d 0a 0d 0a 0d 0a | 5b 55 57 65 62 2e 57 65 |r.......|[UWeb.We|
|000000a0| 62 53 65 72 76 65 72 5d | 0d 0a 41 70 70 6c 69 63 |bServer]|..Applic|
|000000b0| 61 74 69 6f 6e 73 5b 30 | 5d 3d 22 55 57 65 62 2e |ations[0|]="UWeb.|
|000000c0| 48 65 6c 6c 6f 57 65 62 | 22 0d 0a 41 70 70 6c 69 |HelloWeb|"..Appli|
|000000d0| 63 61 74 69 6f 6e 50 61 | 74 68 73 5b 30 5d 3d 22 |cationPa|ths[0]="|
|000000e0| 2f 68 65 6c 6c 6f 22 0d | 0a 62 45 6e 61 62 6c 65 |/hello".|.bEnable|
|000000f0| 64 3d 54 72 75 65 0d 0a | 0d 0a 68 74 74 70 3a 2f |d=True..|..http:/|
|00000100| 2f 73 65 72 76 65 72 2e | 69 70 2e 61 64 64 72 65 |/server.|ip.addre|
|00000110| 73 73 2f 68 65 6c 6c 6f | 0d 0a 0d 0a 2a 2f 0d 0a |ss/hello|....*/..|
|00000120| 0d 0a 65 76 65 6e 74 20 | 51 75 65 72 79 28 57 65 |..event |Query(We|
|00000130| 62 52 65 71 75 65 73 74 | 20 52 65 71 75 65 73 74 |bRequest| Request|
|00000140| 2c 20 57 65 62 52 65 73 | 70 6f 6e 73 65 20 52 65 |, WebRes|ponse Re|
|00000150| 73 70 6f 6e 73 65 29 0d | 0a 7b 0d 0a 09 6c 6f 63 |sponse).|.{...loc|
|00000160| 61 6c 20 69 6e 74 20 69 | 3b 0d 0a 0d 0a 09 69 66 |al int i|;.....if|
|00000170| 28 52 65 71 75 65 73 74 | 2e 55 73 65 72 6e 61 6d |(Request|.Usernam|
|00000180| 65 20 21 3d 20 22 74 65 | 73 74 22 20 7c 7c 20 52 |e != "te|st" || R|
|00000190| 65 71 75 65 73 74 2e 50 | 61 73 73 77 6f 72 64 20 |equest.P|assword |
|000001a0| 21 3d 20 22 74 65 73 74 | 22 29 0d 0a 09 7b 0d 0a |!= "test|")...{..|
|000001b0| 09 09 52 65 73 70 6f 6e | 73 65 2e 46 61 69 6c 41 |..Respon|se.FailA|
|000001c0| 75 74 68 65 6e 74 69 63 | 61 74 69 6f 6e 28 22 48 |uthentic|ation("H|
|000001d0| 65 6c 6c 6f 57 65 62 22 | 29 3b 0d 0a 09 09 72 65 |elloWeb"|);....re|
|000001e0| 74 75 72 6e 3b 0d 0a 09 | 7d 09 09 0d 0a 0d 0a 09 |turn;...|}.......|
|000001f0| 73 77 69 74 63 68 28 52 | 65 71 75 65 73 74 2e 55 |switch(R|equest.U|
|00000200| 52 49 29 0d 0a 09 7b 0d | 0a 09 63 61 73 65 20 22 |RI)...{.|..case "|
|00000210| 2f 66 6f 72 6d 2e 68 74 | 6d 6c 22 3a 0d 0a 09 09 |/form.ht|ml":....|
|00000220| 52 65 73 70 6f 6e 73 65 | 2e 53 65 6e 64 54 65 78 |Response|.SendTex|
|00000230| 74 28 22 3c 66 6f 72 6d | 20 6d 65 74 68 6f 64 3d |t("<form| method=|
|00000240| 70 6f 73 74 20 61 63 74 | 69 6f 6e 3d 73 75 62 6d |post act|ion=subm|
|00000250| 69 74 2e 68 74 6d 6c 3e | 22 29 3b 0d 0a 09 09 52 |it.html>|");....R|
|00000260| 65 73 70 6f 6e 73 65 2e | 53 65 6e 64 54 65 78 74 |esponse.|SendText|
|00000270| 28 22 3c 69 6e 70 75 74 | 20 74 79 70 65 3d 65 64 |("<input| type=ed|
|00000280| 69 74 20 6e 61 6d 65 3d | 54 65 73 74 45 64 69 74 |it name=|TestEdit|
|00000290| 3e 22 29 3b 0d 0a 09 09 | 52 65 73 70 6f 6e 73 65 |>");....|Response|
|000002a0| 2e 53 65 6e 64 54 65 78 | 74 28 22 3c 70 3e 3c 73 |.SendTex|t("<p><s|
|000002b0| 65 6c 65 63 74 20 6d 75 | 6c 74 69 70 6c 65 20 6e |elect mu|ltiple n|
|000002c0| 61 6d 65 3d 73 65 6c 65 | 63 74 65 72 3e 22 29 3b |ame=sele|cter>");|
|000002d0| 0d 0a 09 09 52 65 73 70 | 6f 6e 73 65 2e 53 65 6e |....Resp|onse.Sen|
|000002e0| 64 54 65 78 74 28 22 3c | 6f 70 74 69 6f 6e 20 76 |dText("<|option v|
|000002f0| 61 6c 75 65 3d 5c 22 6f | 6e 65 5c 22 3e 4e 75 6d |alue=\"o|ne\">Num|
|00000300| 62 65 72 20 4f 6e 65 22 | 29 3b 0d 0a 09 09 52 65 |ber One"|);....Re|
|00000310| 73 70 6f 6e 73 65 2e 53 | 65 6e 64 54 65 78 74 28 |sponse.S|endText(|
|00000320| 22 3c 6f 70 74 69 6f 6e | 20 76 61 6c 75 65 3d 5c |"<option| value=\|
|00000330| 22 74 77 6f 5c 22 3e 4e | 75 6d 62 65 72 20 54 77 |"two\">N|umber Tw|
|00000340| 6f 22 29 3b 0d 0a 09 09 | 52 65 73 70 6f 6e 73 65 |o");....|Response|
|00000350| 2e 53 65 6e 64 54 65 78 | 74 28 22 3c 6f 70 74 69 |.SendTex|t("<opti|
|00000360| 6f 6e 20 76 61 6c 75 65 | 3d 5c 22 74 68 72 65 65 |on value|=\"three|
|00000370| 5c 22 3e 4e 75 6d 62 65 | 72 20 54 68 72 65 65 22 |\">Numbe|r Three"|
|00000380| 29 3b 0d 0a 09 09 52 65 | 73 70 6f 6e 73 65 2e 53 |);....Re|sponse.S|
|00000390| 65 6e 64 54 65 78 74 28 | 22 3c 6f 70 74 69 6f 6e |endText(|"<option|
|000003a0| 20 76 61 6c 75 65 3d 5c | 22 66 6f 75 72 5c 22 3e | value=\|"four\">|
|000003b0| 4e 75 6d 62 65 72 20 46 | 6f 75 72 22 29 3b 0d 0a |Number F|our");..|
|000003c0| 09 09 52 65 73 70 6f 6e | 73 65 2e 53 65 6e 64 54 |..Respon|se.SendT|
|000003d0| 65 78 74 28 22 3c 2f 73 | 65 6c 65 63 74 3e 3c 70 |ext("</s|elect><p|
|000003e0| 3e 22 29 3b 0d 0a 09 09 | 52 65 73 70 6f 6e 73 65 |>");....|Response|
|000003f0| 2e 53 65 6e 64 54 65 78 | 74 28 22 3c 69 6e 70 75 |.SendTex|t("<inpu|
|00000400| 74 20 74 79 70 65 3d 73 | 75 62 6d 69 74 20 6e 61 |t type=s|ubmit na|
|00000410| 6d 65 3d 53 75 62 6d 69 | 74 20 76 61 6c 75 65 3d |me=Submi|t value=|
|00000420| 53 75 62 6d 69 74 3e 22 | 29 3b 0d 0a 09 09 52 65 |Submit>"|);....Re|
|00000430| 73 70 6f 6e 73 65 2e 53 | 65 6e 64 54 65 78 74 28 |sponse.S|endText(|
|00000440| 22 3c 2f 66 6f 72 6d 3e | 22 29 3b 0d 0a 09 09 62 |"</form>|");....b|
|00000450| 72 65 61 6b 3b 0d 0a 09 | 63 61 73 65 20 22 2f 73 |reak;...|case "/s|
|00000460| 75 62 6d 69 74 2e 68 74 | 6d 6c 22 3a 0d 0a 09 09 |ubmit.ht|ml":....|
|00000470| 52 65 73 70 6f 6e 73 65 | 2e 53 65 6e 64 54 65 78 |Response|.SendTex|
|00000480| 74 28 22 54 68 61 6e 6b | 73 20 66 6f 72 20 73 75 |t("Thank|s for su|
|00000490| 62 6d 69 74 74 69 6e 67 | 20 74 68 65 20 66 6f 72 |bmitting| the for|
|000004a0| 6d 2e 3c 62 72 3e 22 29 | 3b 0d 0a 09 09 52 65 73 |m.<br>")|;....Res|
|000004b0| 70 6f 6e 73 65 2e 53 65 | 6e 64 54 65 78 74 28 22 |ponse.Se|ndText("|
|000004c0| 54 65 73 74 45 64 69 74 | 20 77 61 73 20 5c 22 22 |TestEdit| was \""|
|000004d0| 24 52 65 71 75 65 73 74 | 2e 47 65 74 56 61 72 69 |$Request|.GetVari|
|000004e0| 61 62 6c 65 28 22 54 65 | 73 74 45 64 69 74 22 29 |able("Te|stEdit")|
|000004f0| 24 22 5c 22 3c 70 3e 22 | 29 3b 0d 0a 09 09 52 65 |$"\"<p>"|);....Re|
|00000500| 73 70 6f 6e 73 65 2e 53 | 65 6e 64 54 65 78 74 28 |sponse.S|endText(|
|00000510| 22 59 6f 75 20 73 65 6c | 65 63 74 65 64 20 74 68 |"You sel|ected th|
|00000520| 65 73 65 20 69 74 65 6d | 73 3a 3c 62 72 3e 22 29 |ese item|s:<br>")|
|00000530| 3b 0d 0a 09 09 66 6f 72 | 28 69 3d 52 65 71 75 65 |;....for|(i=Reque|
|00000540| 73 74 2e 47 65 74 56 61 | 72 69 61 62 6c 65 43 6f |st.GetVa|riableCo|
|00000550| 75 6e 74 28 22 73 65 6c | 65 63 74 65 72 22 29 2d |unt("sel|ecter")-|
|00000560| 31 3b 69 3e 3d 30 3b 69 | 2d 2d 29 0d 0a 09 09 09 |1;i>=0;i|--).....|
|00000570| 52 65 73 70 6f 6e 73 65 | 2e 53 65 6e 64 54 65 78 |Response|.SendTex|
|00000580| 74 28 22 5c 22 22 24 52 | 65 71 75 65 73 74 2e 47 |t("\""$R|equest.G|
|00000590| 65 74 56 61 72 69 61 62 | 6c 65 4e 75 6d 62 65 72 |etVariab|leNumber|
|000005a0| 28 22 73 65 6c 65 63 74 | 65 72 22 2c 20 69 29 24 |("select|er", i)$|
|000005b0| 22 5c 22 3c 62 72 3e 22 | 29 3b 0d 0a 09 09 62 72 |"\"<br>"|);....br|
|000005c0| 65 61 6b 3b 0d 0a 09 63 | 61 73 65 20 22 2f 69 6e |eak;...c|ase "/in|
|000005d0| 63 6c 75 64 65 2e 68 74 | 6d 6c 22 3a 0d 0a 09 09 |clude.ht|ml":....|
|000005e0| 52 65 73 70 6f 6e 73 65 | 2e 53 75 62 73 74 28 22 |Response|.Subst("|
|000005f0| 76 61 72 69 61 62 6c 65 | 31 22 2c 20 22 54 68 69 |variable|1", "Thi|
|00000600| 73 20 69 73 20 76 61 72 | 69 61 62 6c 65 20 31 22 |s is var|iable 1"|
|00000610| 29 3b 0d 0a 09 09 52 65 | 73 70 6f 6e 73 65 2e 53 |);....Re|sponse.S|
|00000620| 75 62 73 74 28 22 76 61 | 72 69 61 62 6c 65 32 22 |ubst("va|riable2"|
|00000630| 2c 20 22 54 68 69 73 20 | 69 73 20 76 61 72 69 61 |, "This |is varia|
|00000640| 62 6c 65 20 32 22 29 3b | 0d 0a 09 09 52 65 73 70 |ble 2");|....Resp|
|00000650| 6f 6e 73 65 2e 53 75 62 | 73 74 28 22 76 61 72 69 |onse.Sub|st("vari|
|00000660| 61 62 6c 65 33 22 2c 20 | 22 54 68 69 73 20 69 73 |able3", |"This is|
|00000670| 20 76 61 72 69 61 62 6c | 65 20 33 22 29 3b 0d 0a | variabl|e 3");..|
|00000680| 09 09 52 65 73 70 6f 6e | 73 65 2e 49 6e 63 6c 75 |..Respon|se.Inclu|
|00000690| 64 65 55 48 54 4d 28 22 | 74 65 73 74 69 6e 63 6c |deUHTM("|testincl|
|000006a0| 75 64 65 2e 68 74 6d 6c | 22 29 3b 0d 0a 09 09 62 |ude.html|");....b|
|000006b0| 72 65 61 6b 3b 0d 0a 09 | 64 65 66 61 75 6c 74 3a |reak;...|default:|
|000006c0| 09 09 0d 0a 09 09 52 65 | 73 70 6f 6e 73 65 2e 53 |......Re|sponse.S|
|000006d0| 65 6e 64 54 65 78 74 28 | 22 48 65 6c 6c 6f 20 77 |endText(|"Hello w|
|000006e0| 65 62 21 20 20 54 68 65 | 20 63 75 72 72 65 6e 74 |eb! The| current|
|000006f0| 20 6c 65 76 65 6c 20 69 | 73 20 22 24 4c 65 76 65 | level i|s "$Leve|
|00000700| 6c 2e 54 69 74 6c 65 29 | 3b 0d 0a 09 09 52 65 73 |l.Title)|;....Res|
|00000710| 70 6f 6e 73 65 2e 53 65 | 6e 64 54 65 78 74 28 22 |ponse.Se|ndText("|
|00000720| 3c 62 72 3e 43 6c 69 63 | 6b 20 3c 61 20 68 72 65 |<br>Clic|k <a hre|
|00000730| 66 3d 5c 22 66 6f 72 6d | 2e 68 74 6d 6c 5c 22 3e |f=\"form|.html\">|
|00000740| 74 68 69 73 20 6c 69 6e | 6b 3c 2f 61 3e 20 74 6f |this lin|k</a> to|
|00000750| 20 67 6f 20 74 6f 20 61 | 20 74 65 73 74 20 66 6f | go to a| test fo|
|00000760| 72 6d 22 29 3b 0d 0a 09 | 09 62 72 65 61 6b 3b 0d |rm");...|.break;.|
|00000770| 0a 09 7d 0d 0a 7d 0d 0a | 00 |..}..}..|. |
+--------+-------------------------+-------------------------+--------+--------+