diff --git a/CONTROL/control b/CONTROL/control index 2427421..6c8ba47 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,9 +1,9 @@ Package: webif Priority: optional Section: web -Version: 0.8.12-3 +Version: 0.8.13 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: mongoose(>=3.0-2),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.5),jim-oo,jim-pack,service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron,trm -Suggests: ffmpeg,webif-iphone,nicesplice,id3v2 +Depends: mongoose(>=3.0-7),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.5),jim-oo,jim-pack,service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2 +Suggests: ffmpeg,webif-iphone Description: An evolving web interface for the Humax. diff --git a/var/mongoose/cgi-bin/settings.jim b/var/mongoose/cgi-bin/settings.jim index a5171b7..f500323 100755 --- a/var/mongoose/cgi-bin/settings.jim +++ b/var/mongoose/cgi-bin/settings.jim @@ -11,6 +11,17 @@ puts "" cgi_input #cgi_dump +if {[cgi_get act] eq "https"} { + if {[cgi_get val off] eq "off"} { + file delete /mod/etc/mongoose.cert + puts "HTTPS Server will be disabled after next reboot." + } else { + exec /mod/sbin/mongoose_mkcert + puts "HTTPS Server will be enabled after next reboot." + } + exit +} + set settings [settings new] set hostname [$settings hostname] @@ -89,6 +100,7 @@ if {$aclact ne "-" && $acluser ne "-"} { header puts { + @@ -96,26 +108,6 @@ puts { } -puts { - -} - puts "