3 * Site Admin group properties editing page
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2010-2011, Franck Villaume - Capgemini
7 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
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 require_once('../env.inc.php');
26 require_once $gfcommon.'include/pre.php';
27 require_once $gfwww.'admin/admin_utils.php';
29 session_require_global_perm('forge_admin');
31 $group_id = getIntFromGet('group_id');
33 $group = group_get_object($group_id);
34 if (!$group || !is_object($group)) {
36 } elseif ($group->isError()) {
37 exit_error($group->getErrorMessage(), 'admin');
40 if (getStringFromPost('submit')) {
41 $sure = getIntFromPost('sure');
42 $reallysure = getIntFromPost('reallysure');
43 $reallyreallysure = getIntFromPost('reallyreallysure');
44 if (!$group->delete($sure, $reallysure, $reallyreallysure)) {
45 exit_error($group->getErrorMessage(), 'admin');
47 $feedback = _('Project successfully deleted');
48 session_redirect('/admin/?feedback='.urlencode($feedback));
52 $title = _('Permanently and irretrievably delete project').': '.$group->getPublicName();
53 site_admin_header(array('title'=>$title));
56 <form action="<?php echo '?group_id='.$group_id; ?>" method="post">
57 <input type="checkbox" value="1" name="sure" /> <?php echo _('Confirm Delete'); ?><br />
58 <input type="checkbox" value="1" name="reallysure" /> <?php echo _('Confirm Delete'); ?><br />
59 <input type="checkbox" value="1" name="reallyreallysure" /> <?php echo _('Confirm Delete'); ?><br />
61 <input type="submit" name="submit" value="<?php echo _('Permanently Delete'); ?>" />
66 site_admin_footer(array());