--- parser3/www/htdocs/Attic/index.html 2002/10/23 08:35:23 1.171
+++ parser3/www/htdocs/Attic/index.html 2002/11/26 09:02:15 1.182
@@ -283,7 +283,133 @@ OK
#^selectSingleoct[]
#^compilebug[]
#^badhashcreate[]
-^badsendmail[]
+#^badsendmail[]
+#^keygenedhash[]
+#
[$env:HTTP_REFERER]
+#$response:Content-TypE[bad]
+#^emailhead2[]
+#^includet2overridedynamic[]
+#^includet2overridestatic[]
+#^virtualtest2[]
+#^message-id-test[]
+#^test_exif[jpg]
+^http_prefix[]
+#^http_prefix_table[]
+#^http_prefix_xml[]
+
+@http_prefix_xml[]
+ $xdoc[^xdoc::load[http://www.cbr.ru/scripts/XML_daily.asp?date_req=02/03/2002;
+# $.method[HEAD]
+ $.headers[
+ $.user-agent[1]
+ ]
+]]
+
+^taint[^xdoc.string[]]
+
+@http_prefix_table[]
+$table[^table::load[nameless;http://www.artlebedev.ru;$.USER-AGENT[paf]]]
+^table.count[]
+
+$table.0
+
+@http_prefix[]
+#$file[^file::load[text;http://www.artlebedev.ru]]
+#$file[^file::load[text;http://www.artlebedev.ru;alt]]
+#$file[^file::load[text;http://parser3/exif.html;
+$file[^file::load[text;http://parser3/none;
+ $.headers[
+ $.USER-AGENT[paf]
+ ]
+]]
+server: $file.SERVER
+$file.status
+
+$file.text
+
+@test_exif[dir]
+$file[^file:list[$dir;\.(jpe?g|JPE?G)^$]]
+
+^file.menu{
+
+ $image[^image::measure[$dir/$file.name]]
+ | ^image.html[$.width(100)$.height(100)] |
+
+ $file.name
+ $exif[$image.exif]
+ ^if($exif){
+ $keys[^exif._keys[]] ^keys.sort{$keys.key}
+ ^keys.menu{
+ $key[$keys.key]
+ $value[$exif.$key]
+
+ ${key}: ^show_exif_value[$value]
+ }
+ }{
+ no EXIF info
+ }
+ |
+
+}
+
+
+@show_exif_value[value][i]
+^if($value is hash){
+ ^for[i](0;$value-1){$value.$i}[,]
+}{
+ $value
+}
+
+
+@message-id-test[]
+^mail:send[
+ $.from[paf@mail]
+ $.to[paf@mail]
+ $.subject[test]
+# $.message-id[<1@parser.ru>]
+ $.Message-id[<2@parser.ru>]
+ $.subject[проверка]
+ $.text[мычит!]
+]
+
+@virtualtest2[]
+$derived[^derived::create[]]
+^derived.first[]
+
+
+@includet2overridedynamic[]
+includet2overridedynamic:
+shold say 'hello in some.p'
+
+$derived[^derived::create[]]
+^derived.includet2override[]
+
+@includet2overridestatic[]
+includet2overridestatic:
+shold say 'hello in derived.p'
+because in static classes there's no way to determine derived class (no virtual mech becase of no virtual table)
+
+^derived:includet2override[]
+
+@emailhead2[]
+^mail:send[
+ $.charset[koi8-r]
+ $.from[paf@design.ru]
+ $.to[paf@mail]
+# $.reply-to[^taint[agat] <^taint[ag_7k@mail.ru]>]
+$user[^taint[agat]]
+$email[^taint[ag_7k@mail.ru]]
+ $.reply-to[$user $email]
+ $.subject[test2]
+]
+
+@keygenedhash[]
+$table[^table::create{key value
+1 a
+2 b
+}]
+$hash[^table.hash($table.key*2)]
+'$hash.4.value' must be 'b'
@badsendmail[]
^mail:send[