created by = $current->author->name; ?>
in = $current->category->name; ?>
3 days ago
is_signed_in()) {
$user = Session::get()->get_current_user();
if ($user->level == USER_LEVEL_MODERATOR) {
echo '
';
}
}
?>
get_posts($dbc);
foreach ($posts as $post) {
$post->display_content($dbc);
}
?>
Reply to this thread
signed in to reply to this thread.';
return;
}
$post_content = filter_input(INPUT_POST, 'post_content', FILTER_SANITIZE_STRING);
$user_id = filter_var($_SESSION['user_id'], FILTER_SANITIZE_NUMBER_INT);
if (empty($post_content) or !$post_content) {
echo 'Thread subject cannot be empty';
} else {
create_post($post_content, $current->id, $current->category->id);
}
}
?>