diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 00:16:58 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2012-08-18 00:16:58 -0700 |
commit | a160d8b5a9b4c82bf886275ac0e751fa66815db0 (patch) | |
tree | 2ab2c1d790cefb676d15005f30a8c75056c947b9 /pages/feedback.php | |
parent | d6d45b1c1cce510b781634deafc970d1cd025ff9 (diff) | |
download | pathery-a160d8b5a9b4c82bf886275ac0e751fa66815db0.tar.xz |
Feedback page adjustments.
Diffstat (limited to 'pages/feedback.php')
-rw-r--r-- | pages/feedback.php | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/pages/feedback.php b/pages/feedback.php index dfe022f..3e10cef 100644 --- a/pages/feedback.php +++ b/pages/feedback.php @@ -1,16 +1,32 @@ <?php
-if (isset($_POST['regarding'])) {
+if (isset($_POST['regarding']) AND isset($_SESSION['accepted'])) {
+ if (!$accepted)
+ return;
$data = $_POST;
$data['session'] = print_r($_SESSION, true);
+
+ $userID = $_SESSION['userID'] * 1;
+ if (!is_int($userID))
+ return;
+
+ include_once "includes/db.inc.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("Thank you for your feedback! <br />
+ 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, 8);
+ Something must be wrong, you should really have been redirected by now", $mydomain, 5);
exit;
}
@@ -34,7 +50,7 @@ if (!$accepted) { ?>
-<div class="wrapper">
+<div class="wrapper" style="width:600px;">
<h2>Contact us</h2>
<h3>Send us a line!</h3>
@@ -48,6 +64,7 @@ if (!$accepted) { <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>
|