/
bug_assign.php
37 lines (32 loc) · 1.19 KB
/
bug_assign.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
37
<?php
# Mantis - a php based bugtracking system
# Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
# Copyright (C) 2002 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
# This module is based on bug_update.php and provides a quick method
# for assigning a call to the currently signed on user.
# Copyright (C) 2001 Steve Davies - steved@ihug.co.nz
# --------------------------------------------------------
# $Revision: 1.20 $
# $Author: jfitzell $
# $Date: 2002-08-25 21:04:56 $
#
# $Id: bug_assign.php,v 1.20 2002-08-25 21:04:56 jfitzell Exp $
# --------------------------------------------------------
# Assign bug to user then redirect to viewing page
?>
<?php require_once( 'core.php' ) ?>
<?php login_cookie_check() ?>
<?php
project_access_check( $f_id );
check_access( $g_handle_bug_threshold );
$result = bug_assign( $f_id );
# Determine which view page to redirect back to.
$t_redirect_url = get_view_redirect_url( $f_id, 1 );
if ( $result ) {
print_header_redirect( $t_redirect_url );
} else {
print_mantis_error( ERROR_GENERIC );
}
?>