created by = $current->author->name; ?>
in = $current->category->name; ?>, = date('M d, Y g:ia', strtotime($current->date_created)); ?>
is_signed_in() and Session::get()->get_current_user()->level == USER_LEVEL_MODERATOR): ?>
get_posts() as $post) {
echo $post->get_content();
}
?>
Reply to this thread
is_signed_in()) {
trigger_error('You must be signed in to reply to this thread.', E_USER_NOTICE);
return;
}
$post_content = filter_input(INPUT_POST, 'post_content', FILTER_SANITIZE_STRING);
if (empty($post_content) or !$post_content) {
trigger_error('Reply cannot be empty');
} else {
Post::create($post_content, $current->id, $current->category->id);
header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $current->id);
}
}
?>