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

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

E-mail: