Ticket #8531: mythweb.patch
File mythweb.patch, 932 bytes (added by , 14 years ago) |
---|
-
mythweb/modules/status/handler.php
old new 24 24 // Make sure the content is interpreted as UTF-8 25 25 header('Content-Type: text/html; charset=UTF-8'); 26 26 27 // Load encoder names 28 $sh = $db->query('SELECT cardid, displayname FROM cardinput'); 29 while ($row = $sh->fetch_assoc()) 30 $Encoder_Name[$row['cardid']] = $row['displayname']; 31 $sh->finish(); 32 27 33 // Load the status page 28 34 if (function_exists('curl_exec')) { 29 35 $ch = curl_init("http://$masterhost:$statusport$xml_param"); … … 48 54 ) 49 55 ); 50 56 57 // Replace Encoder numbers with names 58 foreach ($Encoder_Name as $num => $name) { 59 $status = preg_replace("/ Encoder $num /", " $name ", $status); 60 } 61 51 62 // Print the status page template 52 63 require_once tmpl_dir.'status.php'; 53 64