3 // Setting weight of the synapse.
4 // Synapse is connection betwenn 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['synapse_weight']=$_POST['synapse_weight'];
12 $params['from']=$_SESSION['user_id'];
13 $params['to']=$node['node_id'];
15 nodes::setSynapse($params);