Added rudimentary transport support to get_threaded_children
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / unfriend.inc
CommitLineData
51ff3226 1<?php
2function 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 0.580915 seconds and 4 git commands to generate.