Revision eb233919
Added by Ermal LUÇI over 12 years ago
usr/local/www/crash_reporter.php | ||
---|---|---|
101 | 101 |
<?php |
102 | 102 |
if (gettext($_POST['Submit']) == "Yes") { |
103 | 103 |
echo gettext("Processing..."); |
104 |
file_put_contents("/var/crash/crashreport_header.txt", $crash_report_header); |
|
104 |
if (!is_dir("/var/crash")) |
|
105 |
mwexec("/bin/mkdir -p /var/crash"); |
|
106 |
@file_put_contents("/var/crash/crashreport_header.txt", $crash_report_header); |
|
105 | 107 |
if(file_exists("/tmp/PHP_errors.log")) |
106 | 108 |
exec("cp /tmp/PHP_errors.log /var/crash/"); |
107 | 109 |
exec("/usr/bin/gzip /var/crash/*"); |
Also available in: Unified diff
Make sure the directory exists