mirror of
				https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
				synced 2023-10-10 11:37:40 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			325 B
		
	
	
	
		
			Tcl
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			325 B
		
	
	
	
		
			Tcl
		
	
	
	
	
	
| #!/bin/tclsh
 | |
| 
 | |
| source /usr/local/addons/rmupdate/lib/querystring.tcl
 | |
| source /usr/local/addons/rmupdate/lib/session.tcl
 | |
| 
 | |
| 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 {
 | |
|     puts {error: invalid session}
 | |
| }
 |