. /** * @package MantisBT * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright (C) 2002 - 2009 Mantis Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ /** * Mantis Core API's */ require_once( 'core.php' ); $t_core_path = config_get( 'core_path' ); require_once( $t_core_path.'compress_api.php' ); require_once( $t_core_path.'filter_api.php' ); require_once( $t_core_path.'relationship_api.php' ); require_once( $t_core_path.'current_user_api.php' ); require_once( $t_core_path.'bug_api.php' ); require_once( $t_core_path.'string_api.php' ); require_once( $t_core_path.'date_api.php' ); require_once( $t_core_path.'tag_api.php' ); auth_ensure_user_authenticated(); compress_enable(); html_page_top1(); html_page_top2(); $t_filter = filter_get_default(); $t_target_field = gpc_get_string( 'target_field', '' ); if ( !isset( $t_filter[ rtrim( $t_target_field, '[]' ) ] ) ) { $t_target_field = ''; } if ( ON == config_get( 'use_javascript' ) ) { ?>
0 ) { $t_per_row = config_get( 'filter_custom_fields_per_row' ); $t_custom_rows = ceil( sizeof( $t_accessible_custom_fields_ids ) / $t_per_row ); } } if ( !in_array( $t_target_field, $t_fields ) ) { $t_target_field = ''; } $f_for_screen = gpc_get_bool( 'for_screen', true ); $t_action = "view_all_set.php?f=3"; if ( $f_for_screen == false ) { $t_action = "view_all_set.php"; } $f_default_view_type = 'simple'; if ( ADVANCED_DEFAULT == config_get( 'view_filters' ) ) { $f_default_view_type = 'advanced'; } $f_view_type = gpc_get_string( 'view_type', $f_default_view_type ); if ( ADVANCED_ONLY == config_get( 'view_filters' ) ) { $f_view_type = 'advanced'; } if ( SIMPLE_ONLY == config_get( 'view_filters' ) ) { $f_view_type = 'simple'; } if ( !in_array( $f_view_type, array( 'simple', 'advanced' ) ) ) { $f_view_type = $f_default_view_type; } $t_select_modifier = ''; if ( 'advanced' == $f_view_type ) { $t_select_modifier = 'multiple="multiple" size="10" '; } $t_show_version = ( ON == config_get( 'show_product_version' ) ) || ( ( AUTO == config_get( 'show_product_version' ) ) && ( count( version_get_all_rows_with_subs( $t_project_id ) ) > 0 ) ); $t_show_tags = access_has_global_level( config_get( 'tag_view_threshold' ) ); ?>