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. */
10 global $db,$error,$node;
11 $q="update neurons set link='soft' where synapse_creator='".$_SESSION['user_id']."' and peripheral='".$node['node_id']."' and link='bookmark'";
12 $result=$db->update($q);
14 $q="update node_access set last_visit='',node_bookmark='no' where user_id='".$_SESSION['user_id']."' and node_id='".$node['node_id']."'";
15 $result=$db->query($q);
17 log::log('unbook','ok');
21 log::log('unbook','failed');
22 $error='unbook failed';