<!-- ################### BODYROX ####--> <div class="centerbox"> <?php include_once 'classes/Posts.class.php'; if (isset($_GET['page'])) { $page = $_GET['page']; } else { $page = 1; } $base = $cfg['pages_base']; $posty = new posts(); $result = $posty->get_imgs($base, $page); //pobranie postow z bazy danych $allposts = $posty->img_number(); $sum = $allposts[0]['COUNT(*)']; foreach ($result as $instance) { //generuje posty $link = $instance['link']; $id = $instance['id']; echo "<div class='box'><div class='movie'><BR /><center><a href='page.php?id=" . $id . "' ><img src='uploads/" . $link . "' /></a></center><BR />\r\n\t\t\t\t\t\r\n\t\t\t\t<div style='margin-left:auto;margin-right:auto;padding:5px 5px 5px 0;'><BR />\r\n\t\t\t\t<center>\r\n\t\t\t\t<a expr:share_url='href='' href='http://www.facebook.com/sharer.php' name='fb_share' share_url='" . $cfg['page_url'] . $id . "' href='http://www.facebook.com/sharer.php' type='button_count' align='center'>Share</a><script src='http://static.ak.fbcdn.net/connect.php/js/FB.Share' type='text/javascript'></script>\r\n\t\t\t\t</center>\r\n\t\t\t\t</div>\r\n\t\t\t\t\r\n\t\t\t\t<BR />\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t</div></div>"; } ?> </div> <!-- #################### FOOTER #####--> <div class="bot"> <div class="centerbox"><div class="box"><div class="paginacja"> <BR />