diff --git a/CONTROL/control b/CONTROL/control index 18fb855b..2ea5327a 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.9.14-1 +Version: 0.9.14-2 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: webif-channelicons(>=1.0.3),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.2),stripts(>=1.1.2) diff --git a/var/mongoose/cgi-bin/db.jim b/var/mongoose/cgi-bin/db.jim index 4a112ad6..e64909a1 100755 --- a/var/mongoose/cgi-bin/db.jim +++ b/var/mongoose/cgi-bin/db.jim @@ -1,23 +1,80 @@ -#!/bin/sh +#!/mod/bin/jimsh -PATH=$PATH:/mod/bin export PATH - -echo "Content-Type: text/plain" -echo "" +package require cgi +package require sqlite3 +source /mod/webif/lib/setup +require altrow -[ -n "$QUERY_STRING" ] && data="${QUERY_STRING##*=}" || data=epg +puts "Content-Type: text/html" +puts "" -case $data in - channels) - sqlite3 -header -batch -separator ' ' \ - /var/lib/humaxtv/channel.db ' - select * from TBL_SVC; - ' - ;; +set databases [glob /var/lib/humaxtv/*.db] +lappend databases "/mnt/hd2/dms_cds.db" +header - *) /mod/bin/epg -p dump ;; -esac +cgi_input +#cgi_dump -exit 0 +set ftab [cgi_get tab] +set fdb [cgi_get db] + +if {$fdb != 0} { + puts "
[lindex $column 3] | " + } + puts "[lindex $data $i] | " + } + puts " " + } + puts "
---|