X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=inc%2Feventz%2Fset_bookmark_category.inc;h=26bb1ea9819615222696b54180a707abfe43aad2;hb=HEAD;hp=a1789146b5bcd3696bfdb9ce4d8b8e9060f05482;hpb=e586807dafc64c3fe152ab518599e6cf3f0f84e1;p=mirrors%2FKyberia-bloodline.git diff --git a/inc/eventz/set_bookmark_category.inc b/inc/eventz/set_bookmark_category.inc deleted file mode 100644 index a178914..0000000 --- a/inc/eventz/set_bookmark_category.inc +++ /dev/null @@ -1,46 +0,0 @@ -query("start transaction"); - $set=$db->query("select bookmark_category from node_access where node_id='$chosen_id' and user_id='".$_SESSION['user_id']."'"); - $set->next(); - $old_category=$set->getString('old_category'); - - $q="update node_access set bookmark_category='$category_id' where node_id='$chosen_id' and user_id='".$_SESSION['user_id']."'"; - $db->query($q); - - $q="update neurons set central='$category_id' where peripheral='$chosen_id' and central='$old_category'"; - $db->update($q); - $db->query("commit"); - } - - return true; -} -?> \ No newline at end of file