| 1 |
wakaba |
1.1 |
<? $title = "Newsportal - NNTP<->HTTP Gateway"; |
| 2 |
|
|
|
| 3 |
|
|
include "body.inc"; |
| 4 |
|
|
include "config.inc"; ?> |
| 5 |
|
|
|
| 6 |
|
|
<? |
| 7 |
|
|
require("$file_newsportal"); |
| 8 |
|
|
flush(); |
| 9 |
|
|
$ns=OpenNNTPconnection($server,$port); |
| 10 |
|
|
|
| 11 |
|
|
if ($ns != false) { |
| 12 |
|
|
?><pre><? |
| 13 |
|
|
$head=readPlainHeader($ns,$group,$id); |
| 14 |
|
|
for ($i=0; $i<count($head); $i++) |
| 15 |
|
|
echo $head[$i]."\n"; |
| 16 |
|
|
$body=readBody($ns,$id,""); |
| 17 |
|
|
for ($i=0; $i<count($body); $i++) |
| 18 |
|
|
echo $body[$i]."\n"; |
| 19 |
|
|
?></pre><? |
| 20 |
|
|
} |
| 21 |
|
|
closeNNTPconnection($ns); |
| 22 |
|
|
?> |
| 23 |
|
|
|
| 24 |
|
|
<? include "footer.inc"; ?> |