summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-12 22:04:19 +0000
committeruckelman <uckelman@nomic.net>2010-04-12 22:04:19 +0000
commitb0b79fcd5ee50ad6c2b3f99a9a5ba77bbe7d9234 (patch)
tree1211dd83c4f679349f4a6aa2d1cfca74367c3ca5 /src
parent1085199ea95917e274fc2e4371dc2be7fc057193 (diff)
Tinkering.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6693 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src')
-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;
-}
-
?>