From d4e28b7d94d7eed6edae05729e14e51b30f87e18 Mon Sep 17 00:00:00 2001 From: Charly Root Date: Mon, 7 Oct 2013 23:59:55 +0200 Subject: mark config with CONFIG_TODO --- src/BridgeConf.php.example | 6 +++--- src/PhpBB3Conf.php | 2 +- src/PhpBB3Impl.php | 4 ++-- src/PhpBB3ToMailman.php | 2 +- src/attachment_writer.php | 4 ++-- src/forum_post_send.php | 2 +- src/list_post_receive.php | 2 +- 7 files changed, 11 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/BridgeConf.php.example b/src/BridgeConf.php.example index e9f3bc4..5b9a27a 100644 --- a/src/BridgeConf.php.example +++ b/src/BridgeConf.php.example @@ -1,8 +1,8 @@ diff --git a/src/PhpBB3Conf.php b/src/PhpBB3Conf.php index 7f023d9..e33c5c9 100644 --- a/src/PhpBB3Conf.php +++ b/src/PhpBB3Conf.php @@ -1,5 +1,5 @@ diff --git a/src/PhpBB3Impl.php b/src/PhpBB3Impl.php index 06b0427..d2c908b 100644 --- a/src/PhpBB3Impl.php +++ b/src/PhpBB3Impl.php @@ -329,9 +329,9 @@ class PhpBB3Impl implements PhpBB3 { # post the attachment data to our attachment writer shim require_once(__DIR__ . '/HTTP_POST_multipart.php'); - $url = 'http://www.vassalengine.org/forum/attachment_writer.php'; + $url = 'http://CONFIG_TODO/attachment_writer.php'; $poster = new HTTP_POST_multipart(); - $poster->addData('password', '5rnudbp7dLkijcwrT@sz'); + $poster->addData('password', 'CONFIG_TODO: use the same random password here as in attachment_writer.php'); $poster->addFile(1, $physicalFilename, $mimetype, null, 'binary', $data); $result = $poster->post($url); diff --git a/src/PhpBB3ToMailman.php b/src/PhpBB3ToMailman.php index 2ef3c73..2d72af2 100644 --- a/src/PhpBB3ToMailman.php +++ b/src/PhpBB3ToMailman.php @@ -63,7 +63,7 @@ class PhpBB3ToMailman { $userName = $user->data['username']; $userEmail = $user->data['user_email']; - $sender = 'forum-bridge@vassalengine.org'; + $sender = 'forum-bridge@CONFIG_TODO.org'; # determine if we are a reply $is_reply = $mode == 'reply' || $mode == 'quote'; diff --git a/src/attachment_writer.php b/src/attachment_writer.php index 5b290d6..eccf641 100644 --- a/src/attachment_writer.php +++ b/src/attachment_writer.php @@ -18,8 +18,8 @@ # along with this program. If not, see . # -$password = ''; -$attach_dir = '/var/www/forum/files'; +$password = 'CONFIG_TODO use the same random password as in PhpBB3Impl.php'; +$attach_dir = '/var/www/CONFIG_TODO/files'; # All requests should be local, since they come from the list post script. if ($_SERVER['SERVER_ADDR'] != $_SERVER['REMOTE_ADDR']) { diff --git a/src/forum_post_send.php b/src/forum_post_send.php index 894d411..cf76ef5 100644 --- a/src/forum_post_send.php +++ b/src/forum_post_send.php @@ -33,7 +33,7 @@ catch (Exception $e) { function send_post_to_lists($config, $user, $mode, $data, $post_data) { require_once('Log.php'); - $logger = &Log::singleton('file', '/var/log/listbridge', 'one'); + $logger = &Log::singleton('file', '/var/log/CONFIG_TODO/log', 'one'); /* print '

'; diff --git a/src/list_post_receive.php b/src/list_post_receive.php index ba8e2c3..9b0a3cc 100644 --- a/src/list_post_receive.php +++ b/src/list_post_receive.php @@ -19,7 +19,7 @@ # require_once('Log.php'); -$logger = &Log::singleton('file', '/var/log/listbridge', 'one'); +$logger = &Log::singleton('file', '/var/log/CONFIG_TODO/log', 'one'); try { if (!isset($_POST['message'])) { -- cgit v1.2.3