2003-02-14 00:56:19 +00:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
include_once("../inc/db.inc");
|
|
|
|
include_once("../inc/util.inc");
|
2003-02-14 00:56:19 +00:00
|
|
|
|
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
|
|
|
|
2004-05-11 22:49:23 +00:00
|
|
|
page_head("Problem report recorded");
|
2003-03-19 21:01:32 +00:00
|
|
|
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
|
|
|
?>
|