get_from_database($_GET['id']); if (!$result) { http_response_code(404); include('includes/templates/404.php'); die(); } } ?> <?= $current->subject; ?> - cflip.net forum

subject; ?>

created by author->name; ?> in category->name; ?> 3 days ago is_signed_in()) { $user = Session::get()->get_current_user(); if ($user->level == USER_LEVEL_MODERATOR) { echo '

Moderator Options

'; } } ?>
get_posts(); foreach ($posts as $post) { echo get_post_content($post); } ?>

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 { create_post($post_content, $current->id, $current->category->id); header('Location: ' . $_SERVER['PHP_SELF'] . '?id=' . $current->id); } } ?>