@@ -47,7 +47,7 @@ proc entry {file {i 0}} {
if {[string index $bfile 0] == "\025"} {
set bfile [string range $bfile 1 end]
}
- if [file isdirectory "$file"] {
+ if {[file isdirectory "$file"]} {
directory $file $bfile $tbfile
return
}
@@ -65,7 +65,7 @@ proc entry {file {i 0}} {
set img Video_TS
set omenu opt
} elseif {$ext eq ".hmt"} {
- if {[file exists "${base}.ts"]} { continue }
+ if {[file exists "${base}.ts"]} { return }
# Sole hmt file indicates failure to track.
set type bad
set ts 0
diff --git a/webif/html/settings/modules/network/script.js b/webif/html/settings/modules/network/script.js
index 0a606d7..3409c19 100644
--- a/webif/html/settings/modules/network/script.js
+++ b/webif/html/settings/modules/network/script.js
@@ -97,3 +97,9 @@ $('#ns_wifi_authmode').on('change', function() {
}).trigger('change');
+$('#_ns_wifi_reveal').on('click', function(e) {
+ e.preventDefault();
+ $('#_ns_wifi_notfound').slideUp('slow');
+ $('#_ns_wifi_settings').slideDown('slow');
+});
+
diff --git a/webif/html/settings/modules/network/settings.hook b/webif/html/settings/modules/network/settings.hook
index bd71bab..fcb4a29 100755
--- a/webif/html/settings/modules/network/settings.hook
+++ b/webif/html/settings/modules/network/settings.hook
@@ -158,9 +158,18 @@ puts "
if {[system has wifi_dongle]} {
puts [_ns_iftable wifi 2ND]
} else {
- puts "No wireless dongle detected."
- puts "
"
- puts ""
+ puts "
+ No wireless dongle detected.
+
+
+
+
+
+
+
+ [_ns_iftable wifi 2ND]
+
+ "
}
puts "
diff --git a/webif/lib/browse.class b/webif/lib/browse.class
index 708b902..9c664d4 100644
--- a/webif/lib/browse.class
+++ b/webif/lib/browse.class
@@ -1,8 +1,8 @@
require system.class plugin
-#if {![exists -proc class]} { package require oo }
-#class browse {}
+if {![exists -proc class]} { package require oo }
+class dir {}
set _flatten [system pkginst flatten]
@@ -20,7 +20,7 @@ proc {dir expiry} {dir {data {}}} {
set fd [open "$dir/.autoexpire" w]
puts $fd "$data(days):$data(type):$data(keep):$data(keepnew):"
$fd close
- return
+ return {}
}
set ret { days "" type 0 keep "" keepnew 0 }
catch {
diff --git a/webif/lib/epg.class b/webif/lib/epg.class
index 600aaf3..6c2d93e 100644
--- a/webif/lib/epg.class
+++ b/webif/lib/epg.class
@@ -455,7 +455,7 @@ proc {epg dbfetch} {mode args} {
set query "$select $from $q $sort"
- if ($debug) {
+ if {$debug} {
puts "QUERY -$query-"
puts "PARAMS -$params-"
}
diff --git a/webif/lib/system.class b/webif/lib/system.class
index d6ac9d3..05b326e 100644
--- a/webif/lib/system.class
+++ b/webif/lib/system.class
@@ -166,6 +166,7 @@ proc {system diskpart} {} {
HDR { return "/mnt/hd2" }
HD { return "/media/drive1" }
}
+ return ""
}
proc {system diskdev} {} {
@@ -373,7 +374,7 @@ proc {system filename} {str {extra ""}} {
# Humax TV replaces these characters.
# "%*./:<>?\|
set chars "\"%*\./:<>?\\\\|$extra"
- return [regsub -all "\[$chars]" $str "_"]
+ return [regsub -all -- "\[$chars]" $str "_"]
}
proc {system connectivity} {{site "hpkg.tv"} {port 80} {ret "0"}} {