has_value()) {
http_response_code(404);
include('includes/templates/404.php');
die();
}
?>
= $current->subject; ?> - cflip.net forum
= $current->subject; ?>
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): ?>
Moderator Options
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.');
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);
}
}
?>