2 function configure_system_access() {
3 global $db,$error,$node;
4 $node_id=$node['node_id'];
5 $user_id=$_SESSION['user_id'];
6 $node_system_access=mysql_real_escape_string($_POST['node_system_access']);
8 if (($node['node_permission']=='owner') || ($node['node_permission']=='master')) {
10 if ($_POST['apply_on_vector']) {
11 $vector=$node['node_vector'];
13 $error=$error_messages['INCORRECT_VECTOR'];
16 $q="update nodes set node_system_access='$node_system_access' where node_vector like '$vector%' and node_creator='$user_id'";
21 $q="update nodes set node_system_access='$node_system_access' where node_id='$node_id'";