diff --git a/CONTROL/control b/CONTROL/control
index 1f857c9..82bbccb 100644
--- a/CONTROL/control
+++ b/CONTROL/control
@@ -1,7 +1,7 @@
Package: webif
Priority: optional
Section: web
-Version: 0.9.13-6
+Version: 0.9.13-7
Architecture: mipsel
Maintainer: af123@hummypkg.org.uk
Depends: webif-channelicons(>=1.0.3),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.2),webif-charts(>=1.2),stripts(>=1.1.2)
diff --git a/var/mongoose/html/img/remote.png b/var/mongoose/html/img/remote.png
new file mode 100644
index 0000000..db75d60
Binary files /dev/null and b/var/mongoose/html/img/remote.png differ
diff --git a/var/mongoose/html/img/remote_split.png b/var/mongoose/html/img/remote_split.png
new file mode 100644
index 0000000..603292b
Binary files /dev/null and b/var/mongoose/html/img/remote_split.png differ
diff --git a/var/mongoose/html/img/transmit-green.png b/var/mongoose/html/img/transmit-green.png
new file mode 100644
index 0000000..9f16865
Binary files /dev/null and b/var/mongoose/html/img/transmit-green.png differ
diff --git a/var/mongoose/html/img/transmit.png b/var/mongoose/html/img/transmit.png
new file mode 100644
index 0000000..1254a94
Binary files /dev/null and b/var/mongoose/html/img/transmit.png differ
diff --git a/var/mongoose/html/remote/remote.jim b/var/mongoose/html/remote/remote.jim
new file mode 100755
index 0000000..9f4797d
--- /dev/null
+++ b/var/mongoose/html/remote/remote.jim
@@ -0,0 +1,101 @@
+#!/mod/bin/jimsh
+
+package require cgi
+source /mod/webif/lib/setup
+
+puts "Content-Type: text/html"
+puts ""
+
+header
+
+puts {
+
+
+
+
+
+
+}
+
+footer
+
diff --git a/var/mongoose/html/remote/script.js b/var/mongoose/html/remote/script.js
new file mode 100644
index 0000000..021d03d
--- /dev/null
+++ b/var/mongoose/html/remote/script.js
@@ -0,0 +1,18 @@
+
+$(function() {
+
+$('area').click(function() {
+ var code = $(this).attr('code');
+ var x = $(this).attr('xmit');
+
+ console.log("CODE: %o", code);
+
+ $('#xmit' + x).fadeIn('fast').delay(500).fadeOut('fast');
+ $.get('send.jim?code=' + code);
+}).hover(
+ function() { $(this).css('cursor', 'pointer'); },
+ function() { $(this).css('cursor', 'auto'); }
+);
+
+});
+
diff --git a/var/mongoose/html/remote/send.jim b/var/mongoose/html/remote/send.jim
new file mode 100755
index 0000000..2293857
--- /dev/null
+++ b/var/mongoose/html/remote/send.jim
@@ -0,0 +1,14 @@
+#!/mod/bin/jimsh
+
+package require cgi
+source /mod/webif/lib/setup
+
+puts "Content-Type: text/plain"
+puts ""
+
+cgi_input
+
+set cmd [cgi_get code ZERO]
+
+puts [exec /mod/bin/ir {*}$cmd]
+
diff --git a/var/mongoose/include/menuicons.jim b/var/mongoose/include/menuicons.jim
index 8671ca2..dfcac68 100755
--- a/var/mongoose/include/menuicons.jim
+++ b/var/mongoose/include/menuicons.jim
@@ -38,6 +38,10 @@ menuitem "Scheduled Events" "/images/321_1_00_Menu_CHList.png" \
menuitem "EPG" "/images/328_1_26_Menu_TV_Guide.png" \
$epglink 217 228
+if {[file exists "/mod/bin/ir"]} {
+ menuitem "Remote" "/img/remote.png" /remote/remote.jim 217 228
+}
+
puts {}
menuitem "Service Management" "/img/spanner.png" \
diff --git a/var/mongoose/include/toolbar.jim b/var/mongoose/include/toolbar.jim
index f3e9640..8d25359 100755
--- a/var/mongoose/include/toolbar.jim
+++ b/var/mongoose/include/toolbar.jim
@@ -35,6 +35,9 @@ puts {
}
+if {[file exists "/mod/bin/ir"]} {
+ tb "/img/remote.png" "Remote" "/remote/remote.jim"
+}
tb "/images/323_1_10_Menu_Video.png" "Browse" "/cgi-bin/browse.jim"
tb "/images/321_1_00_Menu_CHList.png" "Schedule" "/sched/sched.jim"
tb "/images/328_1_26_Menu_TV_Guide.png" "EPG" $epglink