diff options
author | uckelman <uckelman@nomic.net> | 2010-04-11 22:09:29 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-04-11 22:09:29 +0000 |
commit | 9f50b45b134d33b34f248216c5a5a6669809dfac (patch) | |
tree | 2250267aed8dba87cd85cd85b436dfd77d132109 /src/F2M.php | |
parent | 3c20fc86780bb0a9bca8cadb8392c7824c2e4a13 (diff) |
Get forumURL.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6690 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src/F2M.php')
-rw-r--r-- | src/F2M.php | 11 |
1 files changed, 7 insertions, 4 deletions
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 '<p>'; var_dump($data); var_dump($post_data); - var_dump($date); - var_dump($_SERVER); + var_dump($messageId); + var_dump($forumURL); print '</p>'; /* |