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