Pages:Privs 0:0 c GetNeonLink('Pages', 'type=' . $_POST['type'], false)); exit(); } if(!$_POST['name']) exit(); $groups = $GLOBALS['user']->ListGroups(); array_unshift($groups, array(0)); $group_max = $groups[count($groups)-1][0]; $readaccess = implode('', array_fill(0, $group_max/4 + 1, '0')); $writeaccess = $readaccess; foreach($groups as $group) { if(!isset($_POST['group_' . $group[0]])) exit(); switch($_POST['group_' . $group[0]]) { case 0: break; case 1: $readaccess[$group[0]/4] = dechex(hexdec($readaccess[$group[0]/4]) | (1 << ($group[0]%4))); break; case 2: $readaccess[$group[0]/4] = dechex(hexdec($readaccess[$group[0]/4]) | (1 << ($group[0]%4))); $writeaccess[$group[0]/4] = dechex(hexdec($writeaccess[$group[0]/4]) | (1 << ($group[0]%4))); break; default: exit(); } } $GLOBALS['pages']->SetAccess(Unquote($_POST['name']), $_POST['type'], array($readaccess, $writeaccess)); header('Location: ' . $GLOBALS['links']->GetNeonLink('Pages', 'type=' . $_POST['type'], false)); exit(); ?> ]]>