diff options
-rw-r--r-- | src/BBCodeParser.php | 20 | ||||
-rw-r--r-- | src/Bridge.php | 20 | ||||
-rw-r--r-- | src/EmailMessage.php | 20 | ||||
-rw-r--r-- | src/HTTP_POST_multipart.php | 20 | ||||
-rw-r--r-- | src/MailmanLib.php | 20 | ||||
-rw-r--r-- | src/MailmanMessage.php | 20 | ||||
-rw-r--r-- | src/Message.php | 20 | ||||
-rw-r--r-- | src/PhpBB3Message.php | 20 | ||||
-rw-r--r-- | src/Util.php | 20 | ||||
-rw-r--r-- | src/attachment_writer.php | 20 | ||||
-rw-r--r-- | src/forum_post_delete.php | 21 | ||||
-rw-r--r-- | src/forum_post_send.php | 20 | ||||
-rw-r--r-- | src/list_post_receive.php | 20 | ||||
-rwxr-xr-x | src/postfix_handoff.pl | 20 | ||||
-rw-r--r-- | test/BBCodeParserTest.php | 20 | ||||
-rw-r--r-- | test/BridgeTest.php | 20 | ||||
-rw-r--r-- | test/HTTP_POST_multipartTest.php | 20 | ||||
-rw-r--r-- | test/MailmanLibTest.php | 20 | ||||
-rw-r--r-- | test/MailmanMessageTest.php | 20 | ||||
-rw-r--r-- | test/PhpBB3MessageTest.php | 20 | ||||
-rw-r--r-- | test/PhpBB3Test.php | 20 |
21 files changed, 421 insertions, 0 deletions
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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + # 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + $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,6 +1,27 @@ <?php # +# $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 <http://www.gnu.org/licenses/>. +# + + +# # Usage: In posting.php, following delete_post(): # # require_once('/home/uckelman/site-src/bridge/src/forum_post_delete.php'); 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,6 +1,26 @@ <?php # +# $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 <http://www.gnu.org/licenses/>. +# + +# # Usage: In posting.php, following submit_post(): # # require_once('/home/uckelman/site-src/bridge/src/forum_post_send.php'); 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + # 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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + 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 @@ <?php +# +# $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 <http://www.gnu.org/licenses/>. +# + require_once('PHPUnit/Framework.php'); class PhpBB3Test extends PHPUnit_Framework_TestCase { |