2003-02-14 00:56:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once("db.inc");
|
|
|
|
include_once("util.inc");
|
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
db_init();
|
2003-02-14 00:56:19 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2003-02-14 00:56:19 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$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);
|
2003-02-14 00:56:19 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
page_head("Problem report recorded", $user);
|
|
|
|
echo "
|
|
|
|
Your problem report has been recorded.
|
|
|
|
We apologize for any inconvience you may have experienced.
|
|
|
|
";
|
|
|
|
page_tail();
|
2003-02-14 00:56:19 +00:00
|
|
|
?>
|