rendered paste body<?php//Header include('./head.inc');//Importing gallery data and entries include('./news.inc');//First page if none givenif (!$_GET['page'] and !$_GET['id']) { $_GET['page']=1; }if ($_GET['page'] {echo '<div id="news">';$c=count($entry)-1;//Entries per page, 5 for now to test$M=5;$pages=ceil($c/$M);for ($i=1; $i<=$M; $i++) { $k=$_GET['page']; $subtitle[$i]=$title[$i + $M*($k-1)]; $subdate[$i]=$date[$i + $M*($k-1)]; $subentry[$i]=$entry[$i + $M*($k-1)]; //Print Entries echo '<h1>' . $subtitle[$i] . '</h1>'; echo '<h2> - ' . $subdate[$i] . '</h2><p>'; echo $subentry[$i]; echo '</p>'; if ($i != $M) { echo '<hr />'; }}echo '</div>';}//Footer include('./foot.inc');?>