<?php require_once "forum.func.php"; $this_topic = get_topic_byid($_GET['tid']); $this_forum = get_forum_byid($this_topic['forum_id']); $this_topic['show_qr'] = $this_forum['quick_reply'] == 1 ? true : false; if ($this_forum['forum_id'] <= 0 || $this_topic['topic_id'] <= 0) { exit('This forum or topic dose not exists.'); } // ================================================= // $this_forum['linktothis'] = $config['site_href'] . 'index.php?n=forum&sub=viewforum&fid=' . $this_forum['forum_id'] . ''; $this_forum['linktonewtopic'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=newtopic&f=' . $this_forum['forum_id'] . ''; $this_topic['linktothis'] = $config['site_href'] . 'index.php?n=forum&sub=viewtopic&tid=' . $this_topic['topic_id'] . ''; $this_topic['linktoreply'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=newpost&t=' . $this_topic['topic_id']; $this_topic['linktopostreply'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=donewpost&t=' . $this_topic['topic_id']; $this_topic['linktodelete'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=dodeletetopic&t=' . $this_topic['topic_id']; $this_topic['linktoclose'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=closetopic&t=' . $this_topic['topic_id']; $this_topic['linktoopen'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=opentopic&t=' . $this_topic['topic_id']; $this_topic['linktostick'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=sticktopic&t=' . $this_topic['topic_id']; $this_topic['linktounstick'] = $config['site_href'] . 'index.php?n=forum&sub=post&action=unsticktopic&t=' . $this_topic['topic_id']; $pathway_info[] = array('title' => $this_forum['forum_name'], 'link' => $this_forum['linktothis']); $pathway_info[] = array('title' => $this_topic['topic_name'], 'link' => ''); // ================================================= // $not_allow = false; if ($this_forum['hidden'] == 1 and ($user['id'] <= 0 or $user['gmlevel'] <= 0)) { $not_allow = true; } if ($not_allow) { //print_r($lang['youhavenorights']); output_message('alert', 'Нет прав для просмотра этой страницы!' . '<meta http-equiv=refresh content="2;url=index.php?n=forum">'); } else {
<?php require_once "forum.func.php"; if ($_GETVARS['post'] > 0) { $this_post = get_post_byid($_GETVARS['post']); } $this_post['topic_id'] > 0 ? $_GETVARS['t'] = $this_post['topic_id'] : 0; if ($_GETVARS['t'] > 0) { $this_topic = get_topic_byid($_GETVARS['t']); } $this_topic['forum_id'] > 0 ? $_GETVARS['f'] = $this_topic['forum_id'] : 0; if ($_GETVARS['f'] > 0) { $this_forum = get_forum_byid($_GETVARS['f']); } // ==================== // $pathway_info[] = array('title' => $this_forum['forum_name'], 'link' => 'index.php?n=forum&sub=viewforum&fid=' . $this_forum['forum_id'] . ''); if ($_GETVARS['t']) { $pathway_info[] = array('title' => $this_topic['topic_name'], 'link' => 'index.php?n=forum&sub=viewtopic&tid=' . $this_topic['topic_id'] . ''); } if ($_GET['action'] == 'newtopic') { $pathway_info[] = array('title' => $lang['newtopic'], 'link' => ''); } elseif ($_GET['action'] == 'newpost') { $pathway_info[] = array('title' => $lang['newpost'], 'link' => ''); } elseif ($_GET['action'] == 'edittopic') { $pathway_info[] = array('title' => $lang['edittopic'], 'link' => ''); } elseif ($_GET['action'] == 'editpost') { $pathway_info[] = array('title' => $lang['editpost'], 'link' => ''); } // ==================== // $post_time = time(); $not_allow = false;