Blame Identity/Webenv/Mantis/1.1.2-1.fc9/print_bug_page.php

ef5584
ef5584
# Mantis - a php based bugtracking system
ef5584
ef5584
# Copyright (C) 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
ef5584
# Copyright (C) 2002 - 2007  Mantis Team   - mantisbt-dev@lists.sourceforge.net
ef5584
ef5584
# Mantis is free software: you can redistribute it and/or modify
ef5584
# it under the terms of the GNU General Public License as published by
ef5584
# the Free Software Foundation, either version 2 of the License, or
ef5584
# (at your option) any later version.
ef5584
#
ef5584
# Mantis is distributed in the hope that it will be useful,
ef5584
# but WITHOUT ANY WARRANTY; without even the implied warranty of
ef5584
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
ef5584
# GNU General Public License for more details.
ef5584
#
ef5584
# You should have received a copy of the GNU General Public License
ef5584
# along with Mantis.  If not, see <http://www.gnu.org/licenses/>.
ef5584
ef5584
	# --------------------------------------------------------
ef5584
	# $Id: print_bug_page.php,v 1.60.2.1 2007-10-13 22:34:18 giallu Exp $
ef5584
	# --------------------------------------------------------
ef5584
?>
ef5584
ef5584
	require_once( 'core.php' );
ef5584
ef5584
	$t_core_path = config_get( 'core_path' );
ef5584
ef5584
	require_once( $t_core_path.'bug_api.php' );
ef5584
	require_once( $t_core_path.'custom_field_api.php' );
ef5584
	require_once( $t_core_path.'date_api.php' );
ef5584
	require_once( $t_core_path.'string_api.php' );
ef5584
	require_once( $t_core_path.'last_visited_api.php' );
ef5584
?>
ef5584
ef5584
	$f_bug_id = gpc_get_int( 'bug_id' );
ef5584
ef5584
	if ( SIMPLE_ONLY == $g_show_view ) {
ef5584
		print_header_redirect ( 'bug_view_page.php?bug_id='.$f_bug_id );
ef5584
	}
ef5584
ef5584
	access_ensure_bug_level( VIEWER, $f_bug_id );
ef5584
ef5584
	$c_bug_id = (integer)$f_bug_id;
ef5584
ef5584
	$t_bug_table = config_get( 'mantis_bug_table' );
ef5584
	$query = "SELECT *
ef5584
			FROM $t_bug_table
ef5584
			WHERE id='$c_bug_id'";
ef5584
	$result = db_query( $query );
ef5584
	$row = db_fetch_array( $result );
ef5584
	extract( $row, EXTR_PREFIX_ALL, 'v' );
ef5584
ef5584
	$t_bug_text_table = config_get( 'mantis_bug_text_table' );
ef5584
	$query = "SELECT *
ef5584
			FROM $t_bug_text_table
ef5584
			WHERE id='$v_bug_text_id'";
ef5584
	$result = db_query( $query );
ef5584
	$row = db_fetch_array( $result );
ef5584
	extract( $row, EXTR_PREFIX_ALL, 'v2' );
ef5584
	
ef5584
	$t_history = history_get_events_array( $f_bug_id );
ef5584
ef5584
	$v_os 						= string_display( $v_os );
ef5584
	$v_os_build					= string_display( $v_os_build );
ef5584
	$v_platform					= string_display( $v_platform );
ef5584
	$v_version 					= string_display( $v_version );
ef5584
	$v_summary 					= string_display_links( $v_summary );
ef5584
	$v2_description 			= string_display_links( $v2_description );
ef5584
	$v2_steps_to_reproduce 		= string_display_links( $v2_steps_to_reproduce );
ef5584
	$v2_additional_information 	= string_display_links( $v2_additional_information );
ef5584
?>
ef5584
ef5584
ef5584
	html_head_end();
ef5584
	html_body_begin();
ef5584
?>
ef5584
ef5584

ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	 
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
			if ( access_has_bug_level( config_get( 'view_handler_threshold' ), $f_bug_id ) ) {
ef5584
				print_user_with_subject( $v_handler_id, $f_bug_id ); 
ef5584
			}
ef5584
		?>
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	 
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	 
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	 
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	 
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
			if ( !config_get( 'enable_relationship' ) ) {
ef5584
				echo lang_get( 'duplicate_id' );
ef5584
			} # MASC RELATIONSHIP
ef5584
		?> 
ef5584
	
ef5584
	
ef5584
		
ef5584
			if ( !config_get( 'enable_relationship' ) ) {
ef5584
				print_duplicate_id( $v_duplicate_id );
ef5584
			} # MASC RELATIONSHIP
ef5584
		?> 
ef5584
	
ef5584
	 
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	 
ef5584
ef5584
ef5584
ef5584
$t_related_custom_field_ids = custom_field_get_linked_ids( $v_project_id );
ef5584
foreach( $t_related_custom_field_ids as $t_id ) {
ef5584
	$t_def = custom_field_get_definition( $t_id );
ef5584
?>
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
}       // foreach
ef5584
?>
ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	# account profile description
ef5584
	if ( $v_profile_id > 0 ) {
ef5584
	    $t_user_prof_table = config_get( 'mantis_user_profile_table' );
ef5584
		$query = "SELECT description
ef5584
				FROM $t_user_prof_table
ef5584
				WHERE id='$v_profile_id'";
ef5584
		$result = db_query( $query );
ef5584
		$t_profile_description = '';
ef5584
		if ( db_num_rows( $result ) > 0 ) {
ef5584
			$t_profile_description = db_result( $result, 0 );
ef5584
		}
ef5584
		$t_profile_description = string_display_links( $t_profile_description );
ef5584
ef5584
?>
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	}
ef5584
ef5584
	# MASC RELATIONSHIP
ef5584
	if ( ON == config_get( 'enable_relationship' ) ) {
ef5584
		echo "";
ef5584
		echo "" . lang_get( 'bug_relationships' ) . "";
ef5584
		echo "" . relationship_get_summary_html_preview( $c_bug_id ) . "";
ef5584
	}
ef5584
	# MASC RELATIONSHIP
ef5584
?>
ef5584
ef5584
	
ef5584
		:
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	# ISSUE HISTORY 
ef5584
?>
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	foreach ( $t_history as $t_item ) {
ef5584
?>
ef5584
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
	
ef5584
		
ef5584
	
ef5584
ef5584
ef5584
	} 
ef5584
?>
ef5584
ef5584
ef5584
ef5584
	include( dirname( __FILE__ ) . DIRECTORY_SEPARATOR . 'print_bugnote_inc.php' ) ;
ef5584
ef5584
	last_visited_issue( $f_bug_id );
ef5584
?>