/
manage_proj_custom_field_update.php
45 lines (39 loc) · 1.6 KB
/
manage_proj_custom_field_update.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
38
39
40
41
42
43
44
45
<?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
?>
<?php require_once( 'core.php' ) ?>
<?php login_cookie_check() ?>
<?php
check_access( MANAGER );
$f_project_id = gpc_get_int( 'f_project_id' );
$f_field_id = gpc_get_int( 'f_field_id' );
$t_values['name'] = gpc_get_string( 'f_name' );
$t_values['type'] = gpc_get_int( 'f_type' );
$t_values['possible_values'] = gpc_get_string( 'f_possible_values' );
$t_values['default_value'] = gpc_get_string( 'f_default_value' );
$t_values['valid_regexp'] = gpc_get_string( 'f_valid_regexp' );
$t_values['access_level_r'] = gpc_get_int( 'f_access_level_r' );
$t_values['access_level_rw'] = gpc_get_int( 'f_access_level_rw' );
$t_values['length_min'] = gpc_get_int( 'f_length_min' );
$t_values['length_max'] = gpc_get_int( 'f_length_max' );
$t_values['advanced'] = gpc_get_bool( 'f_advanced' );
custom_field_update( $f_field_id, $t_values );
$t_redirect_url = 'manage_proj_edit_page.php?f_project_id=' . $f_project_id;
?>
<?php print_page_top1() ?>
<?php
print_meta_redirect( $t_redirect_url );
?>
<?php print_page_top2() ?>
<br />
<div align="center">
<?php
echo lang_get( 'operation_successful' ).'<br />';
print_bracket_link( $t_redirect_url, lang_get( 'proceed' ) );
?>
</div>
<?php print_page_bot1( __FILE__ ) ?>