2 function configure_external_access() {
3 global $db,$error,$node;
4 $node_id=$node['node_id'];
5 $user_id=$_SESSION['user_id'];
7 if (($node['node_permission']=='owner') || ($node['node_permission']=='master')) {
9 if ($_POST['node_external_access'] =='yes'))
10 { $node_external_access = 'yes'; }
12 { $node_external_access = 'no'; }
14 if ($_POST['apply_on_vector']) {
15 $vector=$node['node_vector'];
17 $error=$error_messages['INCORRECT_VECTOR'];
20 $q="update nodes set node_external_access='$node_external_access' where node_vector like '$vector%' and node_creator='$user_id'";
25 $q="update nodes set node_external_access='$node_external_access' where node_id='$node_id'";
29 $error=$error_messages['EVENT_PERMISSION_ERROR'];