$ids=$_GET['ids']; if($ids==""){ $a = array_merge(explode("|", file_get_contents("content/anekdotai.txt")), explode("|", file_get_contents("content/youtube.txt")), explode("|", file_get_contents("content/prietarai.txt")), explode("|", file_get_contents("content/paveiksleliai.txt")), explode("|", file_get_contents("content/patarles.txt")), explode("|", file_get_contents("content/muzika.txt")), explode("|", file_get_contents("content/meiles.txt")), explode("|", file_get_contents("content/juokingi_posakiai.txt")), explode("|", file_get_contents("content/demotivacijos.txt")), explode("|", file_get_contents("content/aforizmai.txt"))); $eil=count($a); $zin=50; $page=$_GET["page"]; if ($page == ""){ $page = 1; } if($page==1){$nuo=0; $iki=$zin;} else{$nuo=$page*$zin-$zin; $iki=$page*$zin;} if($eil<=$page*$zin){$iki=$eil;} { } $virsun = array_reverse($a); for($i=$nuo; $i<$iki; $i++){ echo"<div class=\"shiftcontainer\">"; echo"<div class=\"shadowcontainer\">"; echo"<div class=\"innerdiv\">"; echo"$virsun[$i]"; echo"</div>"; echo"</div>"; echo"</div>"; echo"<img src=\"images/horizontal_line.gif\" alt=\"horizontal_line\"/><br />"; } }