|
|
| version 1.486, 2001/11/21 10:02:13 | version 1.525, 2002/01/15 16:02:42 |
|---|---|
| Line 1 | Line 1 |
| @auto[] | |
| $request:charset[windows-1251] | |
| $response:charset[windows-1251] | |
| $response:content-type[$.value[text/html]$.charset[$response:charset]] | |
| @main[] | @main[] |
| #^xpath[] | |
| #^ttablesetlang[] | |
| #^mail3[] | |
| #^ttime[] | |
| #^tupper[] | |
| #^treplace[] | |
| ^xslt2[] | |
| #^tcache2[] | |
| #$ORIGINS(1) | |
| #$t[^table::set{a b} ^table::set{c d}] | |
| #^ttaintuntaint[] | #^ttaintuntaint[] |
| #^tappend2[] | #^tappend2[] |
| #^badvsnprintf[] | #^badvsnprintf[] |
| Line 66 | Line 81 |
| #^exec[] | #^exec[] |
| #^fori[] | #^fori[] |
| #^tconnect[] | #^tconnect[] |
| ^xslt[] | #^xslt[] |
| #^xml[] | #^xml[] |
| #^header[] | #^header[] |
| <hr> | <hr> |
| OK | OK |
| @xpath[] | |
| $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?> | |
| <document><block><p>привет</p></block></document> | |
| }] | |
| #^show-xdoc2[$xdoc] | |
| $node[^xdoc.selectSingle[/document/block/p]] | |
| ^if(def $node){ | |
| ^if($node is string){ | |
| $node | |
| }{ | |
| ^if($node is hash){ | |
| ^node._count[] | |
| }{ | |
| $node.nodeType | |
| } | |
| } | |
| #$node.firstChild.nodeValue | |
| }{ | |
| node not found | |
| } | |
| @ttablesetlang[] | |
| $a-tab-b[a b | |
| 1 2] | |
| $t[^table::set{$a-tab-b}] | |
| =$t.a= | |
| <hr> | |
| $t[^table::set[nameless]{^taint[$a-tab-b]}] | |
| =$t.0= | |
| <hr> | |
| $t[^table::set{^untaint{^taint[$a-tab-b]}}] | |
| =$t.a= | |
| #^t.append{1 2} | |
| @mail3[] | |
| ^mail:send[ | |
| $.from[Александр Петросян <paf@design.ru>] | |
| $.to[Александр Петросян <paf@design.ru>] | |
| $.subject[проверка4] | |
| $.body[ | |
| $.text[ | |
| $.content-type[$.value[text/plain] $.charset[windows-1251]] | |
| $.body[проверка] | |
| ] | |
| $.attachment[ | |
| $.value[^file::load[text;index.html]] | |
| $.file-name[привет всем.html] | |
| ] | |
| ] | |
| ] | |
| @ttime[] | |
| $now[^date::now[]] | |
| $now.hour:$now.minute | |
| @tupper[] | |
| $t[abcABCабвАБВ] | |
| $t<br> | |
| ^t.upper[] | |
| @treplace[] | |
| $copy-paste-clean[^table::set{a b | |
| . _ | |
| , _ | |
| + _ | |
| & _ | |
| ? _ | |
| = _}] | |
| $cache_key[^taint[в.а,с+я]&был?тут=недавно.cache] | |
| # почему-то этот replace роняет апач в 500 ошибку :( | |
| #^cache_key.replace[$copy-paste-clean] | |
| $test[abc] | |
| ^test.save[$cache_key]saved<br> | |
| $cache[^file:list[.;\.cache^$]] | |
| ^file:delete[$cache_key]deleted($cache.name)<br> | |
| @xslt2[] | |
| $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251" ?> | |
| <document><block><p>привет</p></block></document> | |
| }] | |
| ^show-xdoc2[$xdoc] | |
| ^show-xdoc2[^xdoc.transform[templates/_document.xslt]] | |
| <hr> | |
| @tcache2[] | |
| ^cache[$DB_HOME/keyключ](2){ | |
| ^math:random(100) | |
| } | |
| @ttaintuntaint[] | @ttaintuntaint[] |
| <!-- некий панковский заголовок с буковкой C в круглых скобках -->^taint[html][ | <!-- некий панковский заголовок с буковкой C в круглых скобках -->^taint[html][ |
| Line 127 $bred[^int::int[]] | Line 241 $bred[^int::int[]] |
| @xloadwrongtable[] | @xloadwrongtable[] |
| $constr[^xdoc::load[wrongtable.xml]] | $constr[^xdoc::load[wrongtable.xml]] |
| ^show-xdoc2[$constr] | |
| @xsetwrongtable[] | @xsetwrongtable[] |
| $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251z" ?> | $constr[^xdoc::set{<?xml version="1.0" encoding="windows-1251z" ?> |
| Line 268 $code[^hashfile::open[$DB_HOME;cache]] | Line 383 $code[^hashfile::open[$DB_HOME;cache]] |
| # ^code.delete[] | # ^code.delete[] |
| } | } |
| @thashfileexp[] | @thashfileexp[] |
| $hf[^hashfile::open[$DB_HOME;hashfile]] | $hf[^hashfile::open[$DB_HOME;hashfile]] |
| $hf.paf[$.value[крут] $.expires(3)] | $hf.paf[$.value[крут] $.expires(3)] |
| Line 600 $a.status|$a.stderr<hr> | Line 714 $a.status|$a.stderr<hr> |
| @fori[][i] | @fori[][i] |
| ^for[i](1;3){... =$i= ...} | ^for[i](1;3){... =$i= ...} |
| @xdata[] | @xdata0[] |
| #$response:content-type[$.value[text/html] $.charset[windows-1251]] | #$response:content-type[$.value[text/html] $.charset[windows-1251]] |
| $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?> | $xdoc[^xdoc::set{<?xml version="1.0" encoding="windows-1251"?> |
| <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"--> | <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"--> |
| Line 614 $xdoc[^xdoc::set{<?xml version="1.0" enc | Line 728 $xdoc[^xdoc::set{<?xml version="1.0" enc |
| </people> | </people> |
| }] | }] |
| @xdata[] | |
| #$response:content-type[$.value[text/html] $.charset[windows-1251]] | |
| $xdoc[^xdoc::set{^process{<?xml version="1.0" encoding="windows-1251"?> | |
| <!--DOCTYPE people SYSTEM "D:\Y\parser3project\parser3\src\www\htdocs\people.dtd"--> | |
| <people> | |
| <man id="1" имя="word слово"> | |
| <name>P«^;AF B</name> | |
| </man> | |
| <man id="2"> | |
| <name>ПИФ^taint[&]</name> | |
| </man> | |
| </people> | |
| }}] | |
| @xml[] | @xml[] |
| ^xdata[] | ^xdata[] |
| Line 674 by id: | Line 802 by id: |
| @show-xdoc2[xdoc] | @show-xdoc2[xdoc] |
| ^xdoc.save[out/save.xml; | ^xdoc.save[out/save.xml; |
| # $.encoding[windows-1251] | # $.encoding[utf-8] |
| $.method[xml] | $.method[xml] |
| ] | ] |
| $file[^xdoc.file[ | $file[^xdoc.file[ |
| # $.encoding[windows-1251] | $.encoding[utf-8] |
| $.method[html] | $.method[html] |
| ]] | ]] |
| ^file.save[text;out/save_file.html] | ^file.save[text;out/save_file.html] |
| <pre>^taint[^xdoc.string[ | #$response:body[^xdoc.file[ $.media-type[text/paf] ]] |
| #]] | <pre>^taint[html][^xdoc.string[ |
| # $.encoding[windows-1251] | # $.method[html] |
| $.method[html] | $.encoding[utF-8] |
| # $.omit-xml-declaration[yes] | |
| # $.standalone[no] | |
| # -$.doctype-public[-//W3C//DTD XHTML] | |
| # -$.doctype-system[/a/b/c/] | |
| # $.indent[yes] | |
| # $.media-type[text/paf] | |
| ]] | ]] |
| </pre> | </pre> |