|

$ident=explode(" ", microtime()); $rndnr=$ident[1]; ?>
// $page=3; // wird über den Query_String übergeben.
include("gbuch.inc");
$f=explode("|",implode("",file("gb_lastexportnr.txt"))); $lastexport=intval($f[1]);
$bps=3; // blöcke pro Seite (Achtung: beim Ändern echoGB-Teil anpassen!)
if ($lastexport==0) {$p_anz=0;} else {
$p_anz=((($lastexport-1)-(($lastexport-1) % $bps)) / $bps)+1;
}// if
if ($page="last") {$page=$p_anz;}
$page=intval($page);
if ($p_anz==0) {echo "Das Archiv ist leer";} else {
echo "Seite $page von $p_anz im Archiv ";
for ($x=$p_anz; $x>=1; $x--) {
echo "Seite $x ";
} //for
echo " ";
$c=(intval($page)-1)*$bps+1;
// echo $c;
echoGB("view","gb_old" . ($c+2) . ".txt");
echoGB("view","gb_old" . ($c+1) . ".txt");
echoGB("view","gb_old" . $c . ".txt");
} // if $p_anz==0
?>
|