summaryrefslogtreecommitdiffstats
path: root/pages/feedback.php
blob: 882bc036ce0d4ad451d22f480b187ba686214ed2 (plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<?php

if (isset($_POST['regarding'])) {
	
	
	$data = $_POST;
	
	if ($accepted) {
		$data['session'] = print_r($_SESSION, true);
	
		$userID = $_SESSION['userID'] * 1;
		if (!is_int($userID))
			return;
		
		include_once "includes/sqlEmbedded.php";
		$sql = "SELECT `email` FROM `users` 
		WHERE `ID` = '$userID'";
		$result = mysql_query($sql);
		$email = mysql_result($result, 0, 'email');
		$data['email'] = $email;
	}
	
	EmailError($data, "Pathery Feedback");
	DoRedirect("<b>Thank you for your feedback!</b> <br />
	I'm Reading this right now.<br />
	Well, obviously I'm not reading it right NOW.<br />
	I guess what I meant to say is that I'll be reading it soon.<br />
	Wow this redirect is taking a while.. Sorry<br />
	Are you still here?<br />
	Something must be wrong, you should really have been redirected by now", $mydomain, 5);
	exit;
}

htmlHeader(array(), 'Feedback & Contact', 'Send feedback or contact us.');
?>

<?php
topbar($headerLinks);

/* if (!$accepted) {
	echo "
	<div class='wrapper'>
		Sorry, you must be logged in to use this.
		<br />Please email us instead @ <a target='top' href='mailto:snap@pathery.com?Subject=Pathery%20Feedback'>snap@pathery.com</a>
	</div>";
	htmlFooter();
	exit;
} */


?>


<div class="wrapper" style="width:600px;">
<h2>Contact us</h2>
<h3>Send us a line!</h3>

<p>Thanks so much for taking the time to say hello!

<br />You can email me @ snap@pathery.com if you'd rather.

</p>

<form action="feedback" method="post" name="feedback">

<select id='Regarding' name='regarding'>
	<option value='Feedback' selected='selected'>General Feedback</option>
	<option value='Bug'>Bug report</option>
	<option value='Suggestion'>Suggestion</option>
	<option value='Question'>Question</option>
	<option value='Hi'>Just saying Hi</option>
	<option value='Other'>Other</option>
</select>
<br /><br />

<?
if (!$accepted) {
	echo '
	Email address*: <input type="email" size="25" maxlength="60" value="" name="entered_email" class="forminput" /><br />
	';
}
?>


Title: <input type="text" size="25" maxlength="60" value="" name="title" class="forminput" /><br />


<textarea name='body' rows="10" cols="30"></textarea><br />

<input type="checkbox" name="emailback" value="yes" /> Please email me back
<br /><br />
<input type="submit" value="Submit" />

</form>

</div>


<?php
htmlFooter();
?>