Ejemplo n.º 1
0
<?php

/**
 * Welcome page description of the status module.
 *
 * @license     GPL
 *
 * @package     MythWeb
 *
 **/
// Open with a div and an image
echo '<div id="info_backend_log">', '<p>', '<a href="', root_url, Modules::getModuleProperty('backend_log', 'path'), '">', '<img src="', skin_url, '/img/backend_log.png" class="module_icon" border="0" />', '<h2>', Modules::getModuleProperty('backend_log', 'name'), '</h2></a>', '</p>', t('welcome: backend_log'), "</div>\n";
Ejemplo n.º 2
0
<?php

/**
 * Welcome page description of the Settings module.
 *
 * @license     GPL
 *
 * @package     MythWeb
 * @subpackage  Settings
 *
 **/
// Open with a div and an image
echo '<div id="info_settings">', '<p>', '<a href="', root_url, Modules::getModuleProperty('settings', 'path'), '">', '<img src="', skin_url, '/img/settings.png" class="module_icon" border="0" />', '<h2>', Modules::getModuleProperty('settings', 'name'), '</h2></a>', '</p>', t('welcome: settings'), '<ul>';
foreach (Modules::getModuleProperty('settings', 'links') as $link => $name) {
    echo '    <li><a href="', root_url, Modules::getModuleProperty('settings', 'path'), '/', $link, '">', html_entities($name), "</a></li>\n";
}
echo '</ul>', "</div>\n";
Ejemplo n.º 3
0
<?php

/**
 * Welcome page description of the status module.
 *
 * @license     GPL
 *
 * @package     MythWeb
 * @subpackage  Stats
 *
/**/
// Open with a div and an image
echo '<div id="info_stats">', '<p>', '<a href="', Modules::getModuleProperty('stats', 'path'), '">', '<img src="', skin_url, '/img/stats.png" class="module_icon" border="0" />', '<h2>', Modules::getModuleProperty('stats', 'name'), '</h2></a>', '</p>', t('welcome: stats'), "</div>\n";
Ejemplo n.º 4
0
<?php

/**
 * Welcome page description of the Settings module.
 *
 * @license     GPL
 *
 * @package     MythWeb
 * @subpackage  Settings
 *
 **/
// Open with a div and an image
echo '<div id="info_settings" class="hidden">', '<img src="', skin_url, '/img/settings.png" class="module_icon" alt="">', t('welcome: settings'), '<ul>';
foreach ($Settings as $module => $set) {
    echo '    <li><a href="', root_url, Modules::getModuleProperty('settings', 'path'), '/', $module, '">', $set['name'], "</a>\n";
    if (count($set['choices']) > 1) {
        echo "        <ul>\n";
        foreach ($set['choices'] as $section => $name) {
            echo '            <li><a href="', root_url, Modules::getModuleProperty('settings', 'path'), '/', $module, '/', $section, '">', $name, "</a></li>\n";
        }
        echo "        </ul>\n";
    }
    echo "</li>\n";
}
echo '</ul>', "</div>\n";
Ejemplo n.º 5
0
    }
    unset($_SESSION['remote']['frontends'][$_REQUEST['ping']]);
    echo 0;
    exit;
} elseif ($_REQUEST['unping']) {
    unset($_SESSION['remote']['frontends'][$_REQUEST['unping']]);
    echo 1;
    exit;
}
// Use the new directory structure?
if (empty($_REQUEST['type'])) {
    $_REQUEST['type'] = $Path[1] ? $Path[1] : $_SESSION['remote']['type'];
}
// Unknown send type?  Use the first one found
if (empty($_REQUEST['type']) || !array_key_exists($_REQUEST['type'], Modules::getModuleProperty('remote', 'links'))) {
    $_REQUEST['type'] = reset(array_keys(Modules::getModuleProperty('remote', 'links')));
} elseif (isset($_REQUEST['command'])) {
    if (is_array($_SESSION['remote']['frontends']) && count($_SESSION['remote']['frontends'])) {
        foreach (array_keys($_SESSION['remote']['frontends']) as $host) {
            $frontend = $Frontends[$host];
            switch ($_REQUEST['type']) {
                case 'keys':
                    if ($frontend->send_key($_REQUEST['command'])) {
                        echo "{$host}:1\n";
                    } else {
                        echo "{$host}:0\n";
                    }
                    break;
                case 'jump':
                    if ($frontend->send_jump($_REQUEST['command'])) {
                        echo "{$host}:1\n";
Ejemplo n.º 6
0
    if ($link == $_REQUEST['type']) {
        echo ' class="x-selected"';
    }
    echo '>', html_entities($name), '</a></li>';
}
?>
</ul>
        </td>
</tr><tr>
<td class="x-content" colspan="2" valign="top">
<?php 
require_once tmpl_dir . '/' . $_REQUEST['type'] . '.php';
?>
</td>
</tr><tr>
    <td class="x-screenshots" colspan="2">
        <ul style="list-style-type: none"><?php 
foreach (array_keys($Frontends) as $host) {
    if (!$_SESSION['remote']['frontends'][$host]) {
        next;
    }
    echo '<li><img id="hostscreen_', $host, '" class="x-screenshot"', ' src="', root, html_entities(Modules::getModuleProperty('remote', 'path') . '/screenshot?format=jpg&width=960&host=' . urlencode($host)), '" /></li>';
}
?>
</ul>
        </td>
</tr>
</table>
<?php 
// Print the page footer
require 'modules/_shared/tmpl/' . tmpl . '/footer.php';
Ejemplo n.º 7
0
<?php

/**
 * Welcome page description of the Remote Control module.
 *
 * @license     GPL
 *
 * @package     MythWeb
 * @subpackage  Remote
 *
 **/
// Open with a div and an image
echo '<div id="info_remote" class="hidden">', '<img src="', skin_url, 'img/tv.png" class="module_icon" alt="">', t('welcome: remote'), '<ul>';
foreach (Modules::getModuleProperty('remote', 'links') as $link => $name) {
    echo '    <li><a href="', Modules::getModuleProperty('remote', 'path'), '/', $link, '">', html_entities($name), "</a></li>\n";
}
echo '</ul>', "</div>\n";