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

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

E-mail: