Kyberia v2.0
[mirrors/Kyberia-bloodline.git] / inc / eventz / configure_bookmarks.inc
1 <?php
2 /* This program is free software. It comes without any warranty, to
3 * the extent permitted by applicable law. You can redistribute it
4 * and/or modify it under the terms of the Do What The Fuck You Want
5 * To Public License, Version 2, as published by Sam Hocevar. See
6 * http://sam.zoy.org/wtfpl/COPYING for more details. */
7
8 function configure_bookmarks() {
9 global $db,$error,$node;
10 $node_id=$node['node_id'];
11 $db->query("update node_access set bookmark_category=0 where user_id='".$_SESSION['user_id']."' and bookmark_category='$node_id'");
12 foreach($_POST['bookmark'] as $key =>$value) {
13 $db->query("update node_access set bookmark_category='$node_id' where user_id='".$_SESSION['user_id']."' and node_id='$key'");
14 }
15
16 }
17 ?>
This page took 0.262469 seconds and 4 git commands to generate.