Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 71 lines (57 sloc) 2.788 kb
bee502de » Julian Fitzell
2002-12-04 Fix line endings in all files
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/>.
c3055788 » Julian Fitzell
2003-01-18 Just adding $Id$ CVS headers to all the files up to the point I've cl…
16
526bbaac » grangeway
2008-09-25 Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
17 /**
18 * @package MantisBT
19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
c757c81e » dregad
2012-01-01 Update copyright year to 2012
20 * @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/ )…
21 * @link http://www.mantisbt.org
22 */
23 /**
4d63b482 » siebrand
2009-02-14 Mantis -> MantisBT in file headers, comments, and elsewhere.
24 * MantisBT Core API's
526bbaac » grangeway
2008-09-25 Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
25 */
1ac5f0b2 » Jeroen Latour
2003-01-24 More require_once statements added. Note that these new statements en…
26 require_once( 'core.php' );
d5d7959c » grangeway
2004-06-26 Enchance custom fields support:
27
c36df5bb » grangeway
2009-05-26 following giallu's change to use set_include_path to set first requir…
28 require_once( 'custom_field_api.php' );
bb4f40f3 » jreese
2007-09-25 Fix #8336: Require re-login for high impact tasks.
29
0dc40271 » giallu
2008-06-07 Add form security tokens to prevent CSRF issues
30 form_security_validate('manage_custom_field_update');
31
b69fe757 » jreese
2008-10-03 Move all form_security_validate() calls before any processing happens.
32 auth_reauthenticate();
11a27c96 » Jeroen Latour
2003-02-16 Renamed config option manage_custom_fields to manage_custom_fieds_thr…
33 access_ensure_global_level( config_get( 'manage_custom_fields_threshold' ) );
bee502de » Julian Fitzell
2002-12-04 Fix line endings in all files
34
81ad05d4 » Julian Fitzell
2003-01-16 Cleanup of manage_custom_field_*.php
35 $f_field_id = gpc_get_int( 'field_id' );
8b7fcd3a » int2str
2004-07-10 * Fix #4044: Cross Site Scripting Vulnerability
36 $f_return = strip_tags( gpc_get_string( 'return', 'manage_custom_field_page.php' ) );
81ad05d4 » Julian Fitzell
2003-01-16 Cleanup of manage_custom_field_*.php
37 $t_values['name'] = gpc_get_string( 'name' );
38 $t_values['type'] = gpc_get_int( 'type' );
39 $t_values['possible_values'] = gpc_get_string( 'possible_values' );
40 $t_values['default_value'] = gpc_get_string( 'default_value' );
41 $t_values['valid_regexp'] = gpc_get_string( 'valid_regexp' );
42 $t_values['access_level_r'] = gpc_get_int( 'access_level_r' );
43 $t_values['access_level_rw'] = gpc_get_int( 'access_level_rw' );
44 $t_values['length_min'] = gpc_get_int( 'length_min' );
45 $t_values['length_max'] = gpc_get_int( 'length_max' );
d19f94fb » Daryn Warriner
2008-04-28 bug #7508 - Those with access to manage custom fields can choose
46 $t_values['display_report'] = gpc_get_bool( 'display_report' );
47 $t_values['display_update'] = gpc_get_bool( 'display_update' );
8565b168 » grangeway
2004-08-03 rename resolve->resolved, close->closed
48 $t_values['display_resolved'] = gpc_get_bool( 'display_resolved' );
49 $t_values['display_closed'] = gpc_get_bool( 'display_closed' );
d5d7959c » grangeway
2004-06-26 Enchance custom fields support:
50 $t_values['require_report'] = gpc_get_bool( 'require_report' );
51 $t_values['require_update'] = gpc_get_bool( 'require_update' );
8565b168 » grangeway
2004-08-03 rename resolve->resolved, close->closed
52 $t_values['require_resolved'] = gpc_get_bool( 'require_resolved' );
53 $t_values['require_closed'] = gpc_get_bool( 'require_closed' );
d19f94fb » Daryn Warriner
2008-04-28 bug #7508 - Those with access to manage custom fields can choose
54 $t_values['filter_by'] = gpc_get_bool( 'filter_by' );
bee502de » Julian Fitzell
2002-12-04 Fix line endings in all files
55
ff5b7fab » Julian Fitzell
2002-12-05 I started playing with the custom field stuff tonight and these are t…
56 custom_field_update( $f_field_id, $t_values );
bee502de » Julian Fitzell
2002-12-04 Fix line endings in all files
57
8c537f83 » jreese
2008-10-03 First step to implementing new form security purge().
58 form_security_purge('manage_custom_field_update');
59
230e3f46 » grangeway
2009-04-05 HTML api documentation + tidy up of api names
60 html_page_top( null, $f_return );
bee502de » Julian Fitzell
2002-12-04 Fix line endings in all files
61
18b13dc8 » vboctor
2007-09-30 Moved some custom field validation from action scripts to API. Also p…
62 echo '<br />';
63 echo '<div align="center">';
81ad05d4 » Julian Fitzell
2003-01-16 Cleanup of manage_custom_field_*.php
64
65 echo lang_get( 'operation_successful' ) . '<br />';
bee502de » Julian Fitzell
2002-12-04 Fix line endings in all files
66
81ad05d4 » Julian Fitzell
2003-01-16 Cleanup of manage_custom_field_*.php
67 print_bracket_link( $f_return, lang_get( 'proceed' ) );
bee502de » Julian Fitzell
2002-12-04 Fix line endings in all files
68
18b13dc8 » vboctor
2007-09-30 Moved some custom field validation from action scripts to API. Also p…
69 echo '</div>';
70
624fafd6 » grangeway
2009-07-18 We dont use __FILE__ param of html_page_bottom. Note: someone who wer…
71 html_page_bottom();
Something went wrong with that request. Please try again.