forked from hummypkg/webif
822de81971
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@587 2a923420-c742-0410-a762-8d5b09965624
32 lines
403 B
Plaintext
Executable File
32 lines
403 B
Plaintext
Executable File
#!/mod/bin/jimsh
|
|
|
|
package require cgi
|
|
source /mod/var/mongoose/lib/setup
|
|
require clipboard.class
|
|
|
|
puts "Content-Type: text/html"
|
|
puts ""
|
|
|
|
cgi_input
|
|
#cgi_dump
|
|
|
|
set cb [[clipboard new {path "/tmp/webif-browse.cb"}] load]
|
|
|
|
set action [cgi_get act list]
|
|
|
|
switch $action {
|
|
list {
|
|
if {![$cb size]} {
|
|
puts "<i>Clipboard is empty</i>"
|
|
exit
|
|
}
|
|
}
|
|
add {
|
|
}
|
|
del {
|
|
}
|
|
clear {
|
|
}
|
|
}
|
|
|