mirror of https://github.com/BOINC/boinc.git
32 lines
607 B
PHP
32 lines
607 B
PHP
<?php
|
|
|
|
include_once("../inc/db.inc");
|
|
include_once("../inc/util.inc");
|
|
|
|
db_init();
|
|
|
|
$user = get_logged_in_user();
|
|
|
|
$f = fopen("bug_reports.xml", "a");
|
|
$x = sprintf("<bug>
|
|
<userid>$user->id</userid>
|
|
<platform>%s</platform>
|
|
<problem>
|
|
%s
|
|
</problem>
|
|
</bug>
|
|
",
|
|
$_POST["platform"],
|
|
$_POST["problem"]
|
|
);
|
|
fputs($f, $x);
|
|
fclose($f);
|
|
|
|
page_head("Problem report recorded");
|
|
echo "
|
|
Your problem report has been recorded.
|
|
We apologize for any inconvience you may have experienced.
|
|
";
|
|
page_tail();
|
|
?>
|