diff --git a/CONTROL/control b/CONTROL/control index 0a00d09..b500346 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.9.8-3 +Version: 0.9.9 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.0.1),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.1) diff --git a/var/mongoose/cgi-bin/backup/backup.jim b/var/mongoose/cgi-bin/backup/backup.jim index 47c2c5b..d803c93 100755 --- a/var/mongoose/cgi-bin/backup/backup.jim +++ b/var/mongoose/cgi-bin/backup/backup.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require rsv.class diff --git a/var/mongoose/cgi-bin/backup/delete.jim b/var/mongoose/cgi-bin/backup/delete.jim index 7f4d4bc..799b80c 100755 --- a/var/mongoose/cgi-bin/backup/delete.jim +++ b/var/mongoose/cgi-bin/backup/delete.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup set dir /mod/var/backup diff --git a/var/mongoose/cgi-bin/backup/restore.jim b/var/mongoose/cgi-bin/backup/restore.jim index 9ebcc97..723dc48 100755 --- a/var/mongoose/cgi-bin/backup/restore.jim +++ b/var/mongoose/cgi-bin/backup/restore.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require rsv.class findhsvc system.class diff --git a/var/mongoose/cgi-bin/browse.jim b/var/mongoose/cgi-bin/browse.jim index 49550ae..9676758 100755 --- a/var/mongoose/cgi-bin/browse.jim +++ b/var/mongoose/cgi-bin/browse.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size system.class settings.class escape puts "Content-Type: text/html" @@ -222,7 +222,7 @@ puts { } -source /mod/var/mongoose/cgi-bin/browse/assets.jim +source browse/assets.jim puts "
diff --git a/var/mongoose/cgi-bin/browse/audio/audio.jim b/var/mongoose/cgi-bin/browse/audio/audio.jim index 88667ce..15d1961 100755 --- a/var/mongoose/cgi-bin/browse/audio/audio.jim +++ b/var/mongoose/cgi-bin/browse/audio/audio.jim @@ -2,7 +2,7 @@ package require sqlite3 package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class system.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/audio/execute.jim b/var/mongoose/cgi-bin/browse/audio/execute.jim index 483e4af..2fc4535 100755 --- a/var/mongoose/cgi-bin/browse/audio/execute.jim +++ b/var/mongoose/cgi-bin/browse/audio/execute.jim @@ -2,7 +2,7 @@ package require sqlite3 package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class system.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/audio/progress.jim b/var/mongoose/cgi-bin/browse/audio/progress.jim index e8f761a..796eb91 100755 --- a/var/mongoose/cgi-bin/browse/audio/progress.jim +++ b/var/mongoose/cgi-bin/browse/audio/progress.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/chunk/chunk.jim b/var/mongoose/cgi-bin/browse/chunk/chunk.jim index 6d3ecc8..ba15b55 100755 --- a/var/mongoose/cgi-bin/browse/chunk/chunk.jim +++ b/var/mongoose/cgi-bin/browse/chunk/chunk.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/chunk/extract.jim b/var/mongoose/cgi-bin/browse/chunk/extract.jim index 3916f15..2db9720 100755 --- a/var/mongoose/cgi-bin/browse/chunk/extract.jim +++ b/var/mongoose/cgi-bin/browse/chunk/extract.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/chunk/progress.jim b/var/mongoose/cgi-bin/browse/chunk/progress.jim index a21b3c7..619b97e 100755 --- a/var/mongoose/cgi-bin/browse/chunk/progress.jim +++ b/var/mongoose/cgi-bin/browse/chunk/progress.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/clipboard.jim b/var/mongoose/cgi-bin/browse/clipboard.jim index 5beefd6..4dde470 100755 --- a/var/mongoose/cgi-bin/browse/clipboard.jim +++ b/var/mongoose/cgi-bin/browse/clipboard.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require clipboard.class ts.class puts "Content-Type: text/html; no-cache" diff --git a/var/mongoose/cgi-bin/browse/crop/crop.jim b/var/mongoose/cgi-bin/browse/crop/crop.jim index f0c3d24..1022e9f 100755 --- a/var/mongoose/cgi-bin/browse/crop/crop.jim +++ b/var/mongoose/cgi-bin/browse/crop/crop.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/crop/execute.jim b/var/mongoose/cgi-bin/browse/crop/execute.jim index 581b51f..40465d1 100755 --- a/var/mongoose/cgi-bin/browse/crop/execute.jim +++ b/var/mongoose/cgi-bin/browse/crop/execute.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/crop/progress.jim b/var/mongoose/cgi-bin/browse/crop/progress.jim index 5374e51..a5a4429 100755 --- a/var/mongoose/cgi-bin/browse/crop/progress.jim +++ b/var/mongoose/cgi-bin/browse/crop/progress.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/decrypt/decrypt.jim b/var/mongoose/cgi-bin/browse/decrypt/decrypt.jim index 3311dea..24f46fc 100755 --- a/var/mongoose/cgi-bin/browse/decrypt/decrypt.jim +++ b/var/mongoose/cgi-bin/browse/decrypt/decrypt.jim @@ -2,7 +2,7 @@ package require sqlite3 package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/decrypt/execute.jim b/var/mongoose/cgi-bin/browse/decrypt/execute.jim index 1d33d86..489fe24 100755 --- a/var/mongoose/cgi-bin/browse/decrypt/execute.jim +++ b/var/mongoose/cgi-bin/browse/decrypt/execute.jim @@ -2,7 +2,7 @@ package require sqlite3 package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/decrypt/progress.jim b/var/mongoose/cgi-bin/browse/decrypt/progress.jim index f429df2..b34a53c 100755 --- a/var/mongoose/cgi-bin/browse/decrypt/progress.jim +++ b/var/mongoose/cgi-bin/browse/decrypt/progress.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/delete.jim b/var/mongoose/cgi-bin/browse/delete.jim index 106acfd..6a779d5 100755 --- a/var/mongoose/cgi-bin/browse/delete.jim +++ b/var/mongoose/cgi-bin/browse/delete.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size system.class tdelete puts "Content-Type: text/html\r\n" diff --git a/var/mongoose/cgi-bin/browse/download.jim b/var/mongoose/cgi-bin/browse/download.jim index 91a56a5..3b74951 100755 --- a/var/mongoose/cgi-bin/browse/download.jim +++ b/var/mongoose/cgi-bin/browse/download.jim @@ -2,7 +2,7 @@ package require cgi package require sqlite3 -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class #puts "Content-Type: text/plain\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/enc.jim b/var/mongoose/cgi-bin/browse/enc.jim index a1f4ea6..2ca7101 100755 --- a/var/mongoose/cgi-bin/browse/enc.jim +++ b/var/mongoose/cgi-bin/browse/enc.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/ts.class +source /mod/webif/lib/ts.class puts "Content-Type: text/html" puts "" diff --git a/var/mongoose/cgi-bin/browse/epgtitle.jim b/var/mongoose/cgi-bin/browse/epgtitle.jim index 7aae0a0..cc5d642 100755 --- a/var/mongoose/cgi-bin/browse/epgtitle.jim +++ b/var/mongoose/cgi-bin/browse/epgtitle.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/ts.class +source /mod/webif/lib/ts.class puts "Content-Type: application/json" puts "" diff --git a/var/mongoose/cgi-bin/browse/ffmpeg.jim b/var/mongoose/cgi-bin/browse/ffmpeg.jim index a5ac430..a3ff1cd 100755 --- a/var/mongoose/cgi-bin/browse/ffmpeg.jim +++ b/var/mongoose/cgi-bin/browse/ffmpeg.jim @@ -10,7 +10,7 @@ cgi_input if [file exists /mod/bin/ffmpeg] { set file [dict get $_cgi file] - puts [exec /mod/var/mongoose/lib/ffmpeg -i $file] + puts [exec /mod/webif/lib/ffmpeg -i $file] } else { puts "Install ffmpeg package for more information..." } diff --git a/var/mongoose/cgi-bin/browse/file.jim b/var/mongoose/cgi-bin/browse/file.jim index c5450a1..fe535c6 100755 --- a/var/mongoose/cgi-bin/browse/file.jim +++ b/var/mongoose/cgi-bin/browse/file.jim @@ -1,7 +1,8 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/pretty_size +source /mod/webif/lib/setup +require pretty_size puts "Content-Type: text/html" puts "" @@ -20,8 +21,7 @@ file stat $file st set sz [pretty_size $st(size)] if {$type eq "ts"} { - source /mod/var/mongoose/lib/epg.class - source /mod/var/mongoose/lib/ts.class + require epg.class ts.class set ts [ts fetch $file] diff --git a/var/mongoose/cgi-bin/browse/flat.jim b/var/mongoose/cgi-bin/browse/flat.jim index 33f2f37..e29a747 100755 --- a/var/mongoose/cgi-bin/browse/flat.jim +++ b/var/mongoose/cgi-bin/browse/flat.jim @@ -1,7 +1,8 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/ts.class +source /mod/webif/lib/setup +require ts.class puts "Content-Type: text/html" puts "" diff --git a/var/mongoose/cgi-bin/browse/join/execute.jim b/var/mongoose/cgi-bin/browse/join/execute.jim index a873222..66a97a9 100755 --- a/var/mongoose/cgi-bin/browse/join/execute.jim +++ b/var/mongoose/cgi-bin/browse/join/execute.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/join/join.jim b/var/mongoose/cgi-bin/browse/join/join.jim index 1806f89..95111cd 100755 --- a/var/mongoose/cgi-bin/browse/join/join.jim +++ b/var/mongoose/cgi-bin/browse/join/join.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/join/progress.jim b/var/mongoose/cgi-bin/browse/join/progress.jim index 53d2284..68d386a 100755 --- a/var/mongoose/cgi-bin/browse/join/progress.jim +++ b/var/mongoose/cgi-bin/browse/join/progress.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -#source /mod/var/mongoose/lib/setup +#source /mod/webif/lib/setup puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/lock.jim b/var/mongoose/cgi-bin/browse/lock.jim index b53679f..9055d1e 100755 --- a/var/mongoose/cgi-bin/browse/lock.jim +++ b/var/mongoose/cgi-bin/browse/lock.jim @@ -1,7 +1,8 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/ts.class +source /mod/webif/lib/setup +require ts.class puts "Content-Type: text/html" puts "" diff --git a/var/mongoose/cgi-bin/browse/mpg/execute.jim b/var/mongoose/cgi-bin/browse/mpg/execute.jim index 795b7cd..eac9847 100755 --- a/var/mongoose/cgi-bin/browse/mpg/execute.jim +++ b/var/mongoose/cgi-bin/browse/mpg/execute.jim @@ -2,7 +2,7 @@ package require sqlite3 package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class system.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/mpg/mpg.jim b/var/mongoose/cgi-bin/browse/mpg/mpg.jim index 8993492..92f0c7d 100755 --- a/var/mongoose/cgi-bin/browse/mpg/mpg.jim +++ b/var/mongoose/cgi-bin/browse/mpg/mpg.jim @@ -2,7 +2,7 @@ package require sqlite3 package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class system.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/mpg/progress.jim b/var/mongoose/cgi-bin/browse/mpg/progress.jim index 8728731..7073270 100755 --- a/var/mongoose/cgi-bin/browse/mpg/progress.jim +++ b/var/mongoose/cgi-bin/browse/mpg/progress.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html\r\n\r\n" diff --git a/var/mongoose/cgi-bin/browse/new.jim b/var/mongoose/cgi-bin/browse/new.jim index 01b6c33..338f5d1 100755 --- a/var/mongoose/cgi-bin/browse/new.jim +++ b/var/mongoose/cgi-bin/browse/new.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/browse/play.jim b/var/mongoose/cgi-bin/browse/play.jim index 284bce9..f6e346d 100755 --- a/var/mongoose/cgi-bin/browse/play.jim +++ b/var/mongoose/cgi-bin/browse/play.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class pretty_size puts "Content-Type: text/html\r\n" diff --git a/var/mongoose/cgi-bin/browse/rename.jim b/var/mongoose/cgi-bin/browse/rename.jim index 777f8cb..d05be4d 100755 --- a/var/mongoose/cgi-bin/browse/rename.jim +++ b/var/mongoose/cgi-bin/browse/rename.jim @@ -1,7 +1,8 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/ts.class +source /mod/webif/lib/setup +require ts.class puts "Content-Type: text/html" puts "" diff --git a/var/mongoose/cgi-bin/browse/resetnew.jim b/var/mongoose/cgi-bin/browse/resetnew.jim index 5bf9dab..d4d9ea4 100755 --- a/var/mongoose/cgi-bin/browse/resetnew.jim +++ b/var/mongoose/cgi-bin/browse/resetnew.jim @@ -2,7 +2,7 @@ package require cgi package require pack -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require ts.class hexdump puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/browse/savestream.jim b/var/mongoose/cgi-bin/browse/savestream.jim index 464b682..b010c59 100755 --- a/var/mongoose/cgi-bin/browse/savestream.jim +++ b/var/mongoose/cgi-bin/browse/savestream.jim @@ -1,7 +1,8 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/ts.class +source /mod/webif/lib/setup +require ts.class puts "Content-Type: text/html" puts "" diff --git a/var/mongoose/cgi-bin/cat.jim b/var/mongoose/cgi-bin/cat.jim index 2c431bf..bdc5d53 100755 --- a/var/mongoose/cgi-bin/cat.jim +++ b/var/mongoose/cgi-bin/cat.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require system.class chunked pretty_size cgi_input diff --git a/var/mongoose/cgi-bin/channel.jim b/var/mongoose/cgi-bin/channel.jim index 7fe42b3..0840b48 100755 --- a/var/mongoose/cgi-bin/channel.jim +++ b/var/mongoose/cgi-bin/channel.jim @@ -2,7 +2,7 @@ package require cgi package require sqlite3 -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require altrow progressbar epg.class puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/db.jim b/var/mongoose/cgi-bin/db.jim index 71769e4..e64909a 100755 --- a/var/mongoose/cgi-bin/db.jim +++ b/var/mongoose/cgi-bin/db.jim @@ -2,7 +2,7 @@ package require cgi package require sqlite3 -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require altrow puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/epg/dump.jim b/var/mongoose/cgi-bin/epg/dump.jim index fd13b57..6a9384b 100755 --- a/var/mongoose/cgi-bin/epg/dump.jim +++ b/var/mongoose/cgi-bin/epg/dump.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require epg.class puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/epg/info.jim b/var/mongoose/cgi-bin/epg/info.jim index dc7f710..9c66a3f 100755 --- a/var/mongoose/cgi-bin/epg/info.jim +++ b/var/mongoose/cgi-bin/epg/info.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require epg.class puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/epg/schedule.jim b/var/mongoose/cgi-bin/epg/schedule.jim index 51b4823..af0b349 100755 --- a/var/mongoose/cgi-bin/epg/schedule.jim +++ b/var/mongoose/cgi-bin/epg/schedule.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require epg.class system.class puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/epg/search.jim b/var/mongoose/cgi-bin/epg/search.jim index 7de484a..c68d83e 100755 --- a/var/mongoose/cgi-bin/epg/search.jim +++ b/var/mongoose/cgi-bin/epg/search.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require epg.class spinner.class altrow puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/epg/service.jim b/var/mongoose/cgi-bin/epg/service.jim index a89820f..396efc8 100755 --- a/var/mongoose/cgi-bin/epg/service.jim +++ b/var/mongoose/cgi-bin/epg/service.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require epg.class spinner.class altrow puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/opkg.jim b/var/mongoose/cgi-bin/opkg.jim index ff036aa..6d32da6 100755 --- a/var/mongoose/cgi-bin/opkg.jim +++ b/var/mongoose/cgi-bin/opkg.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require pkg.class chunked cgi_input @@ -11,7 +11,7 @@ set cmd [cgi_get cmd update] proc opkg {cmd} { chunk ">>> opkg $cmd\r\n" - set bcmd "|/mod/var/mongoose/lib/opkg $cmd" + set bcmd "|/mod/webif/lib/opkg $cmd" set fd [open $bcmd r] while {[gets $fd line] >= 0} { chunk "$line\r\n" diff --git a/var/mongoose/cgi-bin/pkg.jim b/var/mongoose/cgi-bin/pkg.jim index a9ce161..b64dc92 100755 --- a/var/mongoose/cgi-bin/pkg.jim +++ b/var/mongoose/cgi-bin/pkg.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require settings.class pkg.class altrow if {[[settings] pkgdev]} { set filter 0 } else { set filter 1 } diff --git a/var/mongoose/cgi-bin/restart.jim b/var/mongoose/cgi-bin/restart.jim index 355ba4e..aff2a8f 100755 --- a/var/mongoose/cgi-bin/restart.jim +++ b/var/mongoose/cgi-bin/restart.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require rsv.class system.class puts "Content-Type: text/html" diff --git a/var/mongoose/cgi-bin/restartblock.jim b/var/mongoose/cgi-bin/restartblock.jim index 3d3b1df..e3de965 100755 --- a/var/mongoose/cgi-bin/restartblock.jim +++ b/var/mongoose/cgi-bin/restartblock.jim @@ -3,5 +3,5 @@ puts "Content-Type: text/html" puts "" -source /mod/var/mongoose/include/restart.jim +source /mod/webif/include/restart.jim diff --git a/var/mongoose/cgi-bin/settings.jim b/var/mongoose/cgi-bin/settings.jim index 6804d29..33895f3 100755 --- a/var/mongoose/cgi-bin/settings.jim +++ b/var/mongoose/cgi-bin/settings.jim @@ -1,7 +1,7 @@ #!/mod/bin/jimsh package require cgi -source /mod/var/mongoose/lib/setup +source /mod/webif/lib/setup require settings.class require plugin @@ -29,6 +29,7 @@ set smtp_server [$settings smtp_server] set channel_group [$settings channel_group] set epg_style [$settings epg_style] set pkgdev [$settings pkgdev] +set notoolbar [$settings notoolbar] # Handle updates @@ -65,6 +66,7 @@ _handle_update ascii smtp_server $smtp_server "SMTP Server" handle_int_update channel_group $channel_group "Channel Group" handle_str_update epg_style $epg_style "EPG Type" handle_int_update pkgdev $pkgdev "Development Package Display" +handle_int_update notoolbar $notoolbar "Disable toolbar" set acluser [cgi_get acluser "-"] set aclpass [cgi_get aclpass "-"] @@ -140,6 +142,17 @@ puts "> " +puts -nonewline " +