<? 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"; ?> <a name="top"></a> <h1 align="center"><?php echo $group; ?></h1> <p align="center"> <? if (!$readonly) echo '[<a href="../../'.$file_post.'?newsgroups='.urlencode($group).'&type=new">'.$text_thread["button_write"]."</a>] "; echo '[<a href="../../'.$file_groups.'">'.$text_thread["button_grouplist"].'</a>]'; ?> </p> <? 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 '<p align="center">'; showPageSelectMenu(count($headers),$first); echo '</p>'; } else { $first=0; $last=$article_count; } showHeaders($headers,$group,$first,$last); closeNNTPconnection($ns); } ?> <p align="right"><a href="#top"><? echo $text_thread["button_top"];?></a></p> <? include "footer.inc"; ?>