diff --git a/src/www/crash_reporter.php b/src/www/crash_reporter.php index 742ff9a00..b857c28bd 100644 --- a/src/www/crash_reporter.php +++ b/src/www/crash_reporter.php @@ -1,7 +1,7 @@ + Copyright (C) 2015-2017 Franco Fichtner Copyright (C) 2014 Deciso B.V. Copyright (C) 2011 Scott Ullrich All rights reserved. @@ -61,15 +61,18 @@ function upload_crash_report($files, $agent) include('head.inc'); +$plugins = implode(' ', explode("\n", shell_exec('pkg info -g "os-*"'))); + $last_version = '/usr/local/opnsense/version/opnsense.last'; $crash_report_header = sprintf( - "%s\n%s %s%s %s (%s)\nTime %s\n", + "%s\n%s %s%s %s (%s)\n%sTime %s\n", php_uname('v'), $g['product_name'], trim(file_get_contents('/usr/local/opnsense/version/opnsense')), file_exists($last_version) ? sprintf(' [%s]', trim(file_get_contents($last_version))) : '', trim(shell_exec('/usr/local/bin/openssl version')), trim(shell_exec('uname -p')), + empty($plugins) ? '' : "Plugins $plugins\n", date('r') );