Index: mythweb/includes/mythfrontend.php =================================================================== --- mythweb/includes/mythfrontend.php (revision 13117) +++ mythweb/includes/mythfrontend.php (working copy) @@ -40,9 +40,9 @@ var $fp; /** @var string Hostname to connect to. */ - var $host; + public $host; /** @var string Hostname to connect to. */ - var $port; + public $port; /** @var array List of jump points available on this host. */ var $jump_points = array(); Index: mythweb/skins/default/frontends.css =================================================================== --- mythweb/skins/default/frontends.css (revision 0) +++ mythweb/skins/default/frontends.css (revision 0) @@ -0,0 +1,54 @@ + + +.success { + color: #3AF030; + background-color: #033600; + border-color: #3AF030; + border: thin groove #3AF030; + } + + +.frontends { + float: left; + left: 2%; + width: 20%; + position: relative; + } + + +.frontends select { + width: 100%; + } + + +.frontends option[disabled] { + color: #68686F; + } + +.jumps { + + float: left; + width: 50%; + left: 25%; + position: absolute; +} + +.keys { + float: right; + width: 20%; + right: 2%; + position: relative; + } + + +.keypad td { + text-align : center; + width : 33%; + } + + +.keypad td:hover { + cursor : pointer; + border : 1px solid yellow; + } + Index: mythweb/modules/frontends/jump.php =================================================================== --- mythweb/modules/frontends/jump.php (revision 0) +++ mythweb/modules/frontends/jump.php (revision 0) @@ -0,0 +1,12 @@ +send_jump( $_POST['jump'] ); + + if( $_GET['frontends'] && $_GET['jump'] ) + foreach( $_GET['frontends'] as $frontend ) + $Frontends[$frontend]->send_jump( $_GET['jump'] ); + + sleep(1); //give the frontend time to do it's thing Index: mythweb/modules/frontends/keys.php =================================================================== --- mythweb/modules/frontends/keys.php (revision 0) +++ mythweb/modules/frontends/keys.php (revision 0) @@ -0,0 +1,12 @@ +send_keypress( $_POST['key'] ); + + if( $_GET['frontends'] && $_GET['key'] ) + foreach( $_GET['frontends'] as $frontend ) + $Frontends[$frontend]->send_keypress( $_GET['key'] ); + + sleep(1); //give the frontend time to do it's thing Index: mythweb/modules/frontends/handler.php =================================================================== --- mythweb/modules/frontends/handler.php (revision 0) +++ mythweb/modules/frontends/handler.php (revision 0) @@ -0,0 +1,16 @@ + $ + * @license GPL + * + * @package MythWeb + * @subpackage TV + * +/**/ + +// The TV module is always enabled. + $Modules['frontends'] = array('path' => 'frontends', + 'name' => t('Frontends'), + 'links' => array('status' => t('Frontend Status'), + ), + ); + Index: mythweb/modules/frontends/main.php =================================================================== --- mythweb/modules/frontends/main.php (revision 0) +++ mythweb/modules/frontends/main.php (revision 0) @@ -0,0 +1,121 @@ +'; + + // Print the page header + require 'modules/_shared/tmpl/'.tmpl.'/header.php'; +?> + + + + + + + +