Update of /cvsroot/openfirst/feedback
In directory sc8-pr-cvs1:/tmp/cvs-serv32581
Modified Files:
index.php
Log Message:
Add information as to whether user is registered or not to feedback emails
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/feedback/index.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** index.php 8 Jun 2003 02:10:02 -0000 1.1
--- index.php 21 Jun 2003 12:21:36 -0000 1.2
***************
*** 65,69 ****
replies):
<input type="text" name="from"
! style="width: 150px;" /> <br />Type
of feedback: <input type="radio"
name="type" value="comment" />Comment
--- 65,69 ----
replies):
<input type="text" name="from"
! style="width: 150px;" value="<?php echo($user->email); ?>" /> <br />Type
of feedback: <input type="radio"
name="type" value="comment" />Comment
***************
*** 75,79 ****
Message: <br /><textarea
name="message" cols="40"
! rows="20">Insert your feedback here.</textarea>
<br />
<input type="submit" value="Send Feedback" />
--- 75,80 ----
Message: <br /><textarea
name="message" cols="40"
! rows="20">Insert your feedback here.
! <?php echo($user->signature); ?></textarea>
<br />
<input type="submit" value="Send Feedback" />
***************
*** 85,90 ****
if ($messageallowed == true) {
// Mail who they wish to contact.
mail($_POST["to"],
! "Feedback: " . $_POST["type"], $_POST["message"]
. "\r\n\r\n--\r\nMessage generated by openfirst.feedback.
For more information about openFIRST, see:
--- 86,92 ----
if ($messageallowed == true) {
// Mail who they wish to contact.
+ if (isset($user->user)) { $isuser = "registered user"; } else { $isuser = "unregistered user"; }
mail($_POST["to"],
! "Feedback: $isuser " . $_POST["type"], $_POST["message"]
. "\r\n\r\n--\r\nMessage generated by openfirst.feedback.
For more information about openFIRST, see:
|