Annotation of parser3/www/htdocs/index.html, revision 1.21

1.15      paf         1: #@USE
                      2: #z/t.p
                      3: 
                      4: @autoz[]
                      5: $request:charset[windows-1251]
                      6: $response:charset[windows-1251]
                      7: $response:content-type[$.value[text/html]$.charset[$response:charset]]
                      8: 
                      9: @main[]
1.21    ! paf        10: ^locate_by_expr[]
1.18      paf        11: #^method_junction_params{...}
1.17      paf        12: #^verifyCookie[paf]
1.21    ! paf        13: #^execlangs[]
1.16      paf        14: #$t[^tobjeresult[]]$t.a
                     15: #^xmlprobs[]
1.15      paf        16: #^doubleprobs[]
                     17: #^math:random(-10)
                     18: #^divnamestop[]
                     19: #^arrayclone[]
                     20: #^operator_tricks[]
                     21: #^xoutputrusattr[]
                     22: #^xdocset1[]
                     23: #^regexp3[]
                     24: #^exec2[]
                     25: #^tlock[]
                     26: #^xmloutattrwithoutvalue[]
                     27: #^precisionProblem[]
                     28: #^xpath[]
                     29: #^ttablesetlang[]
                     30: #^mail3[]
                     31: #^ttime[]
                     32: #^tupper[]
                     33: #^treplace[]
                     34: #^xslt2[]
                     35: #^tcache2[]
                     36: #$ORIGINS(1)
                     37: #$t[^table::set{a b} ^table::set{c d}]
                     38: #^ttaintuntaint[]
                     39: #^tappend2[]
                     40: #^badvsnprintf[]
                     41: #^badoracequoting[]
                     42: #^badconstructors[]
                     43: #^xloadwrongtable[]
                     44: #^xsetwrongtable[]
                     45: #^if($form:test){y}{n}
                     46: #^tablecolumnerror[]
                     47: #^roll[]
                     48: #^cookie2[]
                     49: #^tableset[]
                     50: #^math:PI.format{%.30f}
                     51: #^xchildren[]
                     52: #^thashforeach3[]
                     53: #^thashforeach2[]
                     54: #^thashforeach[]
                     55: #^thashdelete[]
                     56: #^connect[mysql://user:pass@cd.rinet.ru/db]{^void:sql{z} }
                     57: #^tappend[]
                     58: #^sappend[]
                     59: #^eval(10\3)<br>
                     60: #^tform[]
                     61: #^formattest[]
                     62: #^filelist[]
                     63: #^connect[mysql://user:pass@host]{ }
                     64: #^безнадёжна_попытка_поправить_непоправимое[]
                     65: #^tcache[]
                     66: #^thashfileexp[]
                     67: #^tcounter[]
                     68: #^tablehash[]
                     69: #j^hashfile[]
                     70: #^formclass[]
                     71: #^hren[]
                     72: #^domedit[]
                     73: #^domxslt[]
                     74: #^lsplit2[]
                     75: #^faceesize[]
                     76: #^imageresize[]
                     77: #^ifassignhash[]
                     78: #^tintdefault[]
                     79: #$response:status[404]
                     80: #^ifpasshash[]
                     81: #^movedir[]
                     82: #^replace[]
                     83: #^set[]
                     84: #^hash[]<hr>
                     85: #$t[^methresult[]] ->$t
                     86: #^terror[]
                     87: #^ssave[]
                     88: #^calendar[]
                     89: #^thash[]
                     90: #^tdef[]
                     91: #^ford[]
                     92: #^tif[]
                     93: #^image[]
                     94: #^mail2[]
                     95: #^cookie[]
                     96: #^response[]
                     97: #^regexp2[]
                     98: #^ttablerem[]
                     99: #^pcre[]
                    100: #^regexp[]<hr>
                    101: #^mail[]
                    102: #^exec[]
                    103: #^fori[]
                    104: #^tconnect[]
                    105: #^xslt[]
                    106: #^xml[]
                    107: #^header[]
                    108: <hr>
                    109: OK
1.21    ! paf       110: 
        !           111: @locate_by_expr[]
        !           112: $t[^table::create{a    b
        !           113: 1      nok
        !           114: 2      ok
        !           115: 3      nok
        !           116: }]
        !           117: ^if(^t.locate($t.a==2)){$t.b}{n}
1.17      paf       118: 
                    119: @method_junction_params[param]
                    120: ^if($param is junction){junction}{ne junction}
                    121: 
                    122: @verifyCookie[value] 
                    123: ^if($cookie:dummyvote eq $value){ 
                    124:        $result(1) 
                    125: }{ 
                    126:        $cookie:dummyvote[$value] 
                    127:        $result(0) 
                    128: }
1.16      paf       129: 
                    130: @execlangs[]
1.20      paf       131: $f[^file::exec[test.pl]]
1.16      paf       132: ^process{$f.text}
                    133: #$c[^t.columns[]]
                    134: #^c.menu{
                    135: #* $c.column<br>
                    136: #}
                    137: =$t.c=
                    138: 
                    139: @tobjeresult[]
                    140: ^table::create{a
                    141: 12}
1.15      paf       142: 
                    143: @xmlprobs[]
                    144: $xmlDataType[^xdoc::load[program.xml]]
                    145: #<pre>^taint[^xmlDataType.string[]]
                    146: $xmlDataTypes[^xmlDataType.select[programs/program[@id=4]/data]]
                    147: #=^xmlDataTypes._count[]=
                    148: =^xmlDataTypes.0.getAttribute[type-id]=
                    149: 
                    150: @doubleprobs[]
                    151: $1(^math:radians(180))
                    152: $2($math:PI)
                    153: ^if(^1.format[%.10f]==^2.format[%.10f]){y;n}
                    154: ^if($1==$2){y;n}
                    155: ^if(^math:radians(180)==$math:PI){y;n}
                    156: 
                    157: 
                    158: @divnamestop[]
                    159: $a(10)
                    160: ^eval($a\3)
                    161: 
                    162: @arrayclone[]
                    163: $t[^table::create{a    b
                    164: 1      11
                    165: 2      22
                    166: }]
                    167: $c[^table::create[$t]]
                    168: ^c.append{2    33}
                    169: ^t.count[]
                    170: ^c.count[]
                    171: 
                    172: @operator_tricks[]
                    173: ^if(1){$a[^t[]]}
                    174: $a!
                    175: $a($b)
                    176: ^if(1){y}{n}
                    177: $MAIN:a(^t[] eq OK)
                    178: #$MAIN:a(1)
                    179: ^if($a){y}{n}
                    180: #^if(1){y}{n}
                    181: $form:if
                    182: $a[$.n[1]]
                    183: $a.if
                    184: 
                    185: @xoutputrusattr[]
                    186: $d[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?><d attr="привет"/>}]
                    187: ^show_xdoc2[$d]
                    188: 
                    189: @xdocset1[]
                    190: $d[^xdoc::set{<?xml version="1.0"?><d>=^taint[&]=</d>}]
                    191: ^show_xdoc2[$d]
                    192: 
                    193: @regexp3[]
                    194: $s[abcАБВ]
                    195: ^if(^s.match[][i]){y}{n}
                    196: 
                    197: 
                    198: @exec2[]
                    199: $a[^file::exec[bin/t.cmd]]
                    200: <pre>^taint[$a.text]</pre>|$a.status|$a.stderr<hr>
                    201: 
                    202: 
                    203: @tlock[]
                    204: ^file:lock[lockfile]{
                    205:        code
                    206: }
                    207: 
                    208: @xmloutattrwithoutvalue[]
                    209: #$ORIGINS(1)
                    210: $doc[^xdoc::set{<?xml version="1.0"?><doc background="">zz</doc>}]
                    211: $doc[^doc.transform[global.xsl]]
                    212: =^taint[html][^doc.string[$.method[html]]]=
                    213: 
                    214: 
                    215: 
                    216: @precisionProblem[]
                    217: $a[123456789012345678901234567890]
                    218: $b(^a.double[])
                    219: ^b.format{%.20E}
                    220: <hr>
                    221: ^eval(2*2)
                    222: 
                    223: @xpath[]
                    224: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?>
                    225: <document><block><p>привет</p></block></document>
                    226: }]
                    227: #^show_xdoc2[$xdoc]
                    228: $node[^xdoc.selectSingle[/document/block/p]]
                    229: ^if(def $node){
                    230:        ^if($node is string){
                    231:                $node
                    232:        }{
                    233:        ^if($node is hash){
                    234:                ^node._count[]
                    235:        }{
                    236:                $node.nodeType
                    237:        }
                    238:        }
                    239: #$node.firstChild.nodeValue
                    240: }{
                    241:        node not found
                    242: }
                    243: 
                    244: 
                    245: @ttablesetlang[]
                    246: $a-tab-b[a     b
                    247: 1      2]
                    248: 
                    249: $t[^table::set{$a-tab-b}]
                    250: =$t.a=
                    251: <hr>
                    252: 
                    253: $t[^table::set[nameless]{^taint[$a-tab-b]}]
                    254: =$t.0=
                    255: <hr>
                    256: 
                    257: $t[^table::set{^untaint{^taint[$a-tab-b]}}]
                    258: =$t.a=
                    259: 
                    260: #^t.append{1   2}
                    261: 
                    262: @mail3[]
                    263: ^mail:send[
                    264:        $.from[Александр Петросян <paf@design.ru>]
                    265:        $.to[Александр Петросян <paf@design.ru>]
                    266:        $.subject[проверка4]
                    267:        $.body[
                    268:                $.text[
                    269:                        $.content-type[$.value[text/plain] $.charset[windows-1251]]
                    270:                        $.body[проверка]
                    271:                ]
                    272:                $.attachment[
                    273:                        $.value[^file::load[text;index.html]]
                    274:                        $.file-name[привет всем.html]                   
                    275:                ]
                    276:        ]
                    277: ]
                    278: 
                    279: 
                    280: @ttime[]
                    281: $now[^date::now[]]
                    282: $now.hour:$now.minute
                    283: 
                    284: @tupper[]
                    285: $t[abcABCабвАБВ]
                    286: $t<br>
                    287: ^t.upper[]
                    288: 
                    289: @treplace[]
                    290: $copy-paste-clean[^table::set{a b
                    291: .      _
                    292: ,      _
                    293: +      _
                    294: &      _
                    295: ?      _
                    296: =      _}]
                    297: 
                    298: $cache_key[^taint[в.а,с+я]&был?тут=недавно.cache]
                    299: # почему-то этот replace роняет апач в 500 ошибку :(
                    300: #^cache_key.replace[$copy-paste-clean]
                    301: $test[abc]
                    302: ^test.save[$cache_key]saved<br>
                    303: $cache[^file:list[.;\.cache^$]]
                    304: ^file:delete[$cache_key]deleted($cache.name)<br>
                    305: 
                    306: 
                    307: 
                    308: @xslt2[]
                    309: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?>
                    310: <document><block><p>привет</p></block></document>
                    311: }]
                    312: ^show_xdoc2[$xdoc]
                    313: ^show_xdoc2[^xdoc.transform[templates/_document.xslt]]
                    314: <hr>
                    315: 
                    316: 
                    317: @tcache2[]
                    318: ^cache[$DB_HOME/keyключ](2){
                    319:        ^math:random(100)
                    320: }
                    321: 
                    322: @ttaintuntaint[]
                    323: <!-- некий панковский заголовок с буковкой C в круглых скобках -->^taint[html][
                    324: 
                    325: ]zz
                    326: <hr>
                    327: ^untaint[html]{1^taint[  ]2  3}
                    328: 
                    329: 
                    330: @tappend2[]
                    331: $t[^table::set{a       b}]^t.append{1  2}$t.a
                    332: 
                    333: @badvsnprintf[]
                    334: ^connect[zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz]{
                    335: }
                    336: 
                    337: 
                    338: @badoracequoting[]
                    339: $SQL.connect-string[oracle://webspb:webpwd@mts?NLS_LANG=RUSSIAN_AMERICA.CL8MSWIN1251&NLS_DATE_FORMAT=YYYY-MM-DD HH24:MI:SS]
                    340: ^connect[$SQL.connect-string]{
                    341: ^void:sql{delete from paf}
                    342: ^void:sql{insert into paf values (1, '$form:text')}
                    343: $paf[^table::sql{select * from paf}]
                    344: ^paf.menu{
                    345:        $paf.id: ^untaint{$paf.block}<hr>
                    346: 
                    347: }
                    348: <hr>
                    349: 
                    350: 
                    351: ^rem{
                    352: $news[^table::sql{select description from news}[$.limit(3)]]
                    353: ^news.menu{
                    354:        ^untaint{$news.description}<hr>
                    355: 
                    356: }
                    357: <hr>
                    358: }
                    359: 
                    360: $tables[^table::sql{select table_name from user_tables}]
                    361: ^tables.menu{
                    362: $tables.table_name<br>
                    363: }
                    364: 
                    365: }
                    366: <hr>
                    367: $env:PATH
                    368: 
                    369: @badconstructors[]
                    370: $bred[^string::length[]]
                    371: $bred[^response::clear[]]
                    372: $bred[^int::int[]]
                    373: 
                    374: 
                    375: @xloadwrongtable[]
                    376: $constr[^xdoc::load[wrongtable.xml]]
                    377: ^show_xdoc2[$constr]
                    378: 
                    379: @xsetwrongtable[]
                    380: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251z" ?>
                    381: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    382: 
                    383: 
                    384: @tablecolumnerror[]
                    385: $t[^table::set{a}]
                    386: $t.$a
                    387: 
                    388: @roll[]
                    389: #$date[^date::set(1970;1;2)]
                    390: #^date.roll[month](-1)
                    391: $date[^date::set(2038;1;1)]
                    392: ^date.roll[month](+1)
                    393: $date.year  $date.month  $date.day
                    394: 
                    395: @cookie2[]
                    396: #=$cookie:clientType[$.value[test]]=<br>
                    397: =$cookie:clientType=<br>
                    398: 
                    399: 
                    400: @tableset[]
                    401: $a[^table::set{a
                    402: 1
                    403: 2}]
                    404: ^eval(100\$a)
                    405: 
                    406: 
                    407: 
                    408: @zzz[]
                    409: 
                    410: 
                    411: $constructor[
                    412: <block1 name="main_srvr" type="0" label="Основное тело" />
                    413: <block2 name="main_srvr2" type="0" label="Основное тело" />
                    414: ]
                    415: 
                    416: $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?>
                    417: <block-list>^untaint[as-is]{$constructor}</block-list>}]
                    418: 
                    419: $children[$constr.documentElement.childNodes]
                    420: ^if($children){
                    421: ^for[i](1;^children._count[]){
                    422:        $node[$children.$i]
                    423:        $node.nodeName<br>
                    424: }
                    425: }
                    426:    
                    427: 
                    428: @thashforeach3[]
                    429: $h[
                    430:        $.a[1] 
                    431:        $.b[2]
                    432: ]
                    433: $c[^table::set{a
                    434: ^h.foreach[key;value]{$value
                    435: }}]
                    436: $c.a
                    437: 
                    438: @thashforeach2[]
                    439: $h[
                    440:        $.a[1] 
                    441:        $.b[2]
                    442: ]
                    443: $c[
                    444: ^h.foreach[key;value]{
                    445:        $.$key[$value]
                    446: }
                    447: ]
                    448: $c.b
                    449: 
                    450: @thashforeach[]
                    451: $h[
                    452:        $.a[1] 
                    453:        $.b[2]
                    454: ]
                    455: ^h.foreach[key;value]{
                    456:        $key=$value<br>
                    457: }
                    458: 
                    459: @thashdelete[]
                    460: $h[$.a[1] $.b[2]]
                    461: was:<br>
                    462: count=^h._count[] <br>
                    463: b='$h.b' <br>
                    464: 
                    465: ^h.delete[b] 
                    466: 
                    467: now:<br>
                    468: count=^h._count[] <br>
                    469: b='$h.b' 
                    470: 
                    471: @sappend[]
                    472: $test[123]
                    473: ^test.save[test]
                    474: ^test.save[append;test]
                    475: 
                    476: @tappend[]
                    477: $test[^table::set{a    b
                    478: a1     b1}]
                    479: ^test.save[test]
                    480: $test[^table::set{a    b
                    481: a2     b2}]
                    482: ^test.save[append;test]
                    483: 
                    484: 
                    485: @tform[]
                    486: ^if(def $form:new_file){y}{n}
                    487: <form method="post" enctype="multipart/form-data">
                    488: <input type="file" name="new_file" />
                    489: <input type=submit>
                    490: </input>
                    491: 
                    492: @formattest[]
                    493: $size(15.124)
                    494: 
                    495: ^size.format{%.2f}
                    496: 
                    497: @filelist[]
                    498: $html[^file:list[.;\.html^$]]
                    499: ^html.menu{
                    500:        $html.name<br>
                    501: }
                    502: <hr>
                    503: 
                    504: @безнадёжна_попытка_поправить_непоправимое[]
                    505: $dom_from_disk[^xdoc::load[input.xml]]
                    506: $dom_created_in_air[^xdoc::create[doc]]
                    507: ^dom_created_in_air.documentElement.appendChild[^dom_from_disk.documentElement.cloneNode(1)]
                    508: ^show_xdoc2[$dom_created_in_air]
                    509: 
                    510: 
                    511: @tcache[]
                    512: #^hashfile:clear[cache]
                    513: $code[^hashfile::open[$DB_HOME;cache]]
                    514: ^code.cache[key](2){
                    515:        ^math:random(100)
                    516: #      ^code.delete[]
                    517: }
                    518: 
                    519: @thashfileexp[]
                    520: $hf[^hashfile::open[$DB_HOME;hashfile]]
                    521: $hf.paf[$.value[крут] $.expires(3)]
                    522: paf=$hf.paf
                    523: <hr>
                    524: ^hf.foreach[key;value]{
                    525:        $key=$value<br>
                    526: }
                    527: <hr>
                    528: $hash[^hf.hash[]]
                    529: =$hash.paf=
                    530: <hr>
                    531: 
                    532: @tcounter[]
                    533: ^tcounterone[$DB_HOME]
                    534: other root:
                    535: ^tcounterone[${DB_HOME}2]
                    536: again, first:
                    537: ^tcounterone[$DB_HOME]
                    538: 
                    539: @tcounterone[DB_HOME]
                    540: $counter[^hashfile::open[$DB_HOME;counter]]
                    541: #^counter.clear[]
                    542: ^counter.transaction{
                    543: #      $counter.value(10)
                    544:        $counter.value($counter.value+1)
                    545: #      ^counter.delete[value]
                    546:        $counter.value
                    547: }
                    548: <hr>
                    549: ^rem{
                    550: $hash[^counter.hash[]]
                    551: =$hash.value=
                    552: <hr>
                    553: }
                    554: 
                    555: @tablehash[]
                    556: $productList[^table::set{id    name
                    557: 1      носки
                    558: 2      валенки
                    559: 3      ушанка
                    560: }]
                    561: 
                    562: #скажем, у первого дилера
                    563: $firstPriceList[^table::set{id price
                    564: 1      0.3
                    565: 3      1000
                    566: }]
                    567: 
                    568: $firstPriceHash[^firstPriceList.hash[id]]
                    569: 
                    570: ^productList.menu{
                    571:     продукт "$productList.name" | цена у first: $firstPriceHash.[$productList.id].price<br>
                    572: }
                    573: 
                    574: 
                    575: @hashfile[]
                    576: $hf[^hashfile::assign[hashfile]]
                    577: #$hf.paf[крут5]
                    578: paf=$hf.paf
                    579: 
                    580: @formclass[]
                    581: ^$form:CLASS.a=$form:CLASS.a
                    582: 
                    583: @domdata[]
                    584: ^if(1){
                    585: #      $a{^hren[]}
                    586: }
                    587: $a
                    588: $xdoc[^xdoc::create[doc]]
                    589: $doc[$xdoc.documentElement]
                    590: $name[^doc.appendChild[^xdoc.createElement[name]]]
                    591: $text[^name.appendChild[^xdoc.createTextNode[петросян&coz]]]
                    592: ^untaint[as-is]{=$text.nodeValue=}
                    593: 
                    594: @domedit[]
                    595: ^domdata[]
                    596: #$paf.nodeName<br>
                    597: #$doc.documentElement.nodeName<br>
                    598: 
                    599: ^show_xnode1[$xdoc.documentElement;0;1]
                    600: <hr>
                    601: ^show_xdoc2[$xdoc]
                    602: <hr>
                    603: 
                    604: @domxslt[]
                    605: ^domdata[]
                    606: ^show_xdoc2[^xdoc.transform[global.xsl;$.param1[123/]]]
                    607: <hr>
                    608: 
                    609: @lsplit2[]
                    610: $path[/optics/]
                    611: $pathTable[^path.lsplit[/]]
                    612: ^pathTable.menu{
                    613:        ^if(def $pathTable.piece){
                    614:                =$pathTable.piece=
                    615:        }
                    616: }
                    617: 
                    618: 
                    619: @faceesize[]
                    620: $k(2)
                    621: $pict[^image::load[paf.gif]]
                    622: $small[^image::create($pict.width/$k;$pict.height/$k)]
                    623: ^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;250)
                    624: $response:body[^small.gif[]]
                    625: 
                    626: @imageresize[]
                    627: $k(2)
                    628: $pict[^image::create(400*$k;200*$k)]
                    629: $pict.line-width(2)
                    630: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    631: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-20;$pict.height-20;0+20;360-20;0xff0000)
                    632: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
                    633: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-20;0x0000ff)
                    634: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+20;360-20;0xff0000)
                    635: $response:body[^pict.gif[]]
                    636: 
                    637: #$small[^image::create($pict.width/$k;$pict.height/$k)]
                    638: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0)
                    639: #^small.copy[$pict](0;0;$pict.width;$pict.height;0;0;$small.width;$small.height;0)
                    640: 
                    641: #$response:body[^small.gif[]]
                    642: 
                    643: 
                    644: @tintdefault[]
                    645: #$abc[abc]
                    646: $abc[33]
                    647: ^abc.int[z]
                    648: #^abc.int(123)
                    649: 
                    650: @ifassignhash[]
                    651: $h[^if(1){$.a(1);$.a(2)}]
                    652: $h.a
                    653: 
                    654: @ifpasshash[]
                    655: $a[$.e[a]]
                    656: $b[$.e[b]]
                    657: ^ifpasshashdest[^if(1){$a;$b}]
                    658: #$x[^if(1){$a}{$b}]
                    659: #^ifpasshashdest[$x]
                    660: 
                    661: @ifpasshashdest[p]
                    662: $p.e
                    663: 
                    664: @movedir[]
                    665: ^file:move[a;deeper/a]
                    666: 
                    667: @replace[]
                    668: $a[12^;3]
                    669: ^a.replace[^table::set{from    to
                    670: 2^;    !
                    671: }]
                    672: 
                    673: 
                    674: @set[]
                    675: ^setdata[]
                    676: ^a.add[$b]
                    677: add:$a.3<br>
                    678: 
                    679: ^setdata[]
                    680: ^a.sub[$b]
                    681: sub2:$a.2<br>
                    682: sub1:$a.1<br>
                    683: 
                    684: ^setdata[]
                    685: $c[^a.union[$b]]
                    686: union3:$c.3<br>
                    687: union2:$c.2<br>
                    688: 
                    689: ^setdata[]
                    690: $c[^a.intersection[$b]]
                    691: intersection3:$c.3<br>
                    692: intersection2:$c.2<br>
                    693: 
                    694: ^setdata[]
                    695: intersects:^if(^a.intersects[$b]){y;n}<br>
                    696: intersects2:^if(^a.intersects[ ]){y;n}<br>
                    697: 
                    698: 
                    699: <hr>
                    700: 
                    701: @setdata[]
                    702: $a[$.1[a1] $.2[a2]]
                    703: $b[        $.2[b2] $.3[b3]]
                    704: 
                    705: 
                    706: @hash[]
                    707: $h[^hash::create[$._default[123]]]
                    708: $h.paf[not kretin]
                    709: $h.paf<br>
                    710: =$h.that=<br>
                    711: 
                    712: @methresult[]
                    713: $result[^table::set{1}]
                    714: 
                    715: @terror[]
                    716: ^error[method z must be called with z]
                    717: 
                    718: @syntax1[]
                    719: #^a[^b]
                    720: 
                    721: @syntax2[]
                    722: #^a[
                    723: 
                    724: @ssave[]
                    725: $abc[abc]
                    726: ^abc.save[abc]
                    727: 
                    728: @calendar[]
                    729: 2001;11:<br>
                    730: $week_days[^date:calendar[rus](2001;11)]
                    731: <pre>
                    732: ^week_days.menu{^for[wday](0;7){^if($week_days.$wday){$week_days.$wday;&nbsp^;&nbsp^;} }<br>}
                    733: </pre>
                    734: 
                    735: @thash[]
                    736: $table[^table::set{id  name    age
                    737: 1      paf     278
                    738: 2      пиф     234
                    739: }]
                    740: $hash[^table.hash[id;^table::set[nameless]{id
                    741: name}]]
                    742: $hash.2.id $hash.2.name $hash.2.age
                    743: 
                    744: @tdef[]
                    745: $s[0]
                    746: if 0=^if($s){}{n}<br>
                    747: if def 0=^if(def $s){y}{}<br>
                    748: <hr>
                    749: 
                    750: @ford[]
                    751: ^for[i](0;5){$i}{($i)}
                    752: 
                    753: @tif[]
                    754: ^if[def]{y;n}
                    755: 
                    756: @image[]
                    757: $pict[^image::create(400;200)]
                    758: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-1;$pict.height-1;0;360;0x000000)
                    759: ^pict.arc($pict.width/2;$pict.height/2;$pict.width-10;$pict.height-10;0+10;360-10;0xff0000)
                    760: #^pict.arc($pict.width/2;$pict.height/2;$pict.width;$pict.height;0;360;0xff0000)
                    761: ^pict.circle($pict.width/2;$pict.height/2;$pict.height/2-10;0x0000ff)
                    762: ^pict.arc($pict.width/2;$pict.height/2;$pict.height-26;$pict.height-26;0+10;360-10;0xff0000)
                    763: $response:body[^pict.gif[]]
                    764: 
                    765: 
                    766: 
                    767: @mail2[]
                    768: ^mail:send[
                    769:        $.content-type[$.value[text/plain] $.charset[windows-1251]]
                    770:        $.from[Александр Петросян <paf@design.ru>]
                    771:        $.to[Александр Петросян <paf@design.ru>]
                    772:        $.subject[проверка]
                    773:        $.body[проверка]
                    774: ]
                    775: 
                    776: @cookie[]
                    777: $env:HTTP_COOKIE<br>
                    778: 
                    779: #$cookie:переменная[test тест ТЕСТ2]
                    780: =$cookie:переменная=<br>
                    781: #$cookie:переменная2[test тест ТЕСТ3]
                    782: =$cookie:переменная2=<br>
                    783: =$cookie:CLASS.переменная2=<br>
                    784: 
                    785: @response[]
                    786: #^if($form:reload){
                    787:        $response:refresh[$.value[0] $.url[./t.html?uri=$env:SERVER_NAME]]
                    788: #}
                    789: 
                    790: @xslt[]
                    791: ^xdata[]
                    792: $transformed[^xdoc.transform[global.xsl;$.param1[123/]]]
                    793: ^show_xdoc2[$transformed]
                    794: 
                    795: @regexp2[]
                    796: $s[  select]
                    797: $s[^s.match[^^\s*][]{!}]
                    798: $s
                    799: 
                    800: @header[]
                    801: $response:refresh[
                    802:        $.value[0]
                    803:        $.url[http://design.ru?a=^taint[123]]
                    804: ]
                    805: 
                    806: @ttablerem[]
                    807: $table[^table::load[a.cfg]]
                    808: ^table.menu{$table.a}
                    809: 
                    810: @tconnect[]
                    811: ^connect[mysql://test:test@paf/test?charset=cp1251_koi8&compress=1&timeout=1&named_pipe=1]{
                    812: $tables[^table::sql{show tables}]
                    813: #$cols[^tables.columns[]]
                    814: #$cols.column
                    815: ^tables.menu{
                    816:        $tables.[Tables_in_test]<br>
                    817: }
                    818: }
                    819: 
                    820: @pcre[]
                    821: $s[1 2]
                    822: ^s.match[\s;ig]{!}
                    823: #^s.match[\d;ig]{!}
                    824: 
                    825: 
                    826: @regexp[]
                    827: $s[abcАБВ]
                    828: ^if(^s.match[б][i]){y}{n}
                    829: 
                    830: @mail[]
                    831: #$ORIGINS(1)
                    832: ^mail:send[
                    833:        $.from[paf@design.ru]
                    834:        $.to[paf@design.ru]
                    835:        $.body[1
                    836:        
                    837:        2
                    838:        
                    839:        
                    840:                3]
                    841: ]
                    842: 
                    843: @exec[]
                    844: $a[^file::exec[fc.exe;;a;b]]
                    845: $a.status|$a.stderr<hr>
                    846: 
                    847: @fori[][i]
                    848: ^for[i](1;3){... =$i= ...}
                    849: 
                    850: @xdata0[]
                    851: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
                    852: $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?>
                    853: <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"-->
                    854: <people>
                    855:        <man id="1" имя="word слово">
                    856:                <name>P&#171^;AF        B</name>
                    857:        </man>
                    858:                <man id="2">
                    859:                        <name>ПИФ^taint[&]</name>
                    860:                </man>
                    861: </people>
                    862: }]
                    863: 
                    864: @xdata[]
                    865: #$response:content-type[$.value[text/html] $.charset[windows-1251]]
                    866: $xdoc[^xdoc::set{^process{<?xml version="1.0" encoding="windows-1251"?>
                    867: <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"-->
                    868: <people>
                    869:        <man id="1" имя="word слово">
                    870:                <name>P&#171^;AF        B</name>
                    871:        </man>
                    872:                <man id="2">
                    873:             <name>ПИФ^taint[&]</name>
                    874:                </man>
                    875: </people>
                    876: }}]
                    877: 
                    878: @xml[]
                    879: ^xdata[]
                    880: 
                    881: ^show_xdoc2[$xdoc]<hr>
                    882: #^show_xnode1[$xdoc]<hr>
                    883: $people[^xdoc.select[*/man]]
                    884: #^show1[]
                    885: ^show_xnodes1[$people]<hr>
                    886: #^people.0.owner.hren[]
                    887: 
                    888: ^show_xnode1[^xdoc.selectSingle[*/man[2]/name];0;1]<hr>
                    889: 
                    890: by id:
                    891: ^show_xnode1[^xdoc.getElementById[1];0;1]
                    892: <hr>
                    893: 
                    894: @show1[array]
                    895: ^for[i](0;^array._count[]-1){
                    896:     $x[$array.$i]
                    897:        $x.firstChild.nodeValue: 
                    898:                $pattributes[$x.parentNode.attributes]
                    899:                ^if(^pattributes._count[]){
                    900:                        $pattributes.id.name=$pattributes.id.nodeValue
                    901:                }
                    902:        <br>
                    903: }
                    904:        
                    905: @show_xnodes1[array][i]
                    906: ^for[i](0;^array._count[]-1){
                    907:        ^show_xnode1[$array.$i;0;1]
                    908: }
                    909: 
                    910: @show_xnode1[x;level;single][l]
                    911: ^if(def $x){
                    912:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}
                    913:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    914:        &lt^;$x.nodeName
                    915:            $pairs[$x.attributes]
                    916:            ^if(def $pairs){
                    917:                $names[^pairs._keys[]]
                    918:                ^names.menu{ $names.key="$pairs.[$names.key].nodeValue"}
                    919:            }
                    920:            &gt^;
                    921:     }{
                    922:        [$x.nodeType]
                    923:     }
                    924:     
                    925:     ^if(def $x.nodeValue){$x.nodeValue}<br>
                    926:     ^show_xnode1[$x.firstChild]($level+1)
                    927:     ^if(!$single){
                    928:            ^show_xnode1[$x.nextSibling]($level)
                    929:     }
                    930: 
                    931:     ^if($x.nodeType == $xnode:ELEMENT_NODE){
                    932:     ^for[l](0;$level-1){&nbsp^;&nbsp^;&nbsp^;&nbsp^;}&lt^;/$x.nodeName&gt^;<br>
                    933:     }
                    934: }
                    935: 
                    936: @show_xdoc2[xdoc]
                    937: ^xdoc.save[out/save.xml;
                    938: #      $.encoding[utf-8]
                    939:        $.method[xml]
                    940: ]
                    941: $file[^xdoc.file[
                    942:        $.encoding[utf-8]
                    943:        $.method[html]
                    944: ]]
                    945: ^file.save[text;out/save_file.html]
                    946: #$response:body[^xdoc.file[    $.media-type[text/paf]  ]]
                    947: <pre>^taint[html][^xdoc.string[
                    948:        $.method[html]
                    949: #      $.encoding[utF-8]
                    950: #      $.omit-xml-declaration[yes]
                    951: #      $.standalone[no]
                    952: #      -$.doctype-public[-//W3C//DTD XHTML]
                    953: #      -$.doctype-system[/a/b/c/]
                    954: #      $.indent[yes]
                    955: #      $.media-type[text/paf]
                    956: ]]
                    957: </pre>

E-mail: