/
config.php
113 lines (96 loc) · 3.7 KB
/
config.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?php
# MantisBT - A PHP based bugtracking system
# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
/**
* Edit Core Formatting Configuration
* @package MantisBT
* @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
* @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*/
auth_reauthenticate( );
access_ensure_global_level( config_get( 'manage_plugin_threshold' ) );
html_page_top( lang_get( 'plugin_format_title' ) );
print_manage_menu( );
?>
<br/>
<div class="form-container" style="width: 60%">
<form action="<?php echo plugin_page( 'config_edit' )?>" method="post">
<fieldset>
<?php echo form_security_field( 'plugin_format_config_edit' ) ?>
</fieldset>
<table>
+<colgroup>
<col style="width:60%;" />
<col style="width:20%;" />
<col style="width:20%;" />
</colgroup>
<tr>
<td class="form-title" colspan="3">
<?php echo lang_get( 'plugin_format_title' ) . ': ' . lang_get( 'plugin_format_config' )?>
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'plugin_format_process_text' )?>
<br /><span class="small"><?php echo lang_get( 'plugin_format_process_text_warning_notice' )?></span>
</th>
<td class="center">
<label><input type="radio" name="process_text" value="1" <?php echo( ON == plugin_config_get( 'process_text' ) ) ? 'checked="checked" ' : ''?>/>
<?php echo lang_get( 'plugin_format_enabled' )?></label>
</td>
<td class="center">
<label><input type="radio" name="process_text" value="0" <?php echo( OFF == plugin_config_get( 'process_text' ) ) ? 'checked="checked" ' : ''?>/>
<?php echo lang_get( 'plugin_format_disabled' )?></label>
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'plugin_format_process_urls' )?>
</th>
<td class="center">
<label><input type="radio" name="process_urls" value="1" <?php echo( ON == plugin_config_get( 'process_urls' ) ) ? 'checked="checked" ' : ''?>/>
<?php echo lang_get( 'plugin_format_enabled' )?></label>
</td>
<td class="center">
<label><input type="radio" name="process_urls" value="0" <?php echo( OFF == plugin_config_get( 'process_urls' ) ) ? 'checked="checked" ' : ''?>/>
<?php echo lang_get( 'plugin_format_disabled' )?></label>
</td>
</tr>
<tr>
<th class="category">
<?php echo lang_get( 'plugin_format_process_buglinks' )?>
<br />
<span class="small"><?php
printf( lang_get( 'plugin_format_process_buglinks_info' ),
config_get( 'bug_link_tag' ), config_get( 'bugnote_link_tag' ) );
?></span>
</th>
<td class="center">
<label><input type="radio" name="process_buglinks" value="1" <?php echo( ON == plugin_config_get( 'process_buglinks' ) ) ? 'checked="checked" ' : ''?>/>
<?php echo lang_get( 'plugin_format_enabled' )?></label>
</td>
<td class="center">
<label><input type="radio" name="process_buglinks" value="0" <?php echo( OFF == plugin_config_get( 'process_buglinks' ) ) ? 'checked="checked" ' : ''?>/>
<?php echo lang_get( 'plugin_format_disabled' )?></label>
</td>
</tr>
</table>
<div class="submit-button">
<input type="submit" class="button" value="<?php echo lang_get( 'change_configuration' )?>" />
</div
</form>
</div>
<?php
html_page_bottom();