'; include "head.inc"; $ns=@fsockopen($server,$port); $weg=str_replace("\n","",str_replace("\r","",fgets($ns,1200))); fputs($ns,"XGTITLE $group\r\n"); $response=str_replace("\n","",str_replace("\r","",fgets($ns,1200))); if (strcmp(substr($response,0,3),"282") == 0) { $neu=str_replace("\n","",str_replace("\r","",fgets($ns,1200))); do { $response=$neu; if ($neu != ".") $neu=str_replace("\n","",str_replace("\r","",fgets($ns,1200))); } while ($neu != "."); $desc=strrchr($response,"\t"); if (strcmp($response,".") == 0) { $desc="-"; } } else { $desc=$response; } if (strcmp(substr($response,0,3),"500") == 0) $desc="-"; fclose($ns); $ns=false; ?>

'.$text_thread["button_grouplist"].''; if (!$readonly) echo ''. $text_thread["button_write"].""; include("$file_newsportal"); // $ns=nntp_open($server,$port); flush(); $headers = thread_load($group); $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 ''; // 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; foreach($headers as $h) { if($h->isAnswer==false) $pagecount++; } } thread_pageselect($group,$pagecount,$first); echo ''; } else { $first=0; $last=$article_count; } echo '
'; thread_show($headers,$group,$first,$last); echo '

Subscribe to this forum via RSS ·'."\n"; echo 'Subscribe to'."\n"; echo "this forum via Usenet

"; ?>