--- parser3/www/htdocs/Attic/index.html 2002/10/28 12:13:47 1.173 +++ parser3/www/htdocs/Attic/index.html 2002/11/25 14:10:53 1.179 @@ -287,15 +287,110 @@ OK #^keygenedhash[]
#
[$env:HTTP_REFERER] #$response:Content-TypE[bad] -^emailhead2[] +#^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;$.param[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://www.artlebedev.ru; + $.USER-AGENT[paf] +]] +$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]>] - $.subject[test] +# $.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[]