get_image_link fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / unfriend.inc
1 <?php
2 function unfriend() {
3 global $db,$error,$node;
4 $node_id = $node['node_id'];
5 $user_id = $_SESSION['user_id'];
6 $friend = $node['node_parent'];
7
8 if ($user_id != $node['node_creator']) {
9 $error = "nejsi vlastnik tohto priatela";
10 return false;
11 }
12
13 $q = "update nodes set external_link='', node_parent=123456, node_vector='001234560$node_id' where node_id='$node_id' and external_link='session://friend'";
14 $db->query($q);
15
16 $_SESSION['friends']['$friend']=false;
17 }
18 ?>
This page took 1.020388 seconds and 4 git commands to generate.