Update of /cvsroot/openfirst/feedback
In directory sc8-pr-cvs1:/tmp/cvs-serv25648
Modified Files:
index.php
Log Message:
Add multipart mail functionality and rich text editing to feedback module
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/feedback/index.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** index.php 23 Aug 2003 20:13:19 -0000 1.5
--- index.php 1 Sep 2003 20:23:40 -0000 1.6
***************
*** 63,68 ****
<input type="radio" name="type" value="question" />Question
<input type="radio" name="type" value="concern" />Concern
! <br />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" />
--- 63,75 ----
<input type="radio" name="type" value="question" />Question
<input type="radio" name="type" value="concern" />Concern
! <br />Message: <br /><?php
! if (function_exists("make_wysiwyg")) {
! make_wysiwyg("message",400,300,"Insert your feedback here.
!
! $user->signature");
! } else {
! ?><textarea name="message" cols="40" rows="20">Insert your feedback here.
<?php echo($user->signature); ?></textarea>
+ <?php } ?>
<br />
<input type="submit" value="Send Feedback" />
***************
*** 75,79 ****
// 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:
--- 82,94 ----
// Mail who they wish to contact.
if (isset($user->user)) { $isuser = "registered user"; } else { $isuser = "unregistered user"; }
! if (function_exists("multipartmail") {
! multipartmail($_POST["to"], "Feedback: $isuser " . $_POST["type"], $_POST["message"]
! . "\r\n\r\n--\r\nMessage generated by openfirst.feedback.
! For more information about openFIRST, see:
! http://openfirst.sourceforge.net"
! ,
! "From: " . $_POST["from"] ."\r\nReply-To: ". $_POST["from"] ."\r\n");
! } else {
! 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:
***************
*** 81,84 ****
--- 96,100 ----
,
"From: " . $_POST["from"] ."\r\nReply-To: ". $_POST["from"] ."\r\n");
+ }
// Inform user of message being sent.
echo("Your message has been
|