--- parser3/src/www/htdocs/Attic/index.html 2001/11/21 08:26:56 1.485 +++ parser3/src/www/htdocs/Attic/index.html 2002/01/10 15:41:50 1.516 @@ -1,5 +1,28 @@ +@auto[] +$request:charset[windows-1251] +$response:charset[windows-1251] +$response:content-type[$.value[text/html]$.charset[$response:charset]] + @main[] -^tappend2[] +$wl(10) +^while($wl>0){ +
$wl негритят пошли купаться в море. Один из них утоп, ему срубили гроб, и вот вам результат - + ^wl.dec(1) + $wl негритят. +} +
+ +#^ttablesetlang[] +#^mail3[] +#^ttime[] +#^tupper[] +#^treplace[] +^xslt2[] +#^tcache2[] +#$ORIGINS(1) +#$t[^table::set{a b} ^table::set{c d}] +#^ttaintuntaint[] +#^tappend2[] #^badvsnprintf[] #^badoracequoting[] #^badconstructors[] @@ -71,6 +94,91 @@
OK +@ttablesetlang[] +$a-tab-b[a b +1 2] + +$t[^table::set{$a-tab-b}] +=$t.a= +
+ +$t[^table::set[nameless]{^taint[$a-tab-b]}] +=$t.0= +
+ +$t[^table::set{^untaint{^taint[$a-tab-b]}}] +=$t.a= + +#^t.append{1 2} + +@mail3[] +^mail:send[ + $.from[Александр Петросян ] + $.to[Александр Петросян ] + $.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
+^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
+$cache[^file:list[.;\.cache^$]] +^file:delete[$cache_key]deleted($cache.name)
+ + + +@xslt2[] +$xdoc[^xdoc::set{ +

привет

+}] +^show-xdoc2[$xdoc] +#^show-xdoc2[^xdoc.transform[templates/_document.xslt]] +
+ + +@tcache2[] +^cache[$DB_HOME/keyключ](2){ + ^math:random(100) +} + +@ttaintuntaint[] +^taint[html][ + +]zz +
+^untaint[html]{1^taint[ ]2 3} + + @tappend2[] $t[^table::set{a b}]^t.append{1 2}$t.a @@ -118,6 +226,7 @@ $bred[^int::int[]] @xloadwrongtable[] $constr[^xdoc::load[wrongtable.xml]] +^show-xdoc2[$constr] @xsetwrongtable[] $constr[^xdoc::set{ @@ -259,7 +368,6 @@ $code[^hashfile::open[$DB_HOME;cache]] # ^code.delete[] } - @thashfileexp[] $hf[^hashfile::open[$DB_HOME;hashfile]] $hf.paf[$.value[крут] $.expires(3)] @@ -591,11 +699,10 @@ $a.status|$a.stderr
@fori[][i] ^for[i](1;3){... =$i= ...} -@xdata[] +@xdata0[] #$response:content-type[$.value[text/html] $.charset[windows-1251]] $xdoc[^xdoc::set{ - P«^;AF B @@ -606,6 +713,20 @@ $xdoc[^xdoc::set{ }] +@xdata[] +#$response:content-type[$.value[text/html] $.charset[windows-1251]] +$xdoc[^xdoc::set{^process{ + + + + P«^;AF B + + + ПИФ^taint[&] + + +}}] + @xml[] ^xdata[] @@ -665,6 +786,7 @@ by id: } @show-xdoc2[xdoc] +^rem{ ^xdoc.save[out/save.xml; # $.encoding[windows-1251] $.method[xml] @@ -674,9 +796,17 @@ $file[^xdoc.file[ $.method[html] ]] ^file.save[text;out/save_file.html] -
^taint[html][^xdoc.string[]]
-#	$.encoding[windows-1251]
-#	$.method[html]
-#]]
+}
+#$response:body[^xdoc.file[	$.media-type[text/paf]  ]]
+
^taint[html][^xdoc.string[
+	$.method[html]
+#	$.version[1.0]
+#	$.encoding[utf-8]
+#  	$.omit-xml-declaration[yes]
+#	$.standalone[yes]
+#	$.doctype-public[-//W3C//DTD XHTML]
+#	$.doctype-system[/a/b/c/]
+#	$.indent[no]
+	$.media-type[text/paf]
+]]
 
-