Added rudimentary transport support to get_threaded_children
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / configure_external_access.inc
1 <?php
2 function configure_external_access() {
3 global $db,$error,$node;
4 $node_id=$node['node_id'];
5 $user_id=$_SESSION['user_id'];
6
7 if (($node['node_permission']=='owner') || ($node['node_permission']=='master')) {
8
9 if ($_POST['node_external_access'] =='yes'))
10 { $node_external_access = 'yes'; }
11 else
12 { $node_external_access = 'no'; }
13
14 if ($_POST['apply_on_vector']) {
15 $vector=$node['node_vector'];
16 if (empty($vector)) {
17 $error=$error_messages['INCORRECT_VECTOR'];
18 return false;
19 }
20 $q="update nodes set node_external_access='$node_external_access' where node_vector like '$vector%' and node_creator='$user_id'";
21 $db->query($q);
22 }
23
24 else {
25 $q="update nodes set node_external_access='$node_external_access' where node_id='$node_id'";
26 $db->query($q);
27 }
28 }else{
29 $error=$error_messages['EVENT_PERMISSION_ERROR'];
30 return false;
31 }
32 }
33 ?>
This page took 1.196966 seconds and 4 git commands to generate.