$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 print print_pagination($pager['numPages'], $page, $id); ?> </td> </tr> </table> </div> <br /> <?php // se loggato visualizzo il pulsante per la creazione di un nuovo topic if (login($username, $password) == TRUE) {
if (level($username) != check_access_topic($id)) { _err('Non hai i permessi per visualizzare questo topic!'); } } } else { if (check_access_topic($id) != NULL && check_access_topic($id) != 'user') { header('Location: index.php'); } } } ?> <div class = 'path' id = 'path'> <ul> <li><b><a href = 'index.php'>Indice Forum</a></b></li> <li><?php patch_forum($id, 1); ?> </li> <li><?php patch_topic($id); ?> </li> </ul> </div> <br /> <div class="table_main"> <div id="container"> <?php // blocco topic if (@$_POST['block'] == 1) { manage_block_topic($username, $id);