Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1:/tmp/cvs-serv27636
Modified Files:
serendipity_functions.inc.php
Log Message:
Added link to entry in emails, sent when comments or trackbacks are made
Fixed URL in signature
Index: serendipity_functions.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions.inc.php,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- serendipity_functions.inc.php 20 Jun 2003 20:41:57 -0000 1.70
+++ serendipity_functions.inc.php 22 Jun 2003 12:33:18 -0000 1.71
@@ -570,11 +570,15 @@
function serendipity_sendComment($to, $fromName, $fromEmail, $fromUrl, $id, $title, $comment, $type='NORMAL') {
global $serendipity;
+ $entryURI = $serendipity['baseURL']
+ . "archives/"
+ . $id
+ . "_".serendipity_makeFilename($title).".html";
+
if ($type == 'TRACKBACK') {
-
-/* If the comment is a trackback */
$subject = "[$serendipity[blogTitle]] New trackback made to $title";
- $text = sprintf(A_NEW_TRACKBACK_BLAHBLAH, $title)."
+ $text = sprintf(A_NEW_TRACKBACK_BLAHBLAH, $title) ."
+Link to entry: ". $entryURI ."
Weblog ".NAME.": ". stripslashes($fromName) ."
Link to remote-entry: $fromUrl
@@ -584,15 +588,14 @@
} else {
-
-/* If the comment is a.. comment */
$subject = "[$serendipity[blogTitle]] New comment posted to $title";
- $text = sprintf(A_NEW_COMMENT_BLAHBLAH, $serendipity[blogTitle],$title)."
+ $text = sprintf(A_NEW_COMMENT_BLAHBLAH, $serendipity[blogTitle],$title) ."
+Link to entry: ". $entryURI ."
User IP Address: $_SERVER[REMOTE_ADDR]
-User ".NAME.": $fromName
-User ".EMAIL.": $fromEmail
-User URL: $fromUrl
+User ". NAME .": $fromName
+User ". EMAIL .": $fromEmail
+User website: $fromUrl
".COMMENTS.":
". strip_tags($comment);
@@ -602,11 +605,10 @@
$signature = "
--
$serendipity[blogTitle] is powered by Serendipity.
-The best PHP blog around, you can use it too.
-Check out http://php-blog.sf.net/ to find out how.";
+The best PHP blog around, you can use it to.
+Check out <http://s9y.org> to find out how.";
-mail($to, $subject, $text.$signature,
- "From: $fromName <$fromEmail>\r\n");
+mail($to, $subject, $text.$signature, "From: $fromName <$fromEmail>\r\n");
}
|