remove mediatomb/transmission code

git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@946 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
hummypkg 2012-04-23 19:19:23 +00:00
parent 57c769a4e8
commit 6d95ee89a4
9 changed files with 60 additions and 178 deletions

View File

@ -1,7 +1,7 @@
Package: webif
Priority: optional
Section: web
Version: 0.9.6-4
Version: 0.9.6-5
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons,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.1),webif-charts

View File

@ -1,13 +0,0 @@
#!/mod/bin/jimsh
set url "http://$env(HTTP_HOST):9091/"
puts "Content-Type: text/html
Location: $url
<meta http-equiv=refresh content=\"0; url=$url\">
Transmission is available <a href=$url>here</a>
"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -19,114 +19,12 @@ $(document).ready(function() {
});
</script>
<div style="clear: both">
<div class=left>
<center>
<a href=/cgi-bin/browse.jim>
<img src=/images/323_1_10_Menu_Video.png border=0 width=217 height=228>
</a>
<br>
<a href=/cgi-bin/browse.jim>
<b>Browse Media Files</b>
</a>
<br>
</center>
</div>
<div class=left>
<center>
<a href=/sched/sched.jim>
<img src=/images/321_1_00_Menu_CHList.png border=0 width=217 height=228>
</a>
<br>
<a href=/sched/sched.jim>
<b>Scheduled Events</b>
</a>
<br>
</center>
</div>
<div class=left>
<center>
<a href=<!--#exec cmd="/mod/var/mongoose/include/epgloc.jim" -->>
<img src=/images/328_1_26_Menu_TV_Guide.png border=0 width=217 height=228>
</a>
<br>
<a href=<!--#exec cmd="/mod/var/mongoose/include/epgloc.jim" -->>
<b>EPG</b>
</a>
<br>
</center>
</div>
</div>
<div style="clear: both; padding-top: 1em">
<div class=left>
<center>
<a href=/services.shtml>
<img src=/img/spanner.png border=0 width=217 height=228>
</a>
<br>
<a href=/services.shtml>
<b>Service Management</b>
</a>
<br>
</center>
</div>
<div class=left>
<center>
<a href=/pkg.shtml>
<img src=/img/packages.png border=0 width=217 height=228>
</a>
<br>
<a href=/pkg.shtml>
<b>Package Management</b>
</a>
<br>
</center>
</div>
<div class=left>
<center>
<a href=/cgi-bin/settings.jim>
<img src=/images/326_1_00_Menu_Settings.png border=0
width=217 height=228>
</a>
<br>
<a href=/cgi-bin/settings.jim>
<b>Settings</b>
</a>
<br>
</center>
</div>
<div class=left>
<center>
<a href=/diag/diag.jim>
<img src=/img/diagnostics.png border=0 width=217 height=228>
</a>
<br>
<a href=/diag/diag.jim>
<b>Diagnostics</b>
</a>
<br>
</center>
</div>
</div>
<!--#exec cmd="/mod/var/mongoose/include/menuicons.jim" -->
<div style="clear: both; padding-top: 1em">
<!--#exec cmd="/mod/var/mongoose/include/menuplugins.jim" -->
</div>
<div style="clear: both">
<!--#exec cmd="/mod/var/mongoose/include/mediatomb.jim" -->
<!--#exec cmd="/mod/var/mongoose/include/transmission.jim" -->
</div>
<div class=footer>
<ul>
<li>

View File

@ -1,32 +0,0 @@
#!/mod/bin/jimsh
source /mod/var/mongoose/lib/setup
require system.class
if { [catch {set fd [open "/mod/mediatomb/config/mediatomb.html" r]} fid] } {
exit 0
}
set data [read $fd]
close $fd
regexp {URL=([^"]*)} $data match
set url [string range $match 4 [string length $match]]
set port [string range [lindex [split $url ":"] 2] 0 end-1]
if {![system is_listening $port]} { exit 0 }
puts "
<div style=\"float: left; padding-top: 5em\">
<center>
<a href=$url>
<img border=0 src=/img/mediatomb.png width=180>
</a>
<br>
<a href=$url>
<b>MediaTomb</b>
</a>
<br>
</center>
</div>
"

View File

@ -0,0 +1,52 @@
#!/mod/bin/jimsh
source /mod/var/mongoose/lib/setup
require settings.class
proc menuitem {title icon link {width 217} {height 0}} {
puts -nonewline "
<div class=left>
<center>
<a href=$link>
<img src=$icon border=0 width=$width"
if {$height} { puts -nonewline " height=$height" }
puts -nonewline ">
</a>
<br>
<a href=$link>
<b>$title</b>
</a>
<br>
</center>
</div>
"
}
if {[[settings] epg_style] eq "grid"} {
set epglink "/cgi-bin/xepg.jim"
} else {
set epglink "/epg.shtml"
}
puts {<div style="clear: both">}
menuitem "Browse Media Files" "/images/323_1_10_Menu_Video.png" \
/cgi-bin/browse.jim 217 228
menuitem "Scheduled Events" "/images/321_1_00_Menu_CHList.png" \
/sched/sched.jim 217 228
menuitem "EPG" "/images/328_1_26_Menu_TV_Guide.png" \
$epglink 217 228
puts {</div><div style="clear: both; padding-top: 1em">}
menuitem "Service Management" "/img/spanner.png" \
/services.shtml 217 228
menuitem "Package Management" "/img/packages.png" \
/pkg.shtml 217 228
menuitem "Settings" "/images/326_1_00_Menu_Settings.png" \
/cgi-bin/settings.jim 217 228
menuitem "Diagnostics" "/img/diagnostics.png" \
/diag/diag.jim 217 228
puts {</div>}

View File

@ -1,14 +1,16 @@
#!/mod/bin/jimsh
source /mod/var/mongoose/lib/setup
require plugin
require plugin system.class
proc menuitem {title icon link {width 217}} {
puts "
proc menuitem {title icon link {width 217} {height 0}} {
puts -nonewline "
<div class=left>
<center>
<a href=$link>
<img src=$icon border=0 width=$width>
<img src=$icon border=0 width=$width"
if {$height} { puts -nonewline " height=$height" }
puts -nonewline ">
</a>
<br>
<a href=$link>

View File

@ -1,25 +0,0 @@
#!/mod/bin/jimsh
source /mod/var/mongoose/lib/setup
require system.class
if {![file exists /mod/sbin/transmission-daemon]} { exit 0 }
if {![system is_listening 9091]} { exit 0 }
set url "/cgi-bin/transmission.jim"
puts "
<div style=\"float: left; padding-top: 5em\">
<center>
<a href=$url>
<img border=0 src=/img/transmission.png>
</a>
<br>
<a href=$url>
<b>Transmission</b>
</a>
<br>
</center>
</div>
"