00001 <?php
00002 # This file is part of the Savane project
00003 # <http://gna.org/projects/savane/>
00004 #
00005 # $Id: conf-copy.php 5187 2005-12-01 16:22:29Z yeupou $
00006 #
00007 # Copyright 2004-2004 (c) Mathieu Roy <yeupou--at--gnu.org>
00008 #
00009 # The Savane project is free software; you can redistribute it and/or
00010 # modify it under the terms of the GNU General Public License
00011 # as published by the Free Software Foundation; either version 2
00012 # of the License, or (at your option) any later version.
00013 #
00014 # The Savane project is distributed in the hope that it will be useful,
00015 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00017 # GNU General Public License for more details.
00018 #
00019 # You should have received a copy of the GNU General Public License
00020 # along with the Savane project; if not, write to the Free Software
00021 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00022
00023 require "../../include/pre.php";
00024 require_directory("trackers");
00025
00026 if ($group_id && user_ismember($group_id,'A'))
00027 {
00028
00029 # Initialize global bug structures
00030 if ($update && $from_group_id != 100)
00031 {
00032 trackers_conf_copy(addslashes($group_id), $artifact, addslashes($from_group_id));
00033 }
00034
00035 site_project_header(array('context'=>'ahome','group'=>$group_id,'title'=>_("Copy Configuration")));
00036
00037
00038 print '<h3>'.("Support Trackers Configuration Copy").'</h3>';
00039 conf_form($group_id, "support");
00040 print '<h3>'.("Bugs Trackers Configuration Copy").'</h3>';
00041 conf_form($group_id, "bugs");
00042 print '<h3>'.("Task Trackers Configuration Copy").'</h3>';
00043 conf_form($group_id, "task");
00044 print '<h3>'.("Patch Trackers Configuration Copy").'</h3>';
00045 conf_form($group_id, "patch");
00046
00047 site_project_footer(array());
00048
00049 }
00050 else
00051 {
00052 if (!$group_id)
00053 { exit_no_group(); }
00054 else
00055 { exit_permission_denied(); }
00056 }
00057
00058
00059 ?>