2003-02-14 00:56:19 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
include_once("db.inc");
|
|
|
|
include_once("util.inc");
|
|
|
|
|
|
|
|
$authenticator = init_session();
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
$user = get_user_from_auth($authenticator);
|
|
|
|
if ($user == NULL) {
|
|
|
|
print_login_form();
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
$f = fopen("bug_reports.xml", "a");
|
2003-02-25 22:31:59 +00:00
|
|
|
$x = sprintf("<bug>
|
2003-02-14 00:56:19 +00:00
|
|
|
<userid>$user->id</userid>
|
|
|
|
<platform>%s</platform>
|
|
|
|
<problem>
|
|
|
|
%s
|
|
|
|
</problem>
|
|
|
|
</bug>
|
|
|
|
",
|
2003-02-27 22:30:31 +00:00
|
|
|
$_POST["platform"],
|
|
|
|
$_POST["problem"]
|
2003-02-14 00:56:19 +00:00
|
|
|
);
|
|
|
|
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();
|
|
|
|
?>
|