--- parser3/src/www/htdocs/Attic/index.html 2001/11/01 10:59:26 1.457
+++ parser3/src/www/htdocs/Attic/index.html 2001/11/05 11:46:35 1.465
@@ -1,5 +1,11 @@
@main[]
-^thashdelete[]
+^status[]
+
+#^xchildren[]
+#^thashforeach3[]
+#^thashforeach2[]
+#^thashforeach[]
+#^thashdelete[]
#^connect[mysql://user:pass@cd.rinet.ru/db]{^void:sql{z} }
#^tappend[]
#^sappend[]
@@ -11,7 +17,7 @@
#^безнадёжна_попытка_поправить_непоправимое[]
#^tcache[]
#^thashfileexp[]
-#^tcounter[]
+^tcounter[]
#^tablehash[]
#j^hashfile[]
#^formclass[]
@@ -48,12 +54,130 @@
#^mail[]
#^exec[]
#^fori[]
-#^tconnect[]
-#^xslt[]
+^tconnect[]
+^xslt[]
#^xml[]
#^header[]
+
+^status[]
OK
+@status[]
+$c[$status:sql.cache]
+sql.cache:
+
+
+ | url |
+ time |
+
+^c.menu{
+
+ | $c.url |
+ $c.time |
+
+}
+
+
+$c[$status:stylesheet.cache]
+stylesheet.cache:
+
+
+ | file |
+ time |
+
+^c.menu{
+
+ | $c.file |
+ $c.time |
+
+}
+
+
+$c[$status:charset.cache]
+charset.cache:
+
+
+ | file |
+
+^c.menu{
+
+ | $c.file |
+
+}
+
+
+
+$db_homes[$status:db.cache]
+db.cache:
+^db_homes.foreach[db_home;tables]{
+
+
+ | $db_home |
+
+
+ | name |
+ time |
+ users |
+
+^tables.menu{
+
+ | $tables.name |
+ $tables.time |
+ $tables.users |
+
+}
+
+}
+
+@xchildren[]
+$constructor[
+
+
+]
+
+$constr[^xdoc::set{
+^untaint[as-is]{$constructor}}]
+
+$children[$constr.documentElement.childNodes]
+^if($children){
+^for[i](1;^children._count[]){
+ $node[$children.$i]
+ $node.nodeName
+}
+}
+
+
+@thashforeach3[]
+$h[
+ $.a[1]
+ $.b[2]
+]
+$c[^table::set{a
+^h.foreach[key;value]{$value
+}}]
+$c.a
+
+@thashforeach2[]
+$h[
+ $.a[1]
+ $.b[2]
+]
+$c[
+^h.foreach[key;value]{
+ $.$key[$value]
+}
+]
+$c.b
+
+@thashforeach[]
+$h[
+ $.a[1]
+ $.b[2]
+]
+^h.foreach[key;value]{
+ $key=$value
+}
+
@thashdelete[]
$h[$.a[1] $.b[2]]
was:
@@ -108,7 +232,7 @@ $dom_created_in_air[^xdoc::create[doc]]
@tcache[]
#^hashfile:clear[cache]
-$code[^hashfile::open[cache]]
+$code[^hashfile::open[$DB_HOME;cache]]
^code.cache[key](2){
^math:random(100)
# ^code.delete[]
@@ -116,10 +240,14 @@ $code[^hashfile::open[cache]]
@thashfileexp[]
-$hf[^hashfile::open[hashfile]]
+$hf[^hashfile::open[$DB_HOME;hashfile]]
$hf.paf[$.value[крут] $.expires(3)]
paf=$hf.paf
+^hf.foreach[key;value]{
+ $key=$value
+}
+
$hash[^hf.hash[]]
=$hash.paf=
@@ -514,7 +642,7 @@ $file[^xdoc.file[
$.method[html]
]]
^file.save[text;save_file.html]
-taint[^xdoc.string[]]
+^taint[^xdoc.string[]]
# $.encoding[windows-1251]
# $.method[html]
#]]