ccf3cc1888
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@1442 2a923420-c742-0410-a762-8d5b09965624
20 lines
296 B
Plaintext
Executable File
20 lines
296 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
package require cgi
|
|
source /mod/webif/lib/setup
|
|
require cat
|
|
|
|
set file [cgi_get file]
|
|
set file "[file rootname $file].thm"
|
|
|
|
if {![file exists $file]} {
|
|
httpheader "text/plain"
|
|
puts "No such file, $file"
|
|
exit
|
|
}
|
|
|
|
httpheader "image/bmp"
|
|
cat "/mod/webif/lib/bmpheader"
|
|
cat $file
|
|
|