Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 57 lines (43 sloc) 1.551 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
0a6d57f @vboctor - Added some extra threshold configs to config_defaults_inc.php. The…
vboctor authored
4 # Copyright (C) 2002 - 2003 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
1231818 * constant_inc.php
Julian Fitzell authored
7
8 # --------------------------------------------------------
9 # $Id: manage_proj_ver_update.php,v 1.24 2003-02-09 00:50:59 jfitzell Exp $
10 # --------------------------------------------------------
bd552ac Renamed files to .php
Kenzaburo Ito authored
11 ?>
1ac5f0b More require_once statements added. Note that these new statements en…
Jeroen Latour authored
12 <?php
13 require_once( 'core.php' );
14
f7289f1 I took my initial approach of using $g_core_path to find core files f…
Jeroen Latour authored
15 $t_core_path = config_get( 'core_path' );
16
e9ec842 Modified require_once statements to adhere to code formatting policy
Jeroen Latour authored
17 require_once( $t_core_path.'version_api.php' );
1ac5f0b More require_once statements added. Note that these new statements en…
Jeroen Latour authored
18 ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
19 <?php login_cookie_check() ?>
20 <?php
0a6d57f @vboctor - Added some extra threshold configs to config_defaults_inc.php. The…
vboctor authored
21 check_access( config_get( 'manage_project_threshold' ) );
77a0927 @vboctor 1. Fixed 0002085: PHP errors in case of updating a bug with no category
vboctor authored
22
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
23 $f_project_id = gpc_get_int( 'project_id' );
24 $f_version = gpc_get_string( 'version' );
25 $f_date_order = gpc_get_string( 'date_order' );
1231818 * constant_inc.php
Julian Fitzell authored
26 $f_new_version = gpc_get_string( 'new_version' );
77a0927 @vboctor 1. Fixed 0002085: PHP errors in case of updating a bug with no category
vboctor authored
27
1231818 * constant_inc.php
Julian Fitzell authored
28 if ( is_blank( $f_new_version ) ) {
29 trigger_error( ERROR_EMPTY_FIELD, ERROR );
30 }
ac937c0 Modified to use core_version_API.php.
Kenzaburo Ito authored
31
1231818 * constant_inc.php
Julian Fitzell authored
32 $f_version = trim( $f_version );
33 $f_new_version = trim( $f_new_version );
f98bca9 Prefixed all variables containing validated input with $c_.
Jeroen Latour authored
34
1231818 * constant_inc.php
Julian Fitzell authored
35 version_update( $f_project_id, $f_version, $f_new_version, $f_date_order );
bd552ac Renamed files to .php
Kenzaburo Ito authored
36
1231818 * constant_inc.php
Julian Fitzell authored
37 $t_redirect_url = 'manage_proj_edit_page.php?project_id=' . $f_project_id;
bd552ac Renamed files to .php
Kenzaburo Ito authored
38 ?>
39 <?php
1231818 * constant_inc.php
Julian Fitzell authored
40 print_page_top1();
41
42 print_meta_redirect( $t_redirect_url );
43
44 print_page_top2();
bd552ac Renamed files to .php
Kenzaburo Ito authored
45 ?>
46
9655dec changed P tags to BR. This will format better across more browsers. …
Kenzaburo Ito authored
47 <br />
bd552ac Renamed files to .php
Kenzaburo Ito authored
48 <div align="center">
49 <?php
1231818 * constant_inc.php
Julian Fitzell authored
50 echo lang_get( 'operation_successful' ) . '<br />';
bd552ac Renamed files to .php
Kenzaburo Ito authored
51
54ce1a0 more lang_get() conversions
Julian Fitzell authored
52 print_bracket_link( $t_redirect_url, lang_get( 'proceed' ) );
bd552ac Renamed files to .php
Kenzaburo Ito authored
53 ?>
54 </div>
55
3113add @vboctor Now db_connect is called once in core_database_API.php rather than at…
vboctor authored
56 <?php print_page_bot1( __FILE__ ) ?>
Something went wrong with that request. Please try again.