Annotation of parser3/src/www/htdocs/index.html, revision 1.483

1.399     parser      1: @main[]
1.483   ! paf         2: ^taint[html][<  >]
1.480     paf         3: #^badvsnprintf[]
1.479     paf         4: #^badoracequoting[]
1.477     paf         5: #^badconstructors[]
1.475     paf         6: #^xloadwrongtable[]
1.476     paf         7: #^xsetwrongtable[]
1.473     paf         8: #^if($form:test){y}{n}
1.472     paf         9: #^tablecolumnerror[]
                     10: #^roll[]
1.471     paf        11: #^cookie2[]
1.470     paf        12: #^tableset[]
1.469     paf        13: #^math:PI.format{%.30f}
1.462     paf        14: #^xchildren[]
                     15: #^thashforeach3[]
1.461     paf        16: #^thashforeach2[]
                     17: #^thashforeach[]
1.458     paf        18: #^thashdelete[]
1.456     paf        19: #^connect[mysql://user:pass@cd.rinet.ru/db]{^void:sql{z} }
1.454     paf        20: #^tappend[]
1.453     paf        21: #^sappend[]
1.452     paf        22: #^eval(10\3)<br>
1.450     paf        23: #^tform[]
1.448     paf        24: #^formattest[]
1.447     paf        25: #^filelist[]
1.443     paf        26: #^connect[mysql://user:pass@host]{ }
1.431     paf        27: #^безнадёжна_попытка_поправить_непоправимое[]
1.430     parser     28: #^tcache[]
1.460     paf        29: #^thashfileexp[]
1.468     paf        30: #^tcounter[]
1.423     parser     31: #^tablehash[]
1.443     paf        32: #j^hashfile[]
1.417     parser     33: #^formclass[]
1.415     parser     34: #^hren[]
1.482     paf        35: ^domedit[]
1.475     paf        36: #^domxslt[]
1.402     parser     37: #^lsplit2[]
1.401     parser     38: #^faceesize[]
1.445     paf        39: #^imageresize[]
1.399     parser     40: #^ifassignhash[]
                     41: #^tintdefault[]
                     42: #$response:status[404]
1.390     parser     43: #^ifpasshash[]
1.387     parser     44: #^movedir[]
                     45: #^replace[]
1.416     parser     46: #^set[]
1.385     parser     47: #^hash[]<hr>
1.384     parser     48: #$t[^methresult[]] ->$t
1.382     parser     49: #^terror[]
1.378     parser     50: #^ssave[]
1.377     parser     51: #^calendar[]
1.376     parser     52: #^thash[]
1.373     parser     53: #^tdef[]
1.375     parser     54: #^ford[]
1.371     parser     55: #^tif[]
1.383     parser     56: #^image[]
1.369     parser     57: #^mail2[]
1.413     parser     58: #^cookie[]
1.365     parser     59: #^response[]
1.364     parser     60: #^regexp2[]
                     61: #^ttablerem[]
                     62: #^pcre[]
                     63: #^regexp[]<hr>
                     64: #^mail[]
                     65: #^exec[]
                     66: #^fori[]
1.468     paf        67: #^tconnect[]
1.470     paf        68: #^xslt[]
                     69: #^xml[]
1.364     parser     70: #^header[]
1.477     paf        71: <hr>
1.364     parser     72: OK
1.477     paf        73: 
1.479     paf        74: @badvsnprintf[]
                     75: ^connect[zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz]{
                     76: }
                     77: 
                     78: 
1.477     paf        79: @badoracequoting[]
                     80: $SQL.connect-string[oracle://webspb:webpwd@mts?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
                     81: ^connect[$SQL.connect-string]{
1.478     paf        82: ^void:sql{delete from paf}
1.479     paf        83: ^void:sql{insert into paf values (1, '$form:text')}
1.478     paf        84: $paf[^table::sql{select * from paf}]
                     85: ^paf.menu{
1.479     paf        86:        $paf.id: ^untaint{$paf.block}<hr>
1.478     paf        87: 
1.477     paf        88: }
1.478     paf        89: <hr>
                     90: 
1.477     paf        91: 
1.478     paf        92: ^rem{
1.477     paf        93: $news[^table::sql{select description from news}[$.limit(3)]]
                     94: ^news.menu{
                     95:        ^untaint{$news.description}<hr>
                     96: 
                     97: }
1.478     paf        98: <hr>
                     99: }
                    100: 
                    101: $tables[^table::sql{select table_name from user_tables}]
                    102: ^tables.menu{
                    103: $tables.table_name<br>
                    104: }
                    105: 
1.477     paf       106: }
                    107: <hr>
                    108: $env:PATH
1.476     paf       109: 
                    110: @badconstructors[]
                    111: $bred[^string::length[]]
                    112: $bred[^response::clear[]]
                    113: $bred[^int::int[]]
                    114: 
1.475     paf       115: 
                    116: @xloadwrongtable[]
                    117: $constr[^xdoc::load[wrongtable.xml]]
                    118: 
                    119: @xsetwrongtable[]
                    120: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251z" ?>
                    121: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    122: 
1.471     paf       123: 
1.472     paf       124: @tablecolumnerror[]
                    125: $t[^table::set{a}]
                    126: $t.$a
                    127: 
1.471     paf       128: @roll[]
1.472     paf       129: #$date[^date::set(1970;1;2)]
                    130: #^date.roll[month](-1)
                    131: $date[^date::set(2038;1;1)]
1.471     paf       132: ^date.roll[month](+1)
                    133: $date.year  $date.month  $date.day
1.470     paf       134: 
                    135: @cookie2[]
                    136: #=$cookie:clientType[$.value[test]]=<br>
                    137: =$cookie:clientType=<br>
                    138: 
1.469     paf       139: 
                    140: @tableset[]
                    141: $a[^table::set{a
                    142: 1
                    143: 2}]
                    144: ^eval(100\$a)
                    145: 
                    146: 
                    147: 
                    148: @zzz[]
                    149: 
1.462     paf       150: 
                    151: $constructor[
                    152: <block1 name="main_srvr" type="0" label="Основное тело" />
                    153: <block2 name="main_srvr2" type="0" label="Основное тело" />
                    154: ]
                    155: 
                    156: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?>
                    157: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    158: 
                    159: $children[$constr.documentElement.childNodes]
                    160: ^if($children){
                    161: ^for[i](1;^children._count[]){
                    162:        $node[$children.$i]
                    163:        $node.nodeName<br>
                    164: }
                    165: }
                    166:    
1.461     paf       167: 
                    168: @thashforeach3[]
                    169: $h[
                    170:        $.a[1] 
                    171:        $.b[2]
                    172: ]
                    173: $c[^table::set{a
                    174: ^h.foreach[key;value]{$value
                    175: }}]
                    176: $c.a
                    177: 
                    178: @thashforeach2[]
                    179: $h[
                    180:        $.a[1] 
                    181:        $.b[2]
                    182: ]
                    183: $c[
                    184: ^h.foreach[key;value]{
                    185:        $.$key[$value]
                    186: }
                    187: ]
                    188: $c.b
1.458     paf       189: 
                    190: @thashforeach[]
                    191: $h[
                    192:        $.a[1] 
                    193:        $.b[2]
                    194: ]
                    195: ^h.foreach[key;value]{
                    196:        $key=$value<br>
                    197: }
1.457     paf       198: 
                    199: @thashdelete[]
                    200: $h[$.a[1] $.b[2]]
                    201: was:<br>
                    202: count=^h._count[] <br>
                    203: b='$h.b' <br>
                    204: 
                    205: ^h.delete[b] 
                    206: 
                    207: now:<br>
                    208: count=^h._count[] <br>
                    209: b='$h.b' 
1.452     paf       210: 
                    211: @sappend[]
                    212: $test[123]
                    213: ^test.save[test]
                    214: ^test.save[append;test]
                    215: 
1.453     paf       216: @tappend[]
                    217: $test[^table::set{a    b
                    218: a1     b1}]
                    219: ^test.save[test]
                    220: $test[^table::set{a    b
                    221: a2     b2}]
                    222: ^test.save[append;test]
1.452     paf       223: 
1.448     paf       224: 
                    225: @tform[]
1.449     paf       226: ^if(def $form:new_file){y}{n}
                    227: <form method="post" enctype="multipart/form-data">
                    228: <input type="file" name="new_file" />
1.448     paf       229: <input type=submit>
                    230: </input>
1.447     paf       231: 
                    232: @formattest[]
                    233: $size(15.124)
                    234: 
                    235: ^size.format{%.2f}
1.446     paf       236: 
                    237: @filelist[]
                    238: $html[^file:list[.;\.html^$]]
                    239: ^html.menu{
                    240:        $html.name<br>
                    241: }
                    242: <hr>
1.431     paf       243: 
                    244: @безнадёжна_попытка_поправить_непоправимое[]
                    245: $dom_from_disk[^xdoc::load[input.xml]]
                    246: $dom_created_in_air[^xdoc::create[doc]]
                    247: ^dom_created_in_air.documentElement.appendChild[^dom_from_disk.documentElement.cloneNode(1)]
                    248: ^show-xdoc2[$dom_created_in_air]
                    249: 
1.426     parser    250: 
1.428     parser    251: @tcache[]
                    252: #^hashfile:clear[cache]
1.459     paf       253: $code[^hashfile::open[$DB_HOME;cache]]
1.430     parser    254: ^code.cache[key](2){
                    255:        ^math:random(100)
                    256: #      ^code.delete[]
1.428     parser    257: }
                    258: 
                    259: 
1.426     parser    260: @thashfileexp[]
1.459     paf       261: $hf[^hashfile::open[$DB_HOME;hashfile]]
1.428     parser    262: $hf.paf[$.value[крут] $.expires(3)]
                    263: paf=$hf.paf
1.459     paf       264: <hr>
                    265: ^hf.foreach[key;value]{
                    266:        $key=$value<br>
                    267: }
1.427     parser    268: <hr>
                    269: $hash[^hf.hash[]]
                    270: =$hash.paf=
                    271: <hr>
1.420     parser    272: 
1.423     parser    273: @tcounter[]
1.440     paf       274: ^tcounterone[$DB_HOME]
1.466     paf       275: other root:
                    276: ^tcounterone[${DB_HOME}2]
                    277: again, first:
                    278: ^tcounterone[$DB_HOME]
1.432     paf       279: 
                    280: @tcounterone[DB_HOME]
                    281: $counter[^hashfile::open[$DB_HOME;counter]]
1.440     paf       282: #^counter.clear[]
1.423     parser    283: ^counter.transaction{
                    284: #      $counter.value(10)
                    285:        $counter.value($counter.value+1)
                    286: #      ^counter.delete[value]
                    287:        $counter.value
                    288: }
1.424     parser    289: <hr>
1.432     paf       290: ^rem{
1.424     parser    291: $hash[^counter.hash[]]
1.425     parser    292: =$hash.value=
1.424     parser    293: <hr>
1.432     paf       294: }
1.423     parser    295: 
                    296: @tablehash[]
                    297: $productList[^table::set{id    name
                    298: 1      носки
                    299: 2      валенки
                    300: 3      ушанка
                    301: }]
                    302: 
                    303: #скажем, у первого дилера
                    304: $firstPriceList[^table::set{id price
                    305: 1      0.3
                    306: 3      1000
                    307: }]
                    308: 
                    309: $firstPriceHash[^firstPriceList.hash[id]]
                    310: 
                    311: ^productList.menu{
                    312:     продукт "$productList.name" | цена у first: $firstPriceHash.[$productList.id].price<br>
                    313: }
                    314: 
                    315: 
1.420     parser    316: @hashfile[]
                    317: $hf[^hashfile::assign[hashfile]]
1.423     parser    318: #$hf.paf[крут5]
1.420     parser    319: paf=$hf.paf
1.402     parser    320: 
1.417     parser    321: @formclass[]
                    322: ^$form:CLASS.a=$form:CLASS.a
                    323: 
1.406     parser    324: @domdata[]
1.418     parser    325: ^if(1){
1.422     parser    326: #      $a{^hren[]}
1.418     parser    327: }
1.419     parser    328: $a
1.408     parser    329: $xdoc[^xdoc::create[doc]]
                    330: $doc[$xdoc.documentElement]
1.473     paf       331: $name[^doc.appendChild[^xdoc.createElement[name]]]
1.474     paf       332: $text[^name.appendChild[^xdoc.createTextNode[петросян&coz]]]
1.435     paf       333: ^untaint[as-is]{=$text.nodeValue=}
1.406     parser    334: 
                    335: @domedit[]
                    336: ^domdata[]
1.404     parser    337: #$paf.nodeName<br>
                    338: #$doc.documentElement.nodeName<br>
                    339: 
1.406     parser    340: ^show-xnode1[$xdoc.documentElement;0;1]
                    341: <hr>
                    342: ^show-xdoc2[$xdoc]
1.411     parser    343: <hr>
1.406     parser    344: 
                    345: @domxslt[]
                    346: ^domdata[]
1.405     parser    347: ^show-xdoc2[^xdoc.transform[global.xsl;$.param1[123/]]]
1.411     parser    348: <hr>
1.401     parser    349: 
                    350: @lsplit2[]
                    351: $path[/optics/]
                    352: $pathTable[^path.lsplit[/]]
                    353: ^pathTable.menu{
                    354:        ^if(def $pathTable.piece){
                    355:                =$pathTable.piece=
                    356:        }
                    357: }
                    358: 
1.395     parser    359: 
1.397     parser    360: @faceesize[]
                    361: $k(2)
                    362: $pict[^image::load[paf.gif]]
                    363: $small[^image::create($pict.width/$k;$pict.height/$k)]
1.398     parser    364: ^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;250)
1.397     parser    365: $response:body[^small.gif[]]
                    366: 
1.395     parser    367: @imageresize[]
                    368: $k(2)
                    369: $pict[^image::create(400*$k;200*$k)]
                    370: $pict.line-width(2)
1.444     paf       371: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    372: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-20;$pict.height-20;0+20;360-20;0xff0000)
1.395     parser    373: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
1.444     paf       374: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-20;0x0000ff)
                    375: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+20;360-20;0xff0000)
                    376: $response:body[^pict.gif[]]
1.395     parser    377: 
1.443     paf       378: #$small[^image::create($pict.width/$k;$pict.height/$k)]
1.396     parser    379: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0)
1.443     paf       380: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;0)
1.395     parser    381: 
1.443     paf       382: #$response:body[^small.gif[]]
1.395     parser    383: 
1.388     parser    384: 
                    385: @tintdefault[]
                    386: #$abc[abc]
                    387: $abc[33]
                    388: ^abc.int[z]
                    389: #^abc.int(123)
1.390     parser    390: 
                    391: @ifassignhash[]
                    392: $h[^if(1){$.a(1);$.a(2)}]
                    393: $h.a
1.387     parser    394: 
                    395: @ifpasshash[]
                    396: $a[$.e[a]]
                    397: $b[$.e[b]]
1.389     parser    398: ^ifpasshashdest[^if(1){$a;$b}]
1.387     parser    399: #$x[^if(1){$a}{$b}]
                    400: #^ifpasshashdest[$x]
                    401: 
                    402: @ifpasshashdest[p]
                    403: $p.e
                    404: 
                    405: @movedir[]
                    406: ^file:move[a;deeper/a]
1.386     parser    407: 
                    408: @replace[]
                    409: $a[12^;3]
                    410: ^a.replace[^table::set{from    to
                    411: 2^;    !
                    412: }]
                    413: 
1.385     parser    414: 
                    415: @set[]
                    416: ^setdata[]
                    417: ^a.add[$b]
                    418: add:$a.3<br>
                    419: 
                    420: ^setdata[]
                    421: ^a.sub[$b]
                    422: sub2:$a.2<br>
                    423: sub1:$a.1<br>
                    424: 
                    425: ^setdata[]
                    426: $c[^a.union[$b]]
                    427: union3:$c.3<br>
                    428: union2:$c.2<br>
                    429: 
                    430: ^setdata[]
                    431: $c[^a.intersection[$b]]
                    432: intersection3:$c.3<br>
                    433: intersection2:$c.2<br>
                    434: 
                    435: ^setdata[]
                    436: intersects:^if(^a.intersects[$b]){y;n}<br>
                    437: intersects2:^if(^a.intersects[ ]){y;n}<br>
                    438: 
                    439: 
                    440: <hr>
                    441: 
                    442: @setdata[]
                    443: $a[$.1[a1] $.2[a2]]
                    444: $b[        $.2[b2] $.3[b3]]
                    445: 
1.383     parser    446: 
1.384     parser    447: @hash[]
                    448: $h[^hash::create[$._default[123]]]
                    449: $h.paf[not kretin]
                    450: $h.paf<br>
                    451: =$h.that=<br>
                    452: 
                    453: @methresult[]
                    454: $result[^table::set{1}]
1.377     parser    455: 
1.381     parser    456: @terror[]
                    457: ^error[method z must be called with z]
                    458: 
1.380     parser    459: @syntax1[]
                    460: #^a[^b]
                    461: 
                    462: @syntax2[]
1.381     parser    463: #^a[
1.379     parser    464: 
1.377     parser    465: @ssave[]
                    466: $abc[abc]
                    467: ^abc.save[abc]
1.376     parser    468: 
                    469: @calendar[]
                    470: 2001;11:<br>
                    471: $week_days[^date:calendar[rus](2001;11)]
                    472: <pre>
                    473: ^week_days.menu{^for[wday](0;7){^if($week_days.$wday){$week_days.$wday;&nbsp^;&nbsp^;} }<br>}
                    474: </pre>
1.372     parser    475: 
1.375     parser    476: @thash[]
                    477: $table[^table::set{id  name    age
                    478: 1      paf     278
                    479: 2      пиф     234
                    480: }]
                    481: $hash[^table.hash[id;^table::set[nameless]{id
                    482: name}]]
                    483: $hash.2.id $hash.2.name $hash.2.age
                    484: 
1.372     parser    485: @tdef[]
                    486: $s[0]
                    487: if 0=^if($s){}{n}<br>
                    488: if def 0=^if(def $s){y}{}<br>
                    489: <hr>
1.371     parser    490: 
                    491: @ford[]
1.374     parser    492: ^for[i](0;5){$i}{($i)}
1.368     parser    493: 
1.370     parser    494: @tif[]
                    495: ^if[def]{y;n}
                    496: 
1.368     parser    497: @image[]
                    498: $pict[^image::create(400;200)]
1.379     parser    499: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    500: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
                    501: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
                    502: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
                    503: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
1.368     parser    504: $response:body[^pict.gif[]]
                    505: 
                    506: 
1.366     parser    507: 
1.369     parser    508: @mail2[]
1.367     parser    509: ^mail:send[
1.369     parser    510:        $.content-type[$.value[text/plain] $.charset[windows-1251]]
                    511:        $.from[Александр Петросян <paf@design.ru>]
1.367     parser    512:        $.to[Александр Петросян <paf@design.ru>]
1.369     parser    513:        $.subject[проверка]
                    514:        $.body[проверка]
1.367     parser    515: ]
                    516: 
1.366     parser    517: @cookie[]
1.367     parser    518: $env:HTTP_COOKIE<br>
                    519: 
                    520: #$cookie:переменная[test тест ТЕСТ2]
                    521: =$cookie:переменная=<br>
                    522: #$cookie:переменная2[test тест ТЕСТ3]
                    523: =$cookie:переменная2=<br>
1.412     parser    524: =$cookie:CLASS.переменная2=<br>
1.365     parser    525: 
                    526: @response[]
                    527: #^if($form:reload){
                    528:        $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
                    529: #}
1.364     parser    530: 
                    531: @xslt[]
                    532: ^xdata[]
1.407     parser    533: $transformed[^xdoc.transform[global.xsl;$.param1[123/]]]
                    534: ^show-xdoc2[$transformed]
1.364     parser    535: 
                    536: @regexp2[]
                    537: $s[  select]
                    538: $s[^s.match[^^\s*][]{!}]
                    539: $s
                    540: 
                    541: @header[]
                    542: $response:refresh[
                    543:        $.value[0]
                    544:        $.url[http://design.ru?a=^taint[123]]
                    545: ]
                    546: 
                    547: @ttablerem[]
                    548: $table[^table::load[a.cfg]]
                    549: ^table.menu{$table.a}
                    550: 
                    551: @tconnect[]
                    552: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
                    553: $tables[^table::sql{show tables}]
                    554: #$cols[^tables.columns[]]
                    555: #$cols.column
                    556: ^tables.menu{
                    557:        $tables.[Tables_in_test]<br>
                    558: }
                    559: }
                    560: 
                    561: @pcre[]
                    562: $s[1 2]
                    563: ^s.match[\s;ig]{!}
                    564: #^s.match[\d;ig]{!}
                    565: 
                    566: 
                    567: @regexp[]
                    568: $s[abcАБВ]
                    569: ^if(^s.match[б][i]){y}{n}
                    570: 
                    571: @mail[]
                    572: #$ORIGINS(1)
                    573: ^mail:send[
                    574:        $.from[paf@design.ru]
                    575:        $.to[paf@design.ru]
                    576:        $.body[1
                    577:        
                    578:        2
                    579:        
                    580:        
                    581:                3]
                    582: ]
                    583: 
                    584: @exec[]
1.370     parser    585: $a[^file::exec[fc.exe;;a;b]]
1.364     parser    586: $a.status|$a.stderr<hr>
                    587: 
                    588: @fori[][i]
                    589: ^for[i](1;3){... =$i= ...}
                    590: 
                    591: @xdata[]
                    592: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
1.468     paf       593: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
                    594: <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"-->
                    595: 
                    596: <people>
                    597:        <man id="1" имя="word слово">
                    598:                <name>P&#171^;AF        B</name>
                    599:        </man>
                    600:                <man id="2">
                    601:                        <name>ПИФ^taint[&]</name>
                    602:                </man>
                    603: </people>
                    604: }]
1.364     parser    605: 
                    606: @xml[]
                    607: ^xdata[]
                    608: 
                    609: ^show-xdoc2[$xdoc]<hr>
                    610: #^show-xnode1[$xdoc]<hr>
                    611: $people[^xdoc.select[*/man]]
                    612: #^show1[]
                    613: ^show-xnodes1[$people]<hr>
                    614: #^people.0.owner.hren[]
                    615: 
1.393     parser    616: ^show-xnode1[^xdoc.selectSingle[*/man[2]/name];0;1]<hr>
1.364     parser    617: 
                    618: by id:
                    619: ^show-xnode1[^xdoc.getElementById[1];0;1]
                    620: <hr>
                    621: 
                    622: @show1[array]
                    623: ^for[i](0;^array._count[]-1){
                    624:     $x[$array.$i]
                    625:        $x.firstChild.nodeValue: 
                    626:                $pattributes[$x.parentNode.attributes]
                    627:                ^if(^pattributes._count[]){
                    628:                        $pattributes.id.name=$pattributes.id.nodeValue
                    629:                }
                    630:        <br>
                    631: }
                    632:        
                    633: @show-xnodes1[array][i]
                    634: ^for[i](0;^array._count[]-1){
                    635:        ^show-xnode1[$array.$i;0;1]
                    636: }
                    637: 
                    638: @show-xnode1[x;level;single][l]
                    639: ^if(def $x){
                    640:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
                    641:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    642:        &lt^;$x.nodeName
                    643:            $pairs[$x.attributes]
                    644:            ^if(def $pairs){
                    645:                $names[^pairs._keys[]]
                    646:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
                    647:            }
                    648:            &gt^;
                    649:     }{
                    650:        [$x.nodeType]
                    651:     }
                    652:     
                    653:     ^if(def $x.nodeValue){$x.nodeValue}<br>
                    654:     ^show-xnode1[$x.firstChild]($level+1)
                    655:     ^if(!$single){
                    656:            ^show-xnode1[$x.nextSibling]($level)
                    657:     }
                    658: 
                    659:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    660:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
                    661:     }
                    662: }
                    663: 
                    664: @show-xdoc2[xdoc]
1.473     paf       665: ^xdoc.save[out/save.xml;
1.364     parser    666: #      $.encoding[windows-1251]
                    667:        $.method[xml]
                    668: ]
                    669: $file[^xdoc.file[
                    670: #      $.encoding[windows-1251]
                    671:        $.method[html]
                    672: ]]
1.473     paf       673: ^file.save[text;out/save_file.html]
1.463     paf       674: <pre>^taint[^xdoc.string[]]
1.364     parser    675: #      $.encoding[windows-1251]
1.413     parser    676: #      $.method[html]
1.364     parser    677: #]]
1.413     parser    678: </pre>
1.435     paf       679: 

E-mail: