summaryrefslogtreecommitdiffstats
path: root/usr/local/www/crash_reporter.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-07 12:42:06 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-07 12:42:06 -0500
commit166c73546b3b5e2f2528914c0176087160f680e3 (patch)
treed14d4cc03829d7851643c05fb8cf008adef63fff /usr/local/www/crash_reporter.php
parent4a1ab61871317eb8cb4b1898078a1920eefa976c (diff)
downloadpfsense-166c73546b3b5e2f2528914c0176087160f680e3.zip
pfsense-166c73546b3b5e2f2528914c0176087160f680e3.tar.gz
Echo out server response
Diffstat (limited to 'usr/local/www/crash_reporter.php')
-rwxr-xr-xusr/local/www/crash_reporter.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/local/www/crash_reporter.php b/usr/local/www/crash_reporter.php
index c75fe72..fb92566 100755
--- a/usr/local/www/crash_reporter.php
+++ b/usr/local/www/crash_reporter.php
@@ -102,12 +102,11 @@ $crash_report_header .= "\nCrash report details:\n";
$files_to_upload = glob("/var/crash/*");
echo "<p/>";
echo gettext("Uploading...");
- echo "<p/>";
if(is_array($files_to_upload)) {
$resp = upload_crash_report($files_to_upload);
- print_r($resp);
exec("rm /var/crash/*");
- echo gettext("Crash files have been submitted for inspection.");
+ echo "<p/>";
+ print_r($resp);
echo "<p/><a href='/'>" . gettext("Continue") . "</a>" . gettext(" and delete crash report files.");
} else {
echo "Could not find any crash files.";
OpenPOWER on IntegriCloud