Update of /cvsroot/phpslash/phpslash-ft/public_html
In directory usw-pr-cvs1:/tmp/cvs-serv9588/phpslash-ft/public_html
Modified Files:
submission.php3 comment.php3
Log Message:
emailNotify function
Index: submission.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/submission.php3,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** submission.php3 20 May 2002 19:52:48 -0000 1.7
--- submission.php3 31 May 2002 19:30:28 -0000 1.8
***************
*** 36,39 ****
--- 36,45 ----
logwrite("Story Submission", "$REMOTE_ADDR submitted a story");
echo pslgetText('Thanks for this submission. We have it and will set our fearless editorial staff upon it right this second.') . "<br>\n";
+ // send email for new submission.
+ if ($_PSL[submitnotify]) {
+ $ary['tpl'] = "emailNotifySubmission";
+ $ary['vars'] = $HTTP_POST_VARS;
+ $success = emailNotify($ary);
+ }
} else {
echo "<FONT COLOR=RED>".pslgetText("Something broke, I'm not sure what though??")."</FONT>\n";
Index: comment.php3
===================================================================
RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** comment.php3 13 May 2002 18:43:23 -0000 1.12
--- comment.php3 31 May 2002 19:30:28 -0000 1.13
***************
*** 148,151 ****
--- 148,157 ----
$comment_ary = $cmt->getCommentArray($id);
echo $cmt->formatComment($comment_ary);
+ // send email for new submission.
+ if ($_PSL[commentnotify]) {
+ $mail_ary['tpl'] = "emailNotifyComment";
+ $mail_ary['vars'] = $HTTP_POST_VARS + $cmtary;
+ $success = emailNotify($mail_ary);
+ }
} else {
echo pslgetText("Your comment was NOT saved") . "<BR>\n";
|