if (check_access_forum($id) != NULL && check_access_forum($id) != 'user') { header('Location: index.php'); } } } if (isset($_GET['page']) && is_numeric($_GET['page']) && (int) $_GET['page'] > 0) { $page = (int) $_GET['page']; } else { $page = 1; } $query = "SELECT * \n\t\t\t FROM " . __PREFIX__ . "topic \n\t\t\t WHERE f_id = '" . $id . "' \n\t\t\t AND replyof < 0 \n\t\t\t ORDER by last DESC"; $res = mysql_query($query); $limit = 10; //quanti topic per pagina? $Pager = new Pagination(); $pager = $Pager->paginazione($res, $limit, $page); $offset = $pager['offset']; $limit = $pager['limit']; ?> <br /> <div class = 'path' id = 'path'> <table> <tr> <td><b><a href = 'index.php'>Indice Forum</a></b></td> <td><?php patch_forum($id, 2); ?> </td> </tr> <tr> <td>Pagine: <?php