Now create a file called online.php or whatever and add this.
PHP Code:
header("Content-Type: text/vnd.wap.wml");
echo '
' ;
print "
"; $xfile = @file("besucher.txt"); $xfile = array_reverse($xfile); $p = 150;
if ($npage == ""){$npage = "1";} $first = count($xfile) - ($p * ($npage - 1)); $second = count($xfile) - ($p * $npage) + 1;
if ($second < 1) {$second = 1;} $npages = (int)(count($xfile) / $p);
if ($news_limiter>((int) ($npages*$p))) $npages = $npages+1;
if ($npage <= $npages and $npage>1) $gline_rew = ".($npage-1)."\">Prev";
if ($npages > 1 and $npage<$npages) $gline_next = ".($npage+1)."\">Next"; $line = "";
for ($p = 1; $p <= $npages; $p++) {
if ($p != $npage) { $line .= " $p |";}
if ($p == $npage) { $line .= "| $p |
"; }
}
print $line;
for ($i = $first-1; $i >= $second-1; $i--) { $ii = $i;
$ii++;
$udata = explode("&&",$xfile[$i]);
print "$udata[1]
";
print "--------
";
}
print $gline_rew."".$gline_next."
LandOfwap.net
";
?>
No comments:
Post a Comment