Ticket #1368: mythweb.status.diff
File mythweb.status.diff, 1.6 KB (added by , 14 years ago) |
---|
-
themes/wml/header.php
26 26 <p><a href="<?php echo root ?>tv/upcoming"><?php echo t('Upcoming Recordings') ?></a></p> 27 27 <p><a href="<?php echo root ?>tv/recorded"><?php echo t('Recorded Programs') ?></a></p> 28 28 <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
18 18 $masterhost = get_backend_setting('MasterServerIP'); 19 19 $statusport = get_backend_setting('BackendStatusPort'); 20 20 21 $xml_param = ($Path[1] == 'xml') ? "/xml" : ""; 21 22 // Make sure the content is interpreted as UTF-8 22 23 header('Content-Type: text/html; charset=UTF-8'); 23 24 24 25 // Load the status page 25 26 if (function_exists('file_get_contents')) 26 $status = file_get_contents("http://$masterhost:$statusport ");27 $status = file_get_contents("http://$masterhost:$statusport$xml_param"); 27 28 else 28 $status = implode("\n", file("http://$masterhost:$statusport "));29 $status = implode("\n", file("http://$masterhost:$statusport$xml_param")); 29 30 30 31 // Extract the page title 31 32 preg_match('#<title>(.+?)</title>#s', $status, $title);