/
bug_reopen.php
36 lines (30 loc) · 1.11 KB
/
bug_reopen.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 - 2003 Mantis Team - mantisbt-dev@lists.sourceforge.net
# This program is distributed under the terms and conditions of the GPL
# See the README and LICENSE files for details
# --------------------------------------------------------
# $Id: bug_reopen.php,v 1.29 2003-02-11 09:08:34 jfitzell Exp $
# --------------------------------------------------------
?>
<?php
# This file reopens a bug
?>
<?php
require_once( 'core.php' );
$t_core_path = config_get( 'core_path' );
require_once( $t_core_path.'bug_api.php' );
?>
<?php auth_ensure_user_authenticated() ?>
<?php
$f_bug_id = gpc_get_int( 'bug_id' );
$f_bugnote_text = gpc_get_string( 'bugnote_text', '' );
project_access_check( $f_bug_id );
if ( OFF == config_get( 'allow_reporter_reopen' )
|| auth_get_current_user_id() != bug_get_field( $f_bug_id, 'reporter_id' ) ) {
check_access( config_get( 'reopen_bug_threshold' ) );
}
bug_reopen( $f_bug_id, $f_bugnote_text );
print_header_redirect_view( $f_bug_id );
?>