From 9f50b45b134d33b34f248216c5a5a6669809dfac Mon Sep 17 00:00:00 2001 From: uckelman Date: Sun, 11 Apr 2010 22:09:29 +0000 Subject: Get forumURL. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6690 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/F2M.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/F2M.php') diff --git a/src/F2M.php b/src/F2M.php index 1846c7f..dc334ae 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -26,18 +26,21 @@ function send_to_lists($user, $data, $post_data) { $userEmail = $user->data['user_email']; $subject = $post_data['post_subject']; + $time = $phpbb->getPostTime($postId); $date = date(DATE_RFC2822, $time); - -# $messageId = mbuild_message_id($time, $postId, $forumHost); + $messageId = mbuild_message_id($time, $postId, $_SERVER['SERVER_NAME']); + + $forumURL = 'http://' . $_SERVER['SERVER_NAME'] . + substr($_SERVER['SCRIPT_NAME'], 0, -strlen('/posting.php')); $body = $data['message']; print '

'; var_dump($data); var_dump($post_data); - var_dump($date); - var_dump($_SERVER); + var_dump($messageId); + var_dump($forumURL); print '

'; /* -- cgit v1.2.3