60) { $_SESSION['last_access'] = time(); } header("Expires: " . gmdate("D, d M Y H:i:s", time() + (100)) . " GMT"); header("Cache-Control: max-age=100"); header("Pragma: cache"); $_SESSION['group'] = $_SERVER['REQUEST_URI']; include "config.inc.php"; include ("$file_newsportal"); // register parameters $group = _rawurldecode($_REQUEST["group"]); if (isset($_REQUEST["first"])) $first = intval($_REQUEST["first"]); if (isset($_REQUEST["last"])) $last = intval($_REQUEST["last"]); // Switch to correct section in case group has been moved and link is to old section $findsection = get_section_by_group($group); if (trim($findsection) !== $config_name) { if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') $link = "https"; else $link = "http"; $link .= "://"; $link .= $_SERVER['HTTP_HOST']; $link .= $_SERVER['REQUEST_URI']; $newurl = preg_replace("|/$config_name/|", "/$findsection/", $link); header("Location:$newurl"); die(); } if (isset($_COOKIE['mail_name'])) { if ($userdata = get_user_mail_auth_data($_COOKIE['mail_name'])) { $userfile = $spooldir . '/' . strtolower($_COOKIE['mail_name']) . '-articleviews.dat'; } } $thread_show["latest"] = true; $title .= ' - ' . $group; include "head.inc"; $logfile = $logdir . '/newsportal.log'; $CONFIG = include ($config_file); if ((! function_exists("npreg_group_has_read_access") || npreg_group_has_read_access($group)) && (! function_exists("npreg_group_is_visible") || npreg_group_is_visible($group))) { if (isset($frames_on) && $frames_on === true) { ?> '; echo '

'; echo '' . basename(getcwd()) . ' / '; echo htmlspecialchars(group_display_name($group)) . '

'; echo ''; // View Latest button if (isset($overboard) && ($overboard == true)) { echo ''; } if (! $CONFIG['readonly'] && (! function_exists("npreg_group_has_write_access") || npreg_group_has_write_access($group))) { // New Thread button echo ''; } // Search button echo ''; // Newsgroups button (hidden) if (isset($frames_on) && $frames_on === true) { echo ''; } // $ns=nntp_open($server,$port); flush(); $headers = thread_load($group); if ($headers) { $article_count = count($headers); } if ($articles_per_page != 0) { if ((! isset($first)) || (! isset($last))) { if ($startpage == "first") { $first = 1; $last = $articles_per_page; } else { $first = $article_count - (($article_count - 1) % $articles_per_page); $last = $article_count; } } echo ''; } else { $first = 0; $last = $article_count; } echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo ''; echo '
'; echo '
'; echo '
'; echo ''; echo '
'; echo '
'; // Show the replies to an article in the thread view? if ($thread_show["replies"]) { // yes, so the counting of the shown articles is very easy $pagecount = count($headers); } else { // oh no, the replies will not be shown, this makes life hard... $pagecount = 0; if (($headers) && (count($headers) > 0 && is_array($headers))) { foreach ($headers as $h) { if ($h->isAnswer == false) $pagecount ++; } } } thread_pageselect($group, $pagecount, $first); echo '
'; thread_show($headers, $group, $first, $last); echo ''; echo '
'; thread_pageselect($group, $pagecount, $first); echo '
'; } else { echo $text_register["no_access_group"]; } $sessions_data = file_get_contents($spooldir . '/sessions.dat'); echo '

' . $sessions_data . '

'; include "tail.inc"; ?>