1
0
mirror of https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git synced 2023-10-10 13:37:40 +02:00
raspberrymatic-addon-rmupdate/addon/www/index.cgi

13 lines
337 B
Plaintext
Raw Normal View History

#!/bin/tclsh
2018-07-22 00:38:41 +02:00
source /usr/local/addons/rmupdate/lib/querystring.tcl
source /usr/local/addons/rmupdate/lib/session.tcl
2018-07-22 00:38:41 +02:00
if {[info exists sid] && [check_session $sid]} {
set fp [open "/usr/local/addons/rmupdate/www/rmupdate.html" r]
puts -nonewline [read $fp]
close $fp
} else {
2018-07-22 00:38:41 +02:00
puts {error: invalid session}
}