if (!$f_report_stay) { html_meta_redirect('view_all_bug_page.php'); } html_page_top2(); ?> <br /> <div align="center"> <?php echo lang_get('operation_successful') . '<br />'; print_bracket_link(string_get_bug_view_url($t_bug_id), sprintf(lang_get('view_submitted_bug_link'), $t_bug_id)); print_bracket_link('view_all_bug_page.php', lang_get('view_bugs_link')); if ($f_report_stay) { ?> <p> <form method="post" action="<?php echo string_get_bug_report_url(); ?> "> <?php # CSRF protection not required here - form does not result in modifications ?> <input type="hidden" name="category_id" value="<?php echo string_attribute($t_bug_data->category_id); ?> " /> <input type="hidden" name="severity" value="<?php echo string_attribute($t_bug_data->severity); ?> " /> <input type="hidden" name="reproducibility" value="<?php echo string_attribute($t_bug_data->reproducibility);
function html_button_bug_create_child($p_bug_id) { if (ON == config_get('enable_relationship')) { if (access_has_bug_level(config_get('update_bug_threshold'), $p_bug_id)) { html_button(string_get_bug_report_url(), lang_get('create_child_bug_button'), array('m_id' => $p_bug_id)); } } }
function print_header_redirect_report() { print_header_redirect(string_get_bug_report_url()); }
/** * return an href anchor that links to a bug REPORT page for the given bug * account for the user preference and site override * @param integer $p_user_id A valid user identifier. * @return string */ function string_get_bug_report_link($p_user_id = null) { return '<a href="' . helper_mantis_url(string_get_bug_report_url($p_user_id)) . '">' . lang_get('report_bug_link') . '</a>'; }
html_meta_redirect( 'view_all_bug_page.php' ); } html_page_top2(); ?> <br /> <div> <?php echo lang_get( 'operation_successful' ) . '<br />'; print_bracket_link( string_get_bug_view_url( $t_bug_id ), sprintf( lang_get( 'view_submitted_bug_link' ), $t_bug_id ) ); print_bracket_link( 'view_all_bug_page.php', lang_get( 'view_bugs_link' ) ); if ( $f_report_stay ) { ?> <p> <form method="post" action="<?php echo string_get_bug_report_url() ?>"> <?php # CSRF protection not required here - form does not result in modifications ?> <input type="hidden" name="category_id" value="<?php echo string_attribute( $t_bug_data->category_id ) ?>" /> <input type="hidden" name="severity" value="<?php echo string_attribute( $t_bug_data->severity ) ?>" /> <input type="hidden" name="reproducibility" value="<?php echo string_attribute( $t_bug_data->reproducibility ) ?>" /> <input type="hidden" name="profile_id" value="<?php echo string_attribute( $t_bug_data->profile_id ) ?>" /> <input type="hidden" name="platform" value="<?php echo string_attribute( $t_bug_data->platform ) ?>" /> <input type="hidden" name="os" value="<?php echo string_attribute( $t_bug_data->os ) ?>" /> <input type="hidden" name="os_build" value="<?php echo string_attribute( $t_bug_data->os_build ) ?>" /> <input type="hidden" name="product_version" value="<?php echo string_attribute( $t_bug_data->version ) ?>" /> <input type="hidden" name="target_version" value="<?php echo string_attribute( $t_bug_data->target_version ) ?>" /> <input type="hidden" name="build" value="<?php echo string_attribute( $t_bug_data->build ) ?>" /> <input type="hidden" name="report_stay" value="1" /> <input type="hidden" name="view_state" value="<?php echo string_attribute( $t_bug_data->view_state ) ?>" /> <input type="hidden" name="due_date" value="<?php echo string_attribute( $t_bug_data->due_date ) ?>" /> <input type="submit" class="button" value="<?php echo lang_get( 'report_more_bugs' ) ?>" />