Compare commits

...

4 Commits

Author SHA1 Message Date
hummypkg
26e90143bf add files
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@189 2a923420-c742-0410-a762-8d5b09965624
2011-06-21 22:38:43 +00:00
hummypkg
884e17b3a7 add download option, require busybox 1.18.3-1
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@188 2a923420-c742-0410-a762-8d5b09965624
2011-06-21 22:38:20 +00:00
hummypkg
7202b7e4f8 mv
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@183 2a923420-c742-0410-a762-8d5b09965624
2011-06-17 09:30:09 +00:00
hummypkg
087532136c mv
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif~@181 2a923420-c742-0410-a762-8d5b09965624
2011-06-17 09:29:33 +00:00
6 changed files with 16 additions and 8 deletions

1
CONTROL/conffiles Normal file
View File

@@ -0,0 +1 @@
etc/webif.db

View File

@@ -1,10 +1,10 @@
Package: webif
Priority: optional
Section: web
Version: 0.5.1
Version: 0.5.3
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: mongoose(>=2.11-4),jim-sqlite3,jim-cgi,service-control,busybox,lsof,jim-oo,epg(>=1.0.2)
Depends: mongoose(>=2.11-5),jim,jim-sqlite3,jim-cgi,jim-oo,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.2),hmt(>=1.0.4),ssmtp
Replaces: af123-webif
Conflicts: af123-webif
Description: A web interface for the Humax. In development.

BIN
etc/webif.db Normal file

Binary file not shown.

View File

@@ -185,6 +185,7 @@ puts {
<li><a href=#lock>Toggle Lock</a></li>
<li><a href=#rename>Rename</a></li>
<li><a href=#title>Change Title</a></li>
<li><a href=#download>Download</a></li>
</ul>
<div id=dialogue></div>
@@ -226,6 +227,10 @@ function (action, el, pos)
confirm_action('change the lock on', lock_callback, ts, did);
break;
case 'download':
window.location.href = ts;
break;
default:
alert('Unhandled action: ' + action);
break;
@@ -292,8 +297,11 @@ function (action, el, pos)
height: 600, width: 700,
show: 'scale', hide: 'fade',
draggable: true, resizable: true,
buttons: { "Close":
function() {$(this).dialog('close');}},
buttons: {
"Close": function() {
$(this).dialog('close');
}
},
close: function(e,u) { $('#dialogue').empty().html(
'<img src="/img/loading.gif" alt="loading">'); }
});

View File

@@ -43,9 +43,8 @@ foreach line $lines {
incr seen($name)
lappend output "<img style=\"vertical-align: middle\"
src=/images/$icon><span
style=\"vertical-align: middle\">$mode&nbsp;$name</span>"
lappend output "<img class=va src=/images/$icon><span class=va>
$mode&nbsp;$name</span><br>"
}
if {[llength $output]} {

View File

@@ -5,7 +5,7 @@ if {[os.gethostname] eq "hosting"} {
set used "100GB"
set perc "10"
} else {
foreach df [split [exec df -h] "\n\r"] {
foreach df [split [exec df -h 2>>/dev/null] "\n\r"] {
if [string match *sd*2* $df] {
regsub -all -- {[[:space:]]+} $df " " df
set fields [split $df]