connect()) { echo "".$messages_ini["error"]["nntp_fail"]."
"; echo $nntp->get_error_message()."
"; exit; } else { $group_info = $nntp->join_group($_SESSION["newsgroup"]); if ($group_info == NULL) { echo "".$messages_ini["error"]["group_fail"].$_SESSION["newsgroup"]."
"; echo $nntp->get_error_message()."
"; exit; } else { $rss_feed_count = (int)get_request("rss_feed"); if ($rss_feed_count <= 0) { $rss_feed_count = $message_per_page; } $article_list = $nntp->get_article_list($_SESSION["newsgroup"]); $end_id = sizeof($article_list) - 1; $start_id = $end_id - $rss_feed_count + 1; if ($start_id < 0) { $start_id = 0; } $message_summary = $nntp->get_summary($article_list[$start_id], $article_list[$end_id]); // Sort message by date uasort($message_summary, 'cmp_by_date'); } } ob_clean(); header("Content-Type: application/xml"); echo ''."\n"; ?> <?php echo $_SESSION["newsgroup"]; ?> ".$messages_ini["text"]["newsgroup"]." ".$_SESSION["newsgroup"]; $desc = $nntp->get_groups_description($_SESSION["newsgroup"]); if (sizeof($desc) > 0) { echo " - ".htmlescape($desc[$_SESSION["newsgroup"]]); } echo ""; // Quit sooner to release resources $nntp->quit(); ?> ".date("D, d M Y H:i:s O", time()).""; ?> Catwalker 0126 (NNTP to RSS Engine) https://news.corradoroberto.it/images/logo2.png catwalker logo https://news.corradoroberto.it/ 40 40 RSS feed provided by Catwalker 0126 (NNTP to RSS Engine) $message) { echo "\n"; echo ""; if (!mb_check_encoding($message["subject"], 'UTF-8')) { $message["subject"] = iconv('Windows-1252', 'UTF-8//IGNORE', $message["subject"]); echo $message["subject"]; }else{ echo htmlescape($message["subject"]); } echo "\n"; $link = htmlescape(construct_url("newsgroups.php?art_group=".urlencode($_SESSION["newsgroup"])."&article_id=$mid")); echo ""; echo $link; echo "\n"; echo ""; echo $messages_ini["text"]["read_article"]."<br><br><a href=\""; echo $link; echo "\">".$link."</a>"; echo "\n"; if ($_SESSION["auth"]) { echo ""; echo htmlescape($message["from_email"])." (".htmlescape($message["from_name"]).")"; echo "\n"; } echo ""; echo date("D, d M Y H:i:s O", $message["date"]); echo "\n"; echo "\n"; } ?>