Commit 657b1244 authored by Franco Fichtner's avatar Franco Fichtner

crash reporter: add creation time for reference

(cherry picked from commit 2cacc4b5)
parent 34512480
...@@ -63,14 +63,15 @@ include('head.inc'); ...@@ -63,14 +63,15 @@ include('head.inc');
$last_version = '/usr/local/opnsense/version/opnsense.last'; $last_version = '/usr/local/opnsense/version/opnsense.last';
$crash_report_header = sprintf( $crash_report_header = sprintf(
"%s\n%s %s%s %s (%s)\nUUID %s\n", "%s\n%s %s%s %s (%s)\nUUID %s\nTime %s\n",
php_uname('v'), php_uname('v'),
$g['product_name'], $g['product_name'],
trim(file_get_contents('/usr/local/opnsense/version/opnsense')), trim(file_get_contents('/usr/local/opnsense/version/opnsense')),
file_exists($last_version) ? sprintf(' [%s]', trim(file_get_contents($last_version))) : '', file_exists($last_version) ? sprintf(' [%s]', trim(file_get_contents($last_version))) : '',
trim(shell_exec('/usr/local/bin/openssl version')), trim(shell_exec('/usr/local/bin/openssl version')),
php_uname('m'), php_uname('m'),
shell_exec('/sbin/sysctl -b kern.hostuuid') shell_exec('/sbin/sysctl -b kern.hostuuid'),
date('r')
); );
if (isset($_SERVER['HTTP_USER_AGENT'])) { if (isset($_SERVER['HTTP_USER_AGENT'])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment