Commit | Line | Data |
---|---|---|
12c388b0 | 1 | <?php |
2 | ||
3 | // Setting weight of the synapse. | |
4 | // Synapse is connection betwenn 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['synapse_weight']=$_POST['synapse_weight']; | |
12 | $params['from']=$_SESSION['user_id']; | |
13 | $params['to']=$node['node_id']; | |
14 | ||
15 | nodes::setSynapse($params); | |
16 | return true; | |
17 | } | |
18 | ||
19 | return false; | |
20 | } | |
21 | ||
22 | ?> |