1<?php
2# MantisBT - A PHP based bugtracking system
3
4# MantisBT is free software: you can redistribute it and/or modify
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#
9# MantisBT is distributed in the hope that it will be useful,
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
15# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * Manage configuration for workflow Config
19 *
20 * @package MantisBT
21 * @copyright Copyright 2000 - 2002  Kenzaburo Ito - kenito@300baud.org
22 * @copyright Copyright 2002  MantisBT Team - mantisbt-dev@lists.sourceforge.net
23 * @link http://www.mantisbt.org
24 *
25 * @uses core.php
26 * @uses authentication_api.php
27 * @uses config_api.php
28 * @uses constant_inc.php
29 * @uses current_user_api.php
30 * @uses form_api.php
31 * @uses helper_api.php
32 * @uses html_api.php
33 * @uses lang_api.php
34 * @uses print_api.php
35 * @uses project_api.php
36 * @uses string_api.php
37 * @uses workflow_api.php
38 */
39
40require_once( 'core.php' );
41require_api( 'access_api.php' );
42require_api( 'authentication_api.php' );
43require_api( 'config_api.php' );
44require_api( 'constant_inc.php' );
45require_api( 'helper_api.php' );
46require_api( 'html_api.php' );
47require_api( 'lang_api.php' );
48require_api( 'print_api.php' );
49require_api( 'project_api.php' );
50require_api( 'string_api.php' );
51
52auth_reauthenticate();
53
54if( !config_get( 'relationship_graph_enable' ) ) {
55	access_denied();
56}
57
58layout_page_header( lang_get( 'manage_workflow_graph' ) );
59
60layout_page_begin( 'manage_overview_page.php' );
61
62print_manage_menu( 'adm_permissions_report.php' );
63print_manage_config_menu( 'manage_config_workflow_graph_page.php' );
64
65$t_project = helper_get_current_project();
66
67if( $t_project == ALL_PROJECTS ) {
68	$t_project_title = lang_get( 'config_all_projects' );
69} else {
70	$t_project_title = sprintf( lang_get( 'config_project' ), string_display_line( project_get_name( $t_project ) ) );
71}
72?>
73	<br />
74	<br />
75	<div class="center">
76		<p class="bold"><?php echo $t_project_title ?></p>
77		<br />
78		<img src="workflow_graph_img.php" />
79	</div>
80<?php
81layout_page_end();
82