: | name)); ?> |
: | shortname); ?> |
: | description, FORMAT_HTML)); $usehtmleditor = false; ?> |
: | legacytype)) { print_string('none'); } else { print_string('legacy:'.$role->legacytype, 'role'); } ?> |
name).'" />'; if (isset($errors["name"])) formerr($errors["name"]); ?> | |
shortname).'" />'; if (isset($errors["shortname"])) formerr($errors["shortname"]); ?> | |
description); ?> | |
$lcap) { $options[$ltype] = get_string('legacy:'.$ltype, 'role'); } choose_from_menu($options, 'legacytype', $role->legacytype, ''); ?> |
'. get_component_string($capability->component, $capability->contextlevel).' | '; $rowclasses = ''; if (RISK_MANAGETRUST & (int)$capability->riskbitmask) { $riskinfo .= ''; $riskinfo .= ''; $rowclasses .= ' riskmanagetrust'; } $riskinfo .= ' | '; if (RISK_CONFIG & (int)$capability->riskbitmask) { $riskinfo .= ''; $riskinfo .= ''; $rowclasses .= ' riskconfig'; } $riskinfo .= ' | '; if (RISK_XSS & (int)$capability->riskbitmask) { $riskinfo .= ''; $riskinfo .= ''; $rowclasses .= ' riskxss'; } $riskinfo .= ' | '; if (RISK_PERSONAL & (int)$capability->riskbitmask) { $riskinfo .= ''; $riskinfo .= ''; $rowclasses .= ' riskpersonal'; } $riskinfo .= ' | '; if (RISK_SPAM & (int)$capability->riskbitmask) { $riskinfo .= ''; $riskinfo .= ''; $rowclasses .= ' riskspam'; } $riskinfo .= ' | '; $isinherit = (!isset($defaultcaps[$capability->name]) or $defaultcaps[$capability->name] == CAP_INHERIT) ? 'capdefault' : ''; $isallow = (isset($defaultcaps[$capability->name]) and $defaultcaps[$capability->name] == CAP_ALLOW) ? 'capdefault' : ''; $isprevent = (isset($defaultcaps[$capability->name]) and $defaultcaps[$capability->name] == CAP_PREVENT) ? 'capdefault' : ''; $isprohibit = (isset($defaultcaps[$capability->name]) and $defaultcaps[$capability->name] == CAP_PROHIBIT) ? 'capdefault' : ''; ?>||||
name); ?>name ?> | permission) || $localoverride->permission==CAP_INHERIT){ echo 'checked="checked"'; }?> /> | permission) && $localoverride->permission==CAP_ALLOW){ echo 'checked="checked"'; }?> /> | permission) && $localoverride->permission==CAP_PREVENT){ echo 'checked="checked"'; }?> /> | permission) && $localoverride->permission==CAP_PROHIBIT){ echo 'checked="checked"'; }?> /> |