summaryrefslogtreecommitdiff
path: root/src/F2M.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/F2M.php')
-rw-r--r--src/F2M.php22
1 files changed, 3 insertions, 19 deletions
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 '<p>';
var_dump($data);
var_dump($post_data);
var_dump($messageId);
print '</p>';
+*/
/*
$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;
-}
-
?>