First draft of set_synapse_weight
[mirrors/Kyberia-bloodline.git] / wwwroot / backend / mysql / backend.inc
index d65fc9435974553856715eb24066eee25536d861..bea0e50cba6eaa46afeb9aaea646b4fcd21c6915 100644 (file)
@@ -341,4 +341,22 @@ function getKNeurons($user_id,$interval) {
        return $k_array;
 }
 
+// Set synapse weight,
+
+// XXX TODO
+
+function setSynapseWeight($synapse_weightl) {
+       global $db,$node,$error,$error_messages;
+
+       // XXX security fix
+//     $q="update neurons set synapse_weight='$synapse_weight' where dst = '$dst' and src = '$src'";
+//     $q="insert into neurons values('$synapse_weight','$dst','$src',NULL,'synapse',XXX,now(),XXX,$src)";
+
+//     $set=$db->query($q);
+
+       return true;
+}
+
+
+
 }
This page took 0.106611 seconds and 4 git commands to generate.