header("Expires: ".gmdate("D, d M Y H:i:s",time()+(3600*24))." GMT"); include "config.inc"; include "$file_newsportal"; $url=explode("/",trim($PATH_INFO)); $id = "<".urldecode($url[1]).">"; $message=read_message($id); if (!$message) { $group=$url[1]; $id=str_replace(".html","",$url[2]); $message=read_message($id,0,$group); if (!$message) { header ("HTTP/1.0 404 Not Found"); $subject=$title; $title.=' - Article not found'; } else { $subject=htmlspecialchars($message->header->subject); $title.= ' - '.$subject; } } else { $group=$message->header->newsgroups; $subject=htmlspecialchars($message->header->subject); $title.= ' - '.$subject; } include "body.inc"; ?>
if ((!$readonly) && ($message)) echo '['.$text_article["button_answer"].']'."\n"; echo '['.$group.']'; ?>
flush(); // Code for the next and previous button /* $spoolopenmodus=0; $ns=OpenNNTPconnection(); $headers = readOverview($ns,$group,1,$spoolopenmodus); $next = $headers[$message->header->id]; echo "-".$next->subject."-"; echo '[Next]'; */ ?>
if (!$message) echo $text_error["article_not_found"]; else show_article($group,$id,0,$message); ?> |