Exemple #1
0
<?php

header("Expires: " . gmdate("D, d M Y H:i:s", time() + 7200) . " GMT");
include "config.inc";
include "head.inc";
?>

<a name="top">

<?php 
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($group, count($headers), $first);
        echo '</p>';
    } else {
        $first = 0;
Exemple #2
0
$group = $url[1];
include "config.inc";
$title .= ' - ' . $group;
include "head.inc";
?>

<a name="top"></a>
<h1 align="center"><?php 
echo $group;
?>
</h1>

<p>Lese Overview- und Artikeldaten ein...</p>

<?php 
include "{$file_newsportal}";
$ns = OpenNNTPconnection($server, $port);
flush();
if ($ns != false) {
    $headers = readOverview($ns, $group, 1, true);
    closeNNTPconnection($ns);
}
?>

<p align="right"><a href="#top"><?php 
echo $text_thread["button_top"];
?>
</a></p>

<?php 
include "tail.inc";