3 // Setting weight of the synapse.
4 // Synapse is connection between current node and logged user
6 function set_synapse_weight() {
8 global $db,$error,$node,$permissions,$types;
10 if (!empty($_POST['synapse_weight'])) {
11 $params['weight']=$_POST['synapse_weight'];
12 $params['src']=$_SESSION['user_id'];
13 $params['dst']=$node['node_id'];
15 nodes::setSynapse($params);