Added rudimentary transport support to get_threaded_children
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / configure_external_access.inc
CommitLineData
51ff3226 1<?php
46c0767c 2function configure_external_access() {
3 global $db,$error,$node;
4 $node_id=$node['node_id'];
5 $user_id=$_SESSION['user_id'];
51ff3226 6
46c0767c 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'; }
51ff3226 13
46c0767c 14 if ($_POST['apply_on_vector']) {
15 $vector=$node['node_vector'];
16 if (empty($vector)) {
17 $error=$error_messages['INCORRECT_VECTOR'];
18 return false;
51ff3226 19 }
46c0767c 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);
51ff3226 27 }
46c0767c 28 }else{
29 $error=$error_messages['EVENT_PERMISSION_ERROR'];
30 return false;
51ff3226 31 }
46c0767c 32}
33?>
This page took 0.339043 seconds and 4 git commands to generate.