Compare commits
4 Commits
0.5.4@182
...
0.5.3@2148
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26e90143bf | ||
|
|
884e17b3a7 | ||
|
|
7202b7e4f8 | ||
|
|
087532136c |
1
CONTROL/conffiles
Normal file
1
CONTROL/conffiles
Normal file
@@ -0,0 +1 @@
|
||||
etc/webif.db
|
||||
@@ -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
BIN
etc/webif.db
Normal file
Binary file not shown.
@@ -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">'); }
|
||||
});
|
||||
|
||||
@@ -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 $name</span>"
|
||||
lappend output "<img class=va src=/images/$icon><span class=va>
|
||||
$mode $name</span><br>"
|
||||
}
|
||||
|
||||
if {[llength $output]} {
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user