. ***********************************************************************/ $page_security = 'SA_SOFTWAREUPGRADE'; $path_to_root = "../.."; include_once($path_to_root . "/includes/session.inc"); include_once($path_to_root . "/includes/packages.inc"); page(_($help_context = "Log View"), true); include_once($path_to_root . "/includes/ui.inc"); if (!isset($_GET['id'])) { /*Script was not passed the correct parameters */ display_note(_("The script must be called with a valid company number.")); end_page(); } display_heading(sprintf(_("Upgrade log for company '%s'"), $_GET['id'])); br(); start_table(); start_row(); $log = strtr(file_get_contents(VARLOG_PATH.'/upgrade.'.$_GET['id'].'.log'), array('Fatal error' => 'Fatal error')); // prevent misinterpretation in output_handler label_cells(null, nl2br(html_specials_encode($log))); end_row(); end_table(1); end_page(true);