<? header("Content-Type: text/vnd.wap.wml"); header("Cache-control: no-cache, must-revalidate"); echo '<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card title="USERONLINE"> <do type="prev" label="Back"><prev/></do>'; print "<p><small><b>Users Online Now </b></small><br/><img src=\"divide2.gif\" alt=\"---\"/><br/><small>"; $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 = "<a href=\"guest.php?npage=".($npage-1)."\">prev</a>"; if ($npages > 1 and $npage<$npages) $gline_next = "<a href=\"guest.php?npage=".($npage+1)."\">next</a>"; $line = ""; for ($p = 1; $p <= $npages; $p++) { if ($p != $npage) { $line .= "<a href=\"guest.php?npage=$p\"> $p </a>|";} if ($p == $npage) { $line .= "| $p |<br/>"; } } print $line; for ($i = $first-1; $i >= $second-1; $i--) { $ii = $i; $ii++; $udata = explode("&&",$xfile[$i]); print "<b>$udata[1]</b><br/>"; } print $gline_rew."".$gline_next." </small><img src=\"divide2.gif\" alt=\"---\"/><br/><small> <a href=\" index.php\">BACK</a><br/><b> 2-WAP.NET</b><br/></small></p> </card> </wml>"; ?> 
