Added rudimentary transport support to get_threaded_children
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / unbook.inc
1 <?php
2 function unbook() {
3
4 global $db,$error,$node;
5 $q="update neurons set link='soft' where synapse_creator='".$_SESSION['user_id']."' and src='".$node['node_id']."' and link='bookmark'";
6 $result=$db->update($q);
7
8 $q="update node_access set last_visit='',node_bookmark='no' where user_id='".$_SESSION['user_id']."' and node_id='".$node['node_id']."'";
9 $result=$db->query($q);
10 if ($result) {
11 logger::log('unbook','ok');
12 return true;
13 }
14 else {
15 logger::log('unbook','failed');
16 $error='unbook failed';
17 return false;
18 }
19 }
20 ?>
This page took 1.431984 seconds and 4 git commands to generate.