Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 53 lines (41 sloc) 1.851 kb
bd552ac1 » Kenzaburo Ito
2002-01-14 Renamed files to .php
1 <?php
4d63b482 » siebrand
2009-02-14 Mantis -> MantisBT in file headers, comments, and elsewhere.
2 # MantisBT - a php based bugtracking system
2669909b » giallu
2007-10-24 Merge back to HEAD the changes between tags:
3
4d63b482 » siebrand
2009-02-14 Mantis -> MantisBT in file headers, comments, and elsewhere.
4 # MantisBT is free software: you can redistribute it and/or modify
2669909b » giallu
2007-10-24 Merge back to HEAD the changes between tags:
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 2 of the License, or
7 # (at your option) any later version.
8 #
4d63b482 » siebrand
2009-02-14 Mantis -> MantisBT in file headers, comments, and elsewhere.
9 # MantisBT is distributed in the hope that it will be useful,
2669909b » giallu
2007-10-24 Merge back to HEAD the changes between tags:
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
4d63b482 » siebrand
2009-02-14 Mantis -> MantisBT in file headers, comments, and elsewhere.
15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
8bcf7961 » Julian Fitzell
2002-10-23 Cleanup of files
16
526bbaac » grangeway
2008-09-25 Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
17 /**
18 * Delete a file from a bug and then view the bug
19 *
20 * @package MantisBT
21 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
c757c81e » dregad
2012-01-01 Update copyright year to 2012
22 * @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge.net
526bbaac » grangeway
2008-09-25 Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
23 * @link http://www.mantisbt.org
24 */
25 /**
4d63b482 » siebrand
2009-02-14 Mantis -> MantisBT in file headers, comments, and elsewhere.
26 * MantisBT Core API's
526bbaac » grangeway
2008-09-25 Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
27 */
9eff4d36 » Jeroen Latour
2003-01-23 First commit in an effort to reduce the number of API files opened at…
28 require_once( 'core.php' );
3082bf89 » marcelloscata
2004-12-06 Added user confirmation when deleting an attachment (bug #4889)
29
c36df5bb » grangeway
2009-05-26 following giallu's change to use set_include_path to set first requir…
30 require_once( 'file_api.php' );
3082bf89 » marcelloscata
2004-12-06 Added user confirmation when deleting an attachment (bug #4889)
31
59498710 » davidhicks
2009-07-07 Add CSRF protection for bug_file_delete
32 form_security_validate( 'bug_file_delete' );
55d1b1ea » thraxisp
2008-03-23 fix for #8995: CSRF Vulnerabilities in user_create
33
d6843bba » Julian Fitzell
2002-12-29 Remove f_ prefix from POST and GET field names. The variables should …
34 $f_file_id = gpc_get_int( 'file_id' );
1930be4d » vboctor
2002-07-06 Added a new mode for uploading files, that is to upload files to an FTP
35
8bcf7961 » Julian Fitzell
2002-10-23 Cleanup of files
36 $t_bug_id = file_get_field( $f_file_id, 'bug_id' );
bd552ac1 » Kenzaburo Ito
2002-01-14 Renamed files to .php
37
41f37458 » thraxisp
2005-07-25 Additional fixes for 0005432: Viewing a bug should change the "curren…
38 $t_bug = bug_get( $t_bug_id, true );
39 if( $t_bug->project_id != helper_get_current_project() ) {
40 # in case the current project is not the same project of the bug we are viewing...
41 # ... override the current project. This to avoid problems with categories and handlers lists etc.
42 $g_project_override = $t_bug->project_id;
43 }
44
c15dc49d » jreese
2009-12-31 Fix #11293: Obey project overrides for configs
45 access_ensure_bug_level( config_get( 'update_bug_threshold' ), $t_bug_id );
46
3082bf89 » marcelloscata
2004-12-06 Added user confirmation when deleting an attachment (bug #4889)
47 helper_ensure_confirmed( lang_get( 'delete_attachment_sure_msg' ), lang_get( 'delete_attachment_button' ) );
48
eb657ca1 » thraxisp
2004-10-05 fix for 0004659: FTP unload don't work fine
49 file_delete( $f_file_id, 'bug' );
65b180e5 » Kenzaburo Ito
2002-06-02 Added bug history functionality.
50
59498710 » davidhicks
2009-07-07 Add CSRF protection for bug_file_delete
51 form_security_purge( 'bug_file_delete' );
52
8bcf7961 » Julian Fitzell
2002-10-23 Cleanup of files
53 print_header_redirect_view( $t_bug_id );
Something went wrong with that request. Please try again.