' . DELETED_GROUP . '', htmlspecialchars($serendipity['POST']['group']), htmlspecialchars($group['name'])); } /* Save new group */ if (isset($_POST['SAVE_NEW']) && serendipity_checkFormToken()) { $serendipity['POST']['group'] = serendipity_addGroup($serendipity['POST']['name']); $perms = serendipity_getAllPermissionNames(); serendipity_updateGroupConfig($serendipity['POST']['group'], $perms, $serendipity['POST'], false, $serendipity['POST']['forbidden_plugins'], $serendipity['POST']['forbidden_hooks']); printf('
' . CREATED_GROUP . '
', '#' . htmlspecialchars($serendipity['POST']['group']) . ', ' . htmlspecialchars($serendipity['POST']['name'])); } /* Edit a group */ if (isset($_POST['SAVE_EDIT']) && serendipity_checkFormToken()) { $perms = serendipity_getAllPermissionNames(); serendipity_updateGroupConfig($serendipity['POST']['group'], $perms, $serendipity['POST'], false, $serendipity['POST']['forbidden_plugins'], $serendipity['POST']['forbidden_hooks']); printf('
' . MODIFIED_GROUP . '
', htmlspecialchars($serendipity['POST']['name'])); } if ( $serendipity['GET']['adminAction'] != 'delete' ) { ?>
 



'; } else { echo CREATE; $from = array(); } ?>

$userlevels) { if (substr($perm, 0, 2) == 'f_') { continue; } if (isset($from[$perm]) && $from[$perm] === 'true') { $selected = 'checked="checked"'; } else { $selected = ''; } if (!isset($section)) { $section = $perm; } if ($section != $perm && substr($perm, 0, strlen($section)) == $section) { $indent = '  '; $indentB = ''; } elseif ($section != $perm) { $indent = '
'; $indentB = '
'; $section = $perm; } if (defined('PERMISSION_' . strtoupper($perm))) { $permname = constant('PERMISSION_' . strtoupper($perm)); } else { $permname = $perm; } if (!serendipity_checkPermission($perm)) { echo "\n"; echo "\n"; echo '' . "\n"; echo "\n"; } else { echo "\n"; echo "\n"; echo '' . "\n"; echo "\n"; } } if ($serendipity['enablePluginACL']) { $allplugins =& serendipity_plugin_api::get_event_plugins(); $allhooks = array(); ?>
 
$indent" . htmlspecialchars($permname) . "' . $indentB . ' ' . (!empty($selected) ? YES : NO) . '
$indent' . $indentB . '