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

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

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