| 1 | <?php |
| 2 | global $user_id; |
| 3 | include("book_func.inc"); |
| 4 | $openswich=$_GET['openswich']; |
| 5 | $swichto=$_GET['swichto']; |
| 6 | if ($openswich) { |
| 7 | $q="update user_bookcat set is_open='$swichto' where user_id='$user_id' and bookcat_id='$openswich'"; |
| 8 | // echo $q; |
| 9 | $kyberia->query($q); |
| 10 | } |
| 11 | |
| 12 | $book=$_GET['book']; |
| 13 | if ($book) { |
| 14 | $q="update user_forum set user_bookmark='no' where user_id='$user_id' and forum_id='$node_id'"; $kyberia->query($q); |
| 15 | } |
| 16 | |
| 17 | readbookdb(); |
| 18 | |
| 19 | listbookcat2('0'); |
| 20 | echo "<br>Nezaradene kluby:<br>"; |
| 21 | listbookforum2('0'); |
| 22 | |
| 23 | |
| 24 | ?> |