header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT"); // $PATH_INFO = /suika:misc/10:20 $url = explode ("/", $PATH_INFO); $group = str_replace (':', '.', $url[1]); if (!isset($url[2])) { header('Location: '.$group.'/index'); echo "nix"; exit; } else { $pagestring=$url[2]; preg_match("/^([0-9]+)[_-]([0-9]+)/", $pagestring, $matches); $first = $matches[1]; $last = $matches[2]; } include "config.inc"; $title.= ' - '.$group; include "body.inc"; ?>
include("$file_newsportal"); $ns=OpenNNTPconnection($server,$port); flush(); if ($ns != false) { $headers = readOverview($ns,$group,1); $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 ''; showPageSelectMenu(count($headers),$first); echo '
'; } else { $first=0; $last=$article_count; } showHeaders($headers,$group,$first,$last); closeNNTPconnection($ns); } ?> include "footer.inc"; ?>