boinc/html/user/bug_report_action.php

32 lines
614 B
PHP
Raw Normal View History

<?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", $user);
echo "
Your problem report has been recorded.
We apologize for any inconvience you may have experienced.
";
page_tail();
?>