| |
|
|
| |
для: Dizels
(06.11.2006 в 13:44)
|
| |
<?
if(isset($_GET['start']) && is_numeric($_GET['start'])){
$start = $_GET['start'];?}
$file = file("wenman.dat");
$count = count($file);
$file = array_reverse($file);
if (empty($start) || $start < 0)
$start = 0;
for ($i=0; $i<ceil($count/3);$i++){?$num = $i*3;
if($num != $start){
echo "<a href='".$_SERVER['PHP_SELF']."?start=".$num."'>[".($i+1)."]</a>";
} else {?echo "[".($i+1)."]";} }
if($count>$start+3){
$count = $start + 3;?}
echo '<br/>====<br/>';
for ($i=$start; $i < $count;$i ++){
echo "<br/>$file[$i].<br/>";
}
?>
| :) | |
| |
|