Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (31 sloc) 1.127 kb
bd552ac Renamed files to .php
Kenzaburo Ito authored
1 <?php
2 # Mantis - a php based bugtracking system
27492e8 Updated Copyright to 2002.
Kenzaburo Ito authored
3 # Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
c5a3a65 Early 2002, an extraordinary thing happened. While Kenzaburo Ito had …
Jeroen Latour authored
4 # Copyright (C) 2002 Mantis Team - mantisbt-dev@lists.sourceforge.net
bd552ac Renamed files to .php
Kenzaburo Ito authored
5 # This program is distributed under the terms and conditions of the GPL
6 # See the README and LICENSE files for details
7 ?>
8 <?php
9 # Remove the bugnote and bugnote text and redirect back to
10 # the viewing page
11 ?>
f0f1630 - cleanup usage of require and include
Julian Fitzell authored
12 <?php require_once( 'core.php' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
13 <?php login_cookie_check() ?>
14 <?php
5e6eb26 minor fixes I had to do while testing stuff... these files are by no …
Julian Fitzell authored
15 $f_bugnote_id = gpc_get_int( 'f_bugnote_id' );
16
37a8eff start cleaning up bugnote_api.php - trigerring errors, converting thi…
Julian Fitzell authored
17 bugnote_ensure_exists( $f_bugnote_id );
6fee1c7 - renames to coding standard
Julian Fitzell authored
18 $t_bug_id = bugnote_get_field( $f_bugnote_id, 'bug_id' );
4fa6754 -Pull SQL queries out of bugnote pages and put them as functions in c…
Julian Fitzell authored
19 project_access_check( $t_bug_id );
1b58079 @vboctor - Fixed security issues where the wrong access level was checked, or …
vboctor authored
20 check_access( $g_delete_bugnote_threshold );
ae403c7 move a few functions from helper_api to bug_api and file_api and rena…
Julian Fitzell authored
21 bug_ensure_exists( $t_bug_id );
1b58079 @vboctor - Fixed security issues where the wrong access level was checked, or …
vboctor authored
22
ca328e6 remove files that only perform a simple confirmation and use helper_e…
Julian Fitzell authored
23 helper_ensure_confirmed( lang_get( 'delete_bugnote_sure_msg' ),
24 lang_get( 'delete_bugnote_button' ) );
25
4fa6754 -Pull SQL queries out of bugnote pages and put them as functions in c…
Julian Fitzell authored
26 $result = bugnote_delete( $f_bugnote_id );
65b180e Added bug history functionality.
Kenzaburo Ito authored
27
bd552ac Renamed files to .php
Kenzaburo Ito authored
28 # Determine which view page to redirect back to.
28570b3 Sweeping changes to move view_bug_*.php => bug_view_*.php and bug_add…
Julian Fitzell authored
29 $t_redirect_url = string_get_bug_view_url( $t_bug_id );
bd552ac Renamed files to .php
Kenzaburo Ito authored
30 if ( $result ) {
35e3f9f Removed action confirmations in Bug/Bugnote pages.
Kenzaburo Ito authored
31 print_header_redirect( $t_redirect_url );
32 } else {
33 print_mantis_error( ERROR_GENERIC );
bd552ac Renamed files to .php
Kenzaburo Ito authored
34 }
3113add @vboctor Now db_connect is called once in core_database_API.php rather than at…
vboctor authored
35 ?>
Something went wrong with that request. Please try again.