header("Expires: ".gmdate("D, d M Y H:i:s",time()+7200)." GMT"); $url=explode("/",$PATH_INFO); $group=$url[1]; if (!isset($url[2])) { header('Location: '.$group.'/index.html'); //.$URL.'/index.html'); echo "nix"; exit; } else { $pagestring=$url[2]; if (eregi('^.*_.*\.html',$pagestring)) { $first=substr($pagestring,0,strpos($pagestring,'_')); $last=str_replace('.html','', substr($pagestring,strpos($pagestring,'_')+1)); } } 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"; ?>