From f7f0e15f2dfe5e068d5a44376d74403ef21c0cd7 Mon Sep 17 00:00:00 2001 From: uckelman Date: Thu, 29 Jul 2010 13:23:57 +0000 Subject: * Added license. * Added Id tag. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7051 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/BBCodeParser.php | 20 ++++++++++++++++++++ src/Bridge.php | 20 ++++++++++++++++++++ src/EmailMessage.php | 20 ++++++++++++++++++++ src/HTTP_POST_multipart.php | 20 ++++++++++++++++++++ src/MailmanLib.php | 20 ++++++++++++++++++++ src/MailmanMessage.php | 20 ++++++++++++++++++++ src/Message.php | 20 ++++++++++++++++++++ src/PhpBB3Message.php | 20 ++++++++++++++++++++ src/Util.php | 20 ++++++++++++++++++++ src/attachment_writer.php | 20 ++++++++++++++++++++ src/forum_post_delete.php | 21 +++++++++++++++++++++ src/forum_post_send.php | 20 ++++++++++++++++++++ src/list_post_receive.php | 20 ++++++++++++++++++++ src/postfix_handoff.pl | 20 ++++++++++++++++++++ test/BBCodeParserTest.php | 20 ++++++++++++++++++++ test/BridgeTest.php | 20 ++++++++++++++++++++ test/HTTP_POST_multipartTest.php | 20 ++++++++++++++++++++ test/MailmanLibTest.php | 20 ++++++++++++++++++++ test/MailmanMessageTest.php | 20 ++++++++++++++++++++ test/PhpBB3MessageTest.php | 20 ++++++++++++++++++++ test/PhpBB3Test.php | 20 ++++++++++++++++++++ 21 files changed, 421 insertions(+) diff --git a/src/BBCodeParser.php b/src/BBCodeParser.php index 7419491..32e2bbe 100644 --- a/src/BBCodeParser.php +++ b/src/BBCodeParser.php @@ -1,5 +1,25 @@ . +# + class BBCodeParser { const TEXT = 0; diff --git a/src/Bridge.php b/src/Bridge.php index ce1d7d8..dd0a1f1 100644 --- a/src/Bridge.php +++ b/src/Bridge.php @@ -1,5 +1,25 @@ . +# + require_once(__DIR__ . '/BridgeConf.php'); require_once(__DIR__ . '/Util.php'); diff --git a/src/EmailMessage.php b/src/EmailMessage.php index 2caccca..69b7ab0 100644 --- a/src/EmailMessage.php +++ b/src/EmailMessage.php @@ -1,5 +1,25 @@ . +# + # FIXME: maybe use Mailparse instead of Mail_mimeDecode require_once('Mail/mimeDecode.php'); diff --git a/src/HTTP_POST_multipart.php b/src/HTTP_POST_multipart.php index e6e92e4..daeffcd 100644 --- a/src/HTTP_POST_multipart.php +++ b/src/HTTP_POST_multipart.php @@ -1,5 +1,25 @@ . +# + define('EOL', "\r\n"); class HTTP_POST_multipart { diff --git a/src/MailmanLib.php b/src/MailmanLib.php index cc68d42..3491d91 100644 --- a/src/MailmanLib.php +++ b/src/MailmanLib.php @@ -1,5 +1,25 @@ . +# + function read_raw_message($url) { $input = file_get_contents($url); if (!$input) { diff --git a/src/MailmanMessage.php b/src/MailmanMessage.php index c284a8e..dfd100e 100644 --- a/src/MailmanMessage.php +++ b/src/MailmanMessage.php @@ -1,5 +1,25 @@ . +# + require_once(__DIR__ . '/EmailMessage.php'); class MailmanMessage extends EmailMessage { diff --git a/src/Message.php b/src/Message.php index 637d651..9bb082d 100644 --- a/src/Message.php +++ b/src/Message.php @@ -1,5 +1,25 @@ . +# + interface Message { public function getSource(); diff --git a/src/PhpBB3Message.php b/src/PhpBB3Message.php index 4b35b47..56e6f21 100644 --- a/src/PhpBB3Message.php +++ b/src/PhpBB3Message.php @@ -1,5 +1,25 @@ . +# + require_once(__DIR__ . '/Message.php'); class PhpBB3Message implements Message { diff --git a/src/Util.php b/src/Util.php index c11263e..2535bc5 100644 --- a/src/Util.php +++ b/src/Util.php @@ -1,5 +1,25 @@ . +# + function throw_if_null($arg) { if ($arg === null) throw new Exception('argument is null'); } diff --git a/src/attachment_writer.php b/src/attachment_writer.php index dfc1233..262175b 100644 --- a/src/attachment_writer.php +++ b/src/attachment_writer.php @@ -1,5 +1,25 @@ . +# + $password = ''; $attach_dir = '/var/www/forum/files'; diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php index 56fbfdc..f80b1ad 100644 --- a/src/forum_post_delete.php +++ b/src/forum_post_delete.php @@ -1,5 +1,26 @@ . +# + + # # Usage: In posting.php, following delete_post(): # diff --git a/src/forum_post_send.php b/src/forum_post_send.php index 9d9ff33..ffab780 100644 --- a/src/forum_post_send.php +++ b/src/forum_post_send.php @@ -1,5 +1,25 @@ . +# + # # Usage: In posting.php, following submit_post(): # diff --git a/src/list_post_receive.php b/src/list_post_receive.php index fedf005..2072742 100644 --- a/src/list_post_receive.php +++ b/src/list_post_receive.php @@ -1,5 +1,25 @@ . +# + # TODO: logging! # TODO: Refactor postMessage(). diff --git a/src/postfix_handoff.pl b/src/postfix_handoff.pl index 88c6675..bbd61f6 100755 --- a/src/postfix_handoff.pl +++ b/src/postfix_handoff.pl @@ -1,5 +1,25 @@ #!/usr/bin/perl -w +# +# $Id$ +# +# forum-list bridge +# Copyright (C) 2010 Joel Uckelman +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + use LWP::UserAgent; use HTTP::Request::Common qw(POST); diff --git a/test/BBCodeParserTest.php b/test/BBCodeParserTest.php index f2341aa..1c6a696 100644 --- a/test/BBCodeParserTest.php +++ b/test/BBCodeParserTest.php @@ -1,5 +1,25 @@ . +# + require_once('PHPUnit/Framework.php'); require_once('src/BBCodeParser.php'); diff --git a/test/BridgeTest.php b/test/BridgeTest.php index 8688af3..9d88075 100644 --- a/test/BridgeTest.php +++ b/test/BridgeTest.php @@ -1,5 +1,25 @@ . +# + require_once('PHPUnit/Framework.php'); require_once('src/Bridge.php'); diff --git a/test/HTTP_POST_multipartTest.php b/test/HTTP_POST_multipartTest.php index bb29422..3328aca 100644 --- a/test/HTTP_POST_multipartTest.php +++ b/test/HTTP_POST_multipartTest.php @@ -1,5 +1,25 @@ . +# + require_once('PHPUnit/Framework.php'); require_once('src/HTTP_POST_multipart.php'); diff --git a/test/MailmanLibTest.php b/test/MailmanLibTest.php index d8bf4af..05e475f 100644 --- a/test/MailmanLibTest.php +++ b/test/MailmanLibTest.php @@ -1,5 +1,25 @@ . +# + require_once('PHPUnit/Framework.php'); require_once('src/MailmanLib.php'); diff --git a/test/MailmanMessageTest.php b/test/MailmanMessageTest.php index c6c6405..cb3ccd2 100644 --- a/test/MailmanMessageTest.php +++ b/test/MailmanMessageTest.php @@ -1,5 +1,25 @@ . +# + require_once('PHPUnit/Framework.php'); require_once('src/MailmanMessage.php'); diff --git a/test/PhpBB3MessageTest.php b/test/PhpBB3MessageTest.php index b3f4f0e..469a9ab 100644 --- a/test/PhpBB3MessageTest.php +++ b/test/PhpBB3MessageTest.php @@ -1,5 +1,25 @@ . +# + require_once('PHPUnit/Framework.php'); require_once('src/PhpBB3Message.php'); diff --git a/test/PhpBB3Test.php b/test/PhpBB3Test.php index 2d5b0ea..170a15b 100644 --- a/test/PhpBB3Test.php +++ b/test/PhpBB3Test.php @@ -1,5 +1,25 @@ . +# + require_once('PHPUnit/Framework.php'); class PhpBB3Test extends PHPUnit_Framework_TestCase { -- cgit v1.2.3