From 578de98968f71980755f5bf504e6b6066137dc32 Mon Sep 17 00:00:00 2001 From: Joel Uckelman Date: Mon, 26 Sep 2011 22:48:08 +0200 Subject: No longer needed, we don't remove message ids from the DB now. --- src/forum_post_delete.php | 55 ----------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 src/forum_post_delete.php 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 @@ -. -# - - -# -# 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'); - } -} - -?> -- cgit v1.2.3