query($q); echo $q; if (!empty($vector)) { $q="select node_id from nodes where node_vector like '$vector%'"; echo $q; $cset=$db->query($q); while ($cset->next()) { $chosen_child=$cset->getString('node_id'); $q="insert into tiamat (node_id,node_name,node_parent,node_vector, node_external_access,node_system_access,node_children_count,node_creator,node_created,lastchild_created,k, node_views,node_destructor,node_content,node_descendant_count,lastdescendant_created,template_id,external_link) select nodes.node_id,node_name,node_parent,node_vector,node_external_access,node_system_access, node_children_count,node_creator,node_created,lastchild_created,k,node_views,'$user_id',node_content, node_descendant_count,lastdescendant_created,template_id,external_link from nodes left join node_content on nodes.node_id=node_content.node_id where nodes.node_id='$chosen_child'"; echo $q; $db->query($q); } } log::log('delete',$chosen,'ok',$_SESSION['user_id']); } else { global $error_messages; $error=$error_messages['EVENT_PERMISSION_ERROR']; log::log('delete',$chosen,'EVENT_PERMISSION_ERROR',$_SESSION['user_id']); return false; } } } ?>