mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 17:14:46 +00:00
move before description and move of newline
This commit is contained in:
parent
5b40c7ae22
commit
7eefd54b81
@ -91,14 +91,14 @@ if (isset($_POST['Submit'])) {
|
||||
if (!empty($email)) {
|
||||
$crash_report_header .= "Email {$email}\n";
|
||||
}
|
||||
if (isset($_SERVER["HTTP_USER_AGENT"]))
|
||||
{
|
||||
$crash_report_header .= "User Agent " . $_SERVER["HTTP_USER_AGENT"] . "\n";
|
||||
}
|
||||
$desc = trim($_POST['Desc']);
|
||||
if (!empty($desc)) {
|
||||
$crash_report_header .= "Description\n\n{$desc}";
|
||||
}
|
||||
if (isset($_SERVER["HTTP_USER_AGENT"]))
|
||||
{
|
||||
$crash_report_header .= "User Agent\n\n" . $_SERVER["HTTP_USER_AGENT"];
|
||||
}
|
||||
file_put_contents('/var/crash/crashreport_header.txt', $crash_report_header);
|
||||
@rename('/tmp/PHP_errors.log', '/var/crash/PHP_errors.log');
|
||||
@copy('/var/run/dmesg.boot', '/var/crash/dmesg.boot');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user