patch by konus, include referer
This commit is contained in:
parent
03efc3e842
commit
302d67b224
@ -3,6 +3,8 @@
|
|||||||
Version 1.6 ()
|
Version 1.6 ()
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
||||||
|
* Include referrer in comment notification email (konus)
|
||||||
|
|
||||||
* Added new 'fulltext' search option to sidebar plugin
|
* Added new 'fulltext' search option to sidebar plugin
|
||||||
http://board.s9y.org/viewtopic.php?f=4&t=16051
|
http://board.s9y.org/viewtopic.php?f=4&t=16051
|
||||||
|
|
||||||
|
@ -835,7 +835,7 @@ function serendipity_insertComment($id, $commentInfo, $type = 'NORMAL', $source
|
|||||||
if ($status != 'confirm' && (serendipity_db_bool($ca['moderate_comments'])
|
if ($status != 'confirm' && (serendipity_db_bool($ca['moderate_comments'])
|
||||||
|| ($type == 'NORMAL' && serendipity_db_bool($row['mail_comments']))
|
|| ($type == 'NORMAL' && serendipity_db_bool($row['mail_comments']))
|
||||||
|| ($type == 'TRACKBACK' && serendipity_db_bool($row['mail_trackbacks'])))) {
|
|| ($type == 'TRACKBACK' && serendipity_db_bool($row['mail_trackbacks'])))) {
|
||||||
serendipity_sendComment($cid, $row['email'], $name, $email, $url, $id, $row['title'], $comments, $type, serendipity_db_bool($ca['moderate_comments']));
|
serendipity_sendComment($cid, $row['email'], $name, $email, $url, $id, $row['title'], $comments, $type, serendipity_db_bool($ca['moderate_comments']), $referer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Approve with force, if moderation is disabled
|
// Approve with force, if moderation is disabled
|
||||||
@ -1083,7 +1083,7 @@ function serendipity_cancelSubscription($email, $entry_id) {
|
|||||||
* @param boolean Toggle Whether comments to this entry need approval
|
* @param boolean Toggle Whether comments to this entry need approval
|
||||||
* @return boolean Return success of sending the mails
|
* @return boolean Return success of sending the mails
|
||||||
*/
|
*/
|
||||||
function serendipity_sendComment($comment_id, $to, $fromName, $fromEmail, $fromUrl, $id, $title, $comment, $type = 'NORMAL', $moderate_comment = false) {
|
function serendipity_sendComment($comment_id, $to, $fromName, $fromEmail, $fromUrl, $id, $title, $comment, $type = 'NORMAL', $moderate_comment = false, $referer = '') {
|
||||||
global $serendipity;
|
global $serendipity;
|
||||||
|
|
||||||
if (empty($fromName)) {
|
if (empty($fromName)) {
|
||||||
@ -1159,6 +1159,7 @@ function serendipity_sendComment($comment_id, $to, $fromName, $fromEmail, $fromU
|
|||||||
. "\n" . USER . ' ' . NAME . ': ' . $fromName
|
. "\n" . USER . ' ' . NAME . ': ' . $fromName
|
||||||
. "\n" . USER . ' ' . EMAIL . ': ' . $fromEmail
|
. "\n" . USER . ' ' . EMAIL . ': ' . $fromEmail
|
||||||
. "\n" . USER . ' ' . HOMEPAGE . ': ' . $fromUrl
|
. "\n" . USER . ' ' . HOMEPAGE . ': ' . $fromUrl
|
||||||
|
. "\n" . USER . ' ' . REFERER . ': ' . $referer
|
||||||
. "\n"
|
. "\n"
|
||||||
. "\n" . COMMENTS . ': '
|
. "\n" . COMMENTS . ': '
|
||||||
. "\n" . strip_tags($comment)
|
. "\n" . strip_tags($comment)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user