From b0b79fcd5ee50ad6c2b3f99a9a5ba77bbe7d9234 Mon Sep 17 00:00:00 2001 From: uckelman Date: Mon, 12 Apr 2010 22:04:19 +0000 Subject: Tinkering. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6693 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/F2M.php | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'src/F2M.php') diff --git a/src/F2M.php b/src/F2M.php index 5cc5b6a..81238a7 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -10,6 +10,7 @@ catch (Exception $e) { function send_to_lists($user, $data, $post_data) { require_once(__DIR__ . '/PhpBB3.php'); + require_once(__DIR__ . '/Util.php'); $phpbb = new PhpBB3(); @@ -17,7 +18,6 @@ function send_to_lists($user, $data, $post_data) { require_once('Mail.php'); require_once(__DIR__ . '/Bridge.php'); - require_once(__DIR__ . '/Util.php'); */ $postId = $data['post_id']; @@ -36,17 +36,18 @@ function send_to_lists($user, $data, $post_data) { $body = $data['message']; +/* print '

'; var_dump($data); var_dump($post_data); var_dump($messageId); print '

'; +*/ /* $bridge = new Bridge(); $to = $bridge->getLists($forumId); - $messageId = build_message_id($postId); $headers = array( 'To' => implode(', ', $to), @@ -57,27 +58,10 @@ function send_to_lists($user, $data, $post_data) { 'X-BeenThere' => $forumURL, ); - - - - - $mailer = Mail::factory('sendmail'); $mailer->send($to, $headers, $body); */ } -function get_post_time($postId) { - throw_if_null($postId); - - global $db; - - $sql = 'SELECT post_time FROM ' . POSTS_TABLE . ' ' . - 'WHERE post_id = ' . $postId; - - $row = $this->get_exactly_one_row($sql); - return $row ? $row['user_id'] : false; -} - ?> -- cgit v1.2.3