Ejemplo n.º 1
0
if (config_get('enable_project_documentation') == ON) {
    echo get_section_begin_apr(lang_get('project_documents'));
    echo get_capability_row(lang_get('view_project_documents'), config_get('view_proj_doc_threshold'));
    echo get_capability_row(lang_get('upload_project_documents'), config_get('upload_project_file_threshold'));
    echo get_section_end();
}
# Custom Fields
echo get_section_begin_apr(lang_get('custom_fields_setup'));
echo get_capability_row(lang_get('manage_custom_field_link'), config_get('manage_custom_fields_threshold'));
echo get_capability_row(lang_get('link_custom_fields_to_projects'), config_get('custom_field_link_threshold'));
echo get_section_end();
# Sponsorships
if (config_get('enable_sponsorship') == ON) {
    echo get_section_begin_apr(lang_get('sponsorships'));
    echo get_capability_row(lang_get('view_sponsorship_details'), config_get('view_sponsorship_details_threshold'));
    echo get_capability_row(lang_get('view_sponsorship_total'), config_get('view_sponsorship_total_threshold'));
    echo get_capability_row(lang_get('sponsor_issue'), config_get('sponsor_threshold'));
    echo get_capability_row(lang_get('assign_sponsored_issue'), config_get('assign_sponsored_bugs_threshold'));
    echo get_capability_row(lang_get('handle_sponsored_issue'), config_get('handle_sponsored_bugs_threshold'));
    echo get_section_end();
}
# Others
echo get_section_begin_apr(lang_get('others'));
echo get_capability_row(lang_get('view') . ' ' . lang_get('summary_link'), config_get('view_summary_threshold'));
echo get_capability_row(lang_get('see_email_addresses_of_other_users'), config_get('show_user_email_threshold'));
echo get_capability_row(lang_get('send_reminders'), config_get('bug_reminder_threshold'));
echo get_capability_row(lang_get('add_profiles'), config_get('add_profile_threshold'));
echo get_capability_row(lang_get('manage_users_link'), config_get('manage_user_threshold'));
echo get_capability_row(lang_get('notify_of_new_user_created'), config_get('notify_new_user_created_threshold_min'));
echo get_section_end();
html_page_bottom();
# Notes
get_section_begin_mcwt(lang_get('notes'));
get_capability_row(lang_get('add_notes'), 'add_bugnote_threshold');
get_capability_row(lang_get('edit_others_bugnotes'), 'update_bugnote_threshold');
get_capability_row(lang_get('edit_own_bugnotes'), 'bugnote_user_edit_threshold');
get_capability_row(lang_get('delete_others_bugnotes'), 'delete_bugnote_threshold');
get_capability_row(lang_get('delete_own_bugnotes'), 'bugnote_user_delete_threshold');
get_capability_row(lang_get('view_private_notes'), 'private_bugnote_threshold');
get_capability_row(lang_get('change_view_state_own_bugnotes'), 'bugnote_user_change_view_state_threshold');
get_section_end();
# Others
get_section_begin_mcwt(lang_get('others'));
get_capability_row(lang_get('view') . ' ' . lang_get('changelog_link'), 'view_changelog_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('assigned_to'), 'view_handler_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('bug_history'), 'view_history_threshold');
get_capability_row(lang_get('send_reminders'), 'bug_reminder_threshold');
get_section_end();
if ($t_show_submit) {
    echo "<input type=\"submit\" class=\"button\" value=\"" . lang_get('change_configuration') . "\" />\n";
}
echo "</form>\n";
if ($t_show_submit && 0 < count($t_overrides)) {
    echo "<div class=\"right\"><form name=\"threshold_config_action\" method=\"post\" action=\"manage_config_revert.php\">\n";
    echo form_security_field('manage_config_revert');
    echo "<input name=\"revert\" type=\"hidden\" value=\"" . implode(',', $t_overrides) . "\"></input>";
    echo "<input name=\"project\" type=\"hidden\" value=\"{$t_project_id}\"></input>";
    echo "<input name=\"return\" type=\"hidden\" value=\"" . form_action_self() . "\"></input>";
    echo "<input type=\"submit\" class=\"button\" value=\"";
    if (ALL_PROJECTS == $t_project_id) {
        echo lang_get('revert_to_system');
    } else {
get_section_begin_mcwt(lang_get('notes'));
get_capability_row(lang_get('add_notes'), 'add_bugnote_threshold');
get_capability_row(lang_get('edit_others_bugnotes'), 'update_bugnote_threshold');
get_capability_row(lang_get('edit_own_bugnotes'), 'bugnote_user_edit_threshold');
get_capability_row(lang_get('delete_others_bugnotes'), 'delete_bugnote_threshold');
get_capability_row(lang_get('delete_own_bugnotes'), 'bugnote_user_delete_threshold');
get_capability_row(lang_get('view_private_notes'), 'private_bugnote_threshold');
get_capability_row(lang_get('change_view_state_own_bugnotes'), 'bugnote_user_change_view_state_threshold');
get_section_end();
# Others
get_section_begin_mcwt(lang_get('others'));
get_capability_row(lang_get('view') . ' ' . lang_get('changelog_link'), 'view_changelog_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('assigned_to'), 'view_handler_threshold');
get_capability_row(lang_get('view') . ' ' . lang_get('bug_history'), 'view_history_threshold');
get_capability_row(lang_get('send_reminders'), 'bug_reminder_threshold');
get_capability_row(lang_get('receive_reminders'), 'reminder_receive_threshold');
get_section_end();
if ($t_show_submit) {
    echo '<input type="submit" class="button" value="' . lang_get('change_configuration') . '" />' . "\n";
}
echo '</form>' . "\n";
if ($t_show_submit && 0 < count($g_overrides)) {
    echo '<div class="right"><form name="threshold_config_action" method="post" action="manage_config_revert.php">' . "\n";
    echo form_security_field('manage_config_revert');
    echo '<input name="revert" type="hidden" value="' . implode(',', $g_overrides) . '"></input>';
    echo '<input name="project" type="hidden" value="' . $g_project_id . '"></input>';
    echo '<input name="return" type="hidden" value="' . string_attribute(form_action_self()) . '"></input>';
    echo '<input type="submit" class="button" value="';
    if (ALL_PROJECTS == $g_project_id) {
        echo lang_get('revert_to_system');
    } else {