From: Daniel Hromada Date: Sun, 30 Jan 2011 22:12:25 +0000 (+0100) Subject: huge part of PUT code was moved to backend/nodes.inc putNode function X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=5f4d5ff6751cd7e562a2dac6cbe32b691298e2ff;p=mirrors%2FKyberia-bloodline.git huge part of PUT code was moved to backend/nodes.inc putNode function --- diff --git a/wwwroot/inc/eventz/put.inc b/wwwroot/inc/eventz/put.inc index c4105d4..06ec563 100644 --- a/wwwroot/inc/eventz/put.inc +++ b/wwwroot/inc/eventz/put.inc @@ -1,33 +1,18 @@ update($q); - - if (!$result) $db->query("insert into neurons set synapse_creator='$user_id',synapse_created=NOW(), -src='$chosen',dst='$nodeshell_id',dst_vector='$dst_vector',link='hard',synapse=1"); - - $db->query("update nodes set lastdescendant_created=NOW() where node_id='$nodeshell_id'"); + nodes::putNode($chosen,$nodeshell_id); } } ?>