| <?php |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| require_once( 'core.php' ); |
| |
| access_ensure_project_level( config_get( 'view_configuration_threshold' ) ); |
| |
| $t_core_path = config_get( 'core_path' ); |
| |
| html_page_top1( lang_get( 'permissions_summary_report' ) ); |
| html_page_top2(); |
| |
| print_manage_menu( 'adm_permissions_report.php' ); |
| print_manage_config_menu( 'adm_permissions_report.php' ); |
| |
| function get_section_begin( $p_section_name ) { |
| $t_access_levels = explode_enum_string( config_get( 'access_levels_enum_string' ) ); |
| $t_output = '<table class="width100">'; |
| $t_output .= '<tr class="title"><td class="form-title" colspan="' . ( count( $t_access_levels ) + 1 ) . '">' . strtoupper( $p_section_name ) . '</td></tr>' . "\n"; |
| $t_output .= '<tr class="title"><td class="form-title" width="40%">' . lang_get( 'perm_rpt_capability' ) . '</td>'; |
| foreach( $t_access_levels as $t_access_level ) { |
| $t_entry_array = explode_enum_arr( $t_access_level ); |
| $t_output .= '<td class="form-title" style="text-align:center"> ' . get_enum_to_string( lang_get( 'access_levels_enum_string' ), $t_entry_array[0] ) . ' </td>'; |
| } |
| $t_output .= '</tr>' . "\n"; |
| |
| return $t_output; |
| } |
| |
| function get_capability_row( $p_caption, $p_access_level ) { |
| $t_access_levels = explode_enum_string( config_get( 'access_levels_enum_string' ) ); |
| |
| $t_output = '<tr ' . helper_alternate_class() . '><td>' . string_display( $p_caption ) . '</td>'; |
| foreach( $t_access_levels as $t_access_level ) { |
| $t_entry_array = explode_enum_arr( $t_access_level ); |
| |
| if ( (int)$t_entry_array[0] >= (int)$p_access_level ) { |
| $t_value = '<img src="images/ok.gif" width="20" height="15" alt="X" title="X" />'; |
| } else { |
| $t_value = ' '; |
| } |
| |
| $t_output .= '<td class="center">' . $t_value . '</td>'; |
| } |
| |
| $t_output .= '</tr>' . "\n"; |
| |
| return $t_output; |
| } |
| |
| function get_section_end() { |
| $t_output = '</table><br />' . "\n"; |
| return $t_output; |
| } |
| |
| echo '<br /><br />'; |
| |
| |
| echo get_section_begin( lang_get( 'news' ) ); |
| echo get_capability_row( lang_get( 'view_private_news' ), config_get( 'private_news_threshold' ) ); |
| echo get_capability_row( lang_get( 'manage_news' ), config_get( 'manage_news_threshold' ) ); |
| echo get_section_end(); |
| |
| |
| if( config_get( 'allow_file_upload' ) == ON ) { |
| echo get_section_begin( lang_get( 'attachments' ) ); |
| echo get_capability_row( lang_get( 'view_list_of_attachments' ), config_get( 'view_attachments_threshold' ) ); |
| echo get_capability_row( lang_get( 'download_attachments' ), config_get( 'download_attachments_threshold' ) ); |
| echo get_capability_row( lang_get( 'delete_attachments' ), config_get( 'delete_attachments_threshold' ) ); |
| echo get_capability_row( lang_get( 'upload_issue_attachments' ), config_get( 'upload_bug_file_threshold' ) ); |
| echo get_section_end(); |
| } |
| |
| |
| echo get_section_begin( lang_get( 'filters' ) ); |
| echo get_capability_row( lang_get( 'save_filters' ), config_get( 'stored_query_create_threshold' ) ); |
| echo get_capability_row( lang_get( 'save_filters_as_shared' ), config_get( 'stored_query_create_shared_threshold' ) ); |
| echo get_capability_row( lang_get( 'use_saved_filters' ), config_get( 'stored_query_use_threshold' ) ); |
| echo get_section_end(); |
| |
| |
| echo get_section_begin( lang_get( 'projects_link' ) ); |
| echo get_capability_row( lang_get( 'create_project' ), config_get( 'create_project_threshold' ) ); |
| echo get_capability_row( lang_get( 'delete_project' ), config_get( 'delete_project_threshold' ) ); |
| echo get_capability_row( lang_get( 'manage_projects_link' ), config_get( 'manage_project_threshold' ) ); |
| echo get_capability_row( lang_get( 'manage_user_access_to_project' ), config_get( 'project_user_threshold' ) ); |
| echo get_capability_row( lang_get( 'automatically_included_in_private_projects' ), config_get( 'private_project_threshold' ) ); |
| echo get_section_end(); |
| |
| |
| if( config_get( 'enable_project_documentation' ) == ON ) { |
| echo get_section_begin( 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(); |
| } |
| |
| |
| echo get_section_begin( 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(); |
| |
| |
| if( config_get( 'enable_sponsorship' ) == ON ) { |
| echo get_section_begin( 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(); |
| } |
| |
| |
| echo get_section_begin( 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_bottom1( __FILE__ ); |
| ?> |