<?php /* * @author mides <Mike Osendowski> * @link http://midwm.org * @copyright 2011-2014 */ $pages = ceil($total / $config['ipp']); if ($page > $pages or $page == 0) { $page = 1; } $start = ($page - 1) * $config['ipp'];