X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=admin%2Fview%2Fview_upgrade_log.php;fp=admin%2Fview%2Fview_upgrade_log.php;h=e1cbd0f4abad73ccaaf4a5f103d7d93420d41b46;hb=1ea749c4abfe081bd7f1b4b11c65a61b311a189e;hp=0000000000000000000000000000000000000000;hpb=211598c5964fd138631395c7f329ec8b87c43c0b;p=fa-stable.git diff --git a/admin/view/view_upgrade_log.php b/admin/view/view_upgrade_log.php new file mode 100644 index 00000000..e1cbd0f4 --- /dev/null +++ b/admin/view/view_upgrade_log.php @@ -0,0 +1,38 @@ +. +***********************************************************************/ +$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($path_to_root.'/tmp/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);