-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaddbug.php
More file actions
57 lines (51 loc) · 1.14 KB
/
addbug.php
File metadata and controls
57 lines (51 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php session_start(); ?>
<link rel="stylesheet" type="text/css" href="thatshouldbeacomic.css" />
<?php
require_once 'config.php';
date_default_timezone_set("America/New_York");
$email = $_SESSION['email'];
if (empty($email))
{
$email = $_POST['email'];
}
$info = $_POST['info'];
$date = date("Y-m-d H:i:s");
$submit = $_POST['submit'];
$headBack = $_SESSION['lastPage'];
if ($headBack)
{
$headBack = "Location: $headBack";
}
if ($info)
{
$lastPage=$_SESSION['lastPage'];
errormail($email, $info, "bug report submitted: $date on ( $lastPage )", "bug report submitted <a href=$goBack>Go back</a>");
header($headBack);
}
else
{
echo "<form action='addbug.php' method='POST'>";
}
?>
<table>
<tr>
<td>
E-mail:
</td>
<td>
<?php if ($email) echo "<!--"?><input type='text' name='Email'></input><?php if ($email) echo "--> $email";?>
</td>
</tr>
<tr>
<td>
Description of bug:
</td>
<td>
<textarea rows="5" cols="50" name='info'></textarea>
</td>
</tr>
<tr>
<td></td><td><input type='submit' name='submit' onclick="addBugSubmit(); return false;" value='Submit Bug'></td>
</tr>
</table>
</form>