summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Uckelman <uckelman@nomic.net>2011-09-26 22:48:08 +0200
committerJoel Uckelman <uckelman@nomic.net>2011-09-26 22:48:08 +0200
commit578de98968f71980755f5bf504e6b6066137dc32 (patch)
tree053bbde3fc9994c659455b23e764e31da33c447f
parent6895ac6c4274221cc28124fa9eead033b18cb626 (diff)
No longer needed, we don't remove message ids from the DB now.
-rw-r--r--src/forum_post_delete.php55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/forum_post_delete.php b/src/forum_post_delete.php
deleted file mode 100644
index c5170f6..0000000
--- a/src/forum_post_delete.php
+++ /dev/null
@@ -1,55 +0,0 @@
-<?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');
-#
-
-try {
- remove_post($post_id);
-}
-catch (Exception $e) {
- trigger_error($e, E_USER_ERROR);
-}
-
-function remove_post($postId) {
- require_once('Log.php');
- $logger = &Log::singleton('file', '/var/log/listbridge', 'one');
-
- require_once(__DIR__ . '/BridgeConf.php');
- require_once(__DIR__ . '/BridgeImpl.php');
-
- $bdb = new PDO('mysql:host=' . DB_HOST . ';dbname=' . DB, DB_USER, DB_PASS);
- $bridge = new BridgeImpl($bdb);
-
- if ($bridge->removePost($postId)) {
- $logger->info($postId . ' deleted');
- }
- else {
- $logger->info($postId . ' not found, not deleted');
- }
-}
-
-?>