5 * Copyright 2011, Franck Villaume - Capgemini
6 * Copyright 2011-2012, Franck Villaume - TrivialDev
7 * http://fusionforge.org
9 * This file is part of FusionForge. FusionForge is free software;
10 * you can redistribute it and/or modify it under the terms of the
11 * GNU General Public License as published by the Free Software
12 * Foundation; either version 2 of the Licence, or (at your option)
15 * FusionForge is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 global $group_id; // the group id
26 global $mantisbt; // the mantisbt object
27 global $group; // the group object
30 $confArr['url'] = getStringFromRequest('url');
31 $confArr['sync_roles'] = 0;
32 $confArr['soap_user'] = getStringFromRequest('soap_user');
33 $confArr['soap_password'] = getStringFromRequest('soap_password');
34 $confArr['global_conf'] = getIntFromRequest('global_conf');
36 if (!$mantisbt->updateConf($group_id, $confArr))
37 session_redirect('/plugins/mantisbt/?type=admin&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&error_msg='.urlencode($group->getErrorMessage()));
39 $feedback = _('MantisBT configuration successfully updated.');
40 session_redirect('/plugins/mantisbt/?type=admin&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&feedback='.urlencode($feedback));