set_synapse update
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / set_synapse_weight.inc
CommitLineData
12c388b0 1<?php
2
3// Setting weight of the synapse.
de9b5039 4// Synapse is connection between current node and logged user
12c388b0 5
6function set_synapse_weight() {
7
8 global $db,$error,$node,$permissions,$types;
9
10 if (!empty($_POST['synapse_weight'])) {
de9b5039 11 $params['weight']=$_POST['synapse_weight'];
12 $params['src']=$_SESSION['user_id'];
13 $params['dst']=$node['node_id'];
12c388b0 14
15 nodes::setSynapse($params);
16 return true;
17 }
18
19 return false;
20}
21
22?>
This page took 0.103789 seconds and 4 git commands to generate.