if ($article['hidden_threads']) { $hidden_db = preg_replace('/[\\{\\}]/', '', $article['hidden_threads']); $hidden = explode(',', $hidden_db); } // $page = __paramInit('int', 'p'); // if (!$page) $page = 1; if ($article['approved'] == 'f' && !hasPermissions('articles') && $article['user_id'] != $uid) { include ABS_PATH . '/404.php'; } if ($article['approved'] == 't') { $css_file[] = 'hljs.css'; $css_file[] = 'wysiwyg.css'; } $tab = $article['approved'] == 'f' ? 'unpublished' : ''; if ($uid && $article['approved'] == 't') { articles::setArticleLVT($uid, $article); } $dt = $article['approved'] == 't' ? $article['approve_date'] : $article['post_time']; $nav = articles::getNavigation($dt, $article['approved'] == 't'); $navigation = array(); if ($nav[1]['pos'] == 1) { $navigation['next'] = $nav[1]; } else { $navigation['prev'] = $nav[1]; } if (isset($nav[2])) { $navigation['prev'] = $nav[2]; } require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/comments/CommentsArticles.php'; $comments = new CommentsArticles($article['id'], $article['lastviewtime'], array('hidden_threads' => $article['hidden_threads'])); $comments->tpl_path = $_SERVER['DOCUMENT_ROOT'] . '/classes/comments/';