summaryrefslogtreecommitdiff
path: root/src/forum_post_delete.php
blob: 177d08e55e104b353622d27c904f7d7314b98213 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

#
# 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(__DIR__ . '/Bridge.php');

  $bridge = new Bridge();
  $bridge->removePost($postId);
}

?>