Ticket #1368: mythweb.status.diff

File mythweb.status.diff, 1.6 KB (added by jbuckshin@…, 14 years ago)

svn diff from mythplugins/mythweb/ dir

  • themes/wml/header.php

     
    2626<p><a href="<?php echo root ?>tv/upcoming"><?php echo t('Upcoming Recordings') ?></a></p>
    2727<p><a href="<?php echo root ?>tv/recorded"><?php echo t('Recorded Programs') ?></a></p>
    2828<p><a href="<?php echo root ?>tv/search"><?php echo t('Search') ?></a></p>
    29 <p><a href="<?php echo root ?>status?xml"><?php echo t('Backend Status') ?></a></p>
     29<p><a href="<?php echo root ?>status/xml"><?php echo t('Backend Status') ?></a></p>
  • modules/status/handler.php

     
    1818    $masterhost = get_backend_setting('MasterServerIP');
    1919    $statusport = get_backend_setting('BackendStatusPort');
    2020
     21    $xml_param = ($Path[1] == 'xml') ? "/xml" : "";
    2122// Make sure the content is interpreted as UTF-8
    2223    header('Content-Type:  text/html; charset=UTF-8');
    2324
    2425// Load the status page
    2526    if (function_exists('file_get_contents'))
    26         $status = file_get_contents("http://$masterhost:$statusport");
     27        $status = file_get_contents("http://$masterhost:$statusport$xml_param");
    2728    else
    28         $status = implode("\n", file("http://$masterhost:$statusport"));
     29        $status = implode("\n", file("http://$masterhost:$statusport$xml_param"));
    2930
    3031// Extract the page title
    3132    preg_match('#<title>(.+?)</title>#s', $status, $title);