Log Not Found"; return; } if ($_GET['format'] == "html") { $pretty_date = date("d M Y", strtotime($match[1])); printHTML($logFile, $pretty_date); } else { printPlain($logFile); } } // Print plain text version function printPlain($logFile) { Header("Content-Type: text/plain; charset=utf-8"); Header("Content-Disposition: inline"); mb_internal_encoding("UTF-8"); $log = file_get_contents($logFile); echo stripControlCharacters($log); } // Print HTML version function printHTML($logFile, $date) { Header("Content-Type: text/html; charset=utf-8"); Header("Content-Disposition: inline"); ?> ScummVM IRC Log - <?php echo $date ?> [Back to Index]

  
$line) { $clean = irc_color_codes($line); $clean = preg_replace('/\x0F/', "", $clean); // Terrible hack for closing stray color-coded nicknames (via Discord IRC Bridge) echo mb_convert_encoding($clean, 'UTF-8', mb_detect_encoding($clean, 'UTF-8, ISO-8859-1', true)); } ?>