Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 97 lines (87 sloc) 2.91 kB
bd552ac Renamed files to .php
Kenzaburo Ito authored
1 <?php
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
2 # MantisBT - a php based bugtracking system
2669909 @giallu Merge back to HEAD the changes between tags:
giallu authored
3
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
4 # MantisBT is free software: you can redistribute it and/or modify
2669909 @giallu Merge back to HEAD the changes between tags:
giallu authored
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 #
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
9 # MantisBT is distributed in the hope that it will be useful,
2669909 @giallu Merge back to HEAD the changes between tags:
giallu authored
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
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
15 # along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
9985f87 @vboctor - Updated copyright to include 2004
vboctor authored
16
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
17 /**
18 * @package MantisBT
19 * @copyright Copyright (C) 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
c757c81 @dregad Update copyright year to 2012
dregad authored
20 * @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge.net
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
21 * @link http://www.mantisbt.org
22 */
23 /**
4d63b48 @siebrand Mantis -> MantisBT in file headers, comments, and elsewhere.
siebrand authored
24 * MantisBT Core API's
526bbaa @grangeway Comment updates for phpdoc ( http://www.mantisforge.org/dev/phpdoc/ )…
grangeway authored
25 */
6513a90 Two changes:
Jeroen Latour authored
26 require_once( 'core.php' );
ee6a870 Fix for 0004896: Updating project documentation entry needs upload
marcelloscata authored
27
c36df5b @grangeway following giallu's change to use set_include_path to set first requir…
grangeway authored
28 require_once( 'file_api.php' );
1584645 @vboctor Enh #3609: Added new configuration variable $g_enable_project_documen…
vboctor authored
29
ee6a870 Fix for 0004896: Updating project documentation entry needs upload
marcelloscata authored
30 # Check if project documentation feature is enabled.
31 if ( OFF == config_get( 'enable_project_documentation' ) ||
32 !file_is_uploading_enabled() ||
33 !file_allow_project_upload() ) {
60c8170 Cleanup file upload handling some more.
Julian Fitzell authored
34 access_denied();
35 }
4755045 @thraxisp fix for 0004675: If you upload a file (using 'edit' on a exisiting d…
thraxisp authored
36
37 access_ensure_project_level( config_get( 'upload_project_file_threshold' ) );
33a0a80 @thraxisp similar fix for 4749: Uploading large files fails & slogs Apache
thraxisp authored
38
39 $t_max_file_size = (int)min( ini_get_number( 'upload_max_filesize' ), ini_get_number( 'post_max_size' ), config_get( 'max_file_size' ) );
230e3f4 @grangeway HTML api documentation + tidy up of api names
grangeway authored
40
41 html_page_top();
bd552ac Renamed files to .php
Kenzaburo Ito authored
42 ?>
43
9655dec changed P tags to BR. This will format better across more browsers. …
Kenzaburo Ito authored
44 <br />
bd552ac Renamed files to .php
Kenzaburo Ito authored
45 <div align="center">
4d4ee05 fixing form tags for xzhtml compliance
Kenzaburo Ito authored
46 <form method="post" enctype="multipart/form-data" action="proj_doc_add.php">
3fee456 @davidhicks Add CSRF protection for proj_doc_add
davidhicks authored
47 <?php echo form_security_field( 'proj_doc_add' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
48 <table class="width75" cellspacing="1">
49 <tr>
50 <td class="form-title">
1922428 Remove the rest of the uses of global internationalization strings. …
Julian Fitzell authored
51 <?php echo lang_get( 'upload_file_title' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
52 </td>
53 <td class="right">
f8c82c4 Removed most file variables from default/config_inc2.php. Also added…
Kenzaburo Ito authored
54 <?php print_doc_menu( 'proj_doc_add_page.php' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
55 </td>
56 </tr>
57 <tr class="row-1">
58 <td class="category" width="25%">
10e9fde @vboctor Fixed #2943: Document title should be mandatory.
vboctor authored
59 <span class="required">*</span><?php echo lang_get( 'title' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
60 </td>
61 <td width="75%">
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
62 <input type="text" name="title" size="70" maxlength="250" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
63 </td>
64 </tr>
65 <tr class="row-2">
66 <td class="category">
1922428 Remove the rest of the uses of global internationalization strings. …
Julian Fitzell authored
67 <?php echo lang_get( 'description' ) ?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
68 </td>
69 <td>
cff357b @giallu XHTML validation fix.
giallu authored
70 <textarea name="description" cols="60" rows="7"></textarea>
bd552ac Renamed files to .php
Kenzaburo Ito authored
71 </td>
72 </tr>
73 <tr class="row-1">
74 <td class="category">
fbae2c2 @grangeway Empty ?> <?php block can be removed.
grangeway authored
75 <span class="required">*</span><?php echo lang_get( 'select_file' );
76 echo '<br /><span class="small">(' . lang_get( 'max_file_size' ) . ': ' . number_format( $t_max_file_size/1000 ) . 'k)</span>'?>
bd552ac Renamed files to .php
Kenzaburo Ito authored
77 </td>
78 <td>
33a0a80 @thraxisp similar fix for 4749: Uploading large files fails & slogs Apache
thraxisp authored
79 <input type="hidden" name="max_file_size" value="<?php echo $t_max_file_size ?>" />
d6843bb Remove f_ prefix from POST and GET field names. The variables should…
Julian Fitzell authored
80 <input name="file" type="file" size="70" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
81 </td>
82 </tr>
83 <tr>
10e9fde @vboctor Fixed #2943: Document title should be mandatory.
vboctor authored
84 <td class="left">
85 <span class="required"> * <?php echo lang_get( 'required' ) ?></span>
86 </td>
87 <td class="center">
ff82370 Enh #3735: New CSS class for HTML Form Buttons
Jeroen Latour authored
88 <input type="submit" class="button" value="<?php echo lang_get( 'upload_file_button' ) ?>" />
bd552ac Renamed files to .php
Kenzaburo Ito authored
89 </td>
90 </tr>
91 </table>
4d4ee05 fixing form tags for xzhtml compliance
Kenzaburo Ito authored
92 </form>
bd552ac Renamed files to .php
Kenzaburo Ito authored
93 </div>
94
230e3f4 @grangeway HTML api documentation + tidy up of api names
grangeway authored
95 <?php
624fafd @grangeway We dont use __FILE__ param of html_page_bottom. Note: someone who wer…
grangeway authored
96 html_page_bottom();
Something went wrong with that request. Please try again.