Project

General

Profile

« Previous | Next » 

Revision dabcf28c

Added by Scott Ullrich over 14 years ago

Turn off file size check

View differences:

usr/local/www/crash_reporter.php
49 49
	$post = array();
50 50
	$counter = 0;
51 51
	foreach($files as $file) {
52
		if(filesize($cf) < FILE_SIZE) {
53
			$post["file{$counter}"] = "@{$file}";
54
			$counter++;
55
		}
52
		$post["file{$counter}"] = "@{$file}";
53
		$counter++;
56 54
	}
57 55
    $ch = curl_init();
58 56
    curl_setopt($ch, CURLOPT_HEADER, 0);
......
122 120
		exit;
123 121
	} else {
124 122
		$crash_files = glob("/var/crash/*");
125
		$crash_reports .= $crash_report_header;
123
		$crash_reports = $crash_report_header;
126 124
		if(is_array($crash_files))	{
127 125
			foreach($crash_files as $cf) {
128 126
				if(filesize($cf) < FILE_SIZE) {

Also available in: Unified diff