diff options
author | uckelman <uckelman@nomic.net> | 2010-07-29 13:23:57 +0000 |
---|---|---|
committer | uckelman <uckelman@nomic.net> | 2010-07-29 13:23:57 +0000 |
commit | f7f0e15f2dfe5e068d5a44376d74403ef21c0cd7 (patch) | |
tree | 3990d945a09040238a2daadfaa40410f52fd15e5 /src | |
parent | 32faf759b5114427c59f649d190960c07035d3d9 (diff) |
* Added license.
* Added Id tag.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@7051 67b53d14-2c14-4ace-a08f-0dab2b34000c
Diffstat (limited to 'src')
-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 |
14 files changed, 281 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); |