Project

General

Profile

« Previous | Next » 

Revision ffb9c06d

Added by Scott Ullrich over 14 years ago

Include anonymous machine information in bug report including:

Crash report begins. Anonymous machine information:

i386
8.1-RELEASE-p2
FreeBSD 8.1-RELEASE-p2 #1: Sun Feb 6 05:07:27 EST 2011 sullrich@FreeBSD_8.0_pfSense_2.0-snaps.pfsense.org:/usr/obj.pfSense/usr/pfSensesrc/src/sys/pfSense_SMP.8

Crash report details:

View differences:

usr/local/www/crash_reporter.php
77 77
$pgtitle = array(gettext("Diagnostics"),gettext("Crash reporter"));
78 78
include('head.inc');
79 79

  
80
$crash_report_header = "Crash report begins.  Anonymous machine information:\n\n";
81
$crash_report_header .= php_uname("m") . "\n";
82
$crash_report_header .= php_uname("r") . "\n";
83
$crash_report_header .= php_uname("v") . "\n";
84
$crash_report_header .= "\nCrash report details:\n\n";
85

  
80 86
?>
81 87

  
82 88
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
......
88 94
<?php
89 95
	if (gettext($_POST['Submit']) == "Yes") {
90 96
		echo gettext("Processing...");
97
		file_put_contents("/var/crash/crashreport_header.txt", $crash_report_header);
91 98
		exec("/usr/bin/gzip /var/crash/*");
92 99
		$files_to_upload = glob("/var/crash/*");
93 100
		echo "<p/>";
......
108 115
		exit;
109 116
	} else {
110 117
		$crash_files = glob("/var/crash/*");
111
		if(is_array($crash_files))			
118
		$crash_reports .= $crash_report_header;
119
		if(is_array($crash_files))	
112 120
			foreach($crash_files as $cf) 
113 121
				$crash_reports .= file_get_contents($cf);
114 122
		else 

Also available in: Unified diff