mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
ee28ab6a2a
(cherry picked from commit 396c087)
34 lines
739 B
PHP
34 lines
739 B
PHP
<?php
|
|
|
|
if (!$users->isLoggedIn())
|
|
$page->show403();
|
|
|
|
$id = $_GET["id"] + 0;
|
|
|
|
$forum = new Forum();
|
|
if ($page->isPostBack())
|
|
{
|
|
$forum->add($id, $users->currentUserId(), "", $_POST["addReply"]);
|
|
header("Location:".WWW_TOP."/forumpost/".$id."#last");
|
|
die();
|
|
}
|
|
|
|
$results = $forum->getPosts($id);
|
|
if (count($results) == 0)
|
|
{
|
|
header("Location:".WWW_TOP."/forum");
|
|
die();
|
|
}
|
|
|
|
$page->meta_title = "Forum Post";
|
|
$page->meta_keywords = "view,forum,post,thread";
|
|
$page->meta_description = "View forum post";
|
|
|
|
$page->smarty->assign('results', $results);
|
|
$page->smarty->assign('privateprofiles', ($page->settings->getSetting('privateprofiles') == 1) ? true : false );
|
|
|
|
$page->content = $page->smarty->fetch('forumpost.tpl');
|
|
$page->render();
|
|
|
|
|