3 * Site Admin group properties editing page
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2010 (c) Franck Villaume - Capgemini
8 * This file is part of FusionForge.
10 * FusionForge is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
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
21 * along with FusionForge; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 require_once('../env.inc.php');
26 require_once $gfcommon.'include/pre.php';
27 require_once $gfcommon.'include/license.php';
28 require_once $gfwww.'admin/admin_utils.php';
30 session_require_global_perm ('forge_admin');
32 $group_id=getIntFromGet('group_id');
34 $group = group_get_object($group_id);
35 if (!$group || !is_object($group)) {
37 } elseif ($group->isError()) {
38 exit_error($group->getErrorMessage(),'admin');
41 if (getStringFromPost('submit')) {
42 $sure = getIntFromPost('sure');
43 $reallysure = getIntFromPost('reallysure');
44 $reallyreallysure = getIntFromPost('reallyreallysure');
45 if (!$group->delete($sure, $reallysure, $reallyreallysure)) {
46 exit_error($group->getErrorMessage(),'admin');
48 plugin_hook('delete_link',$_GET['group_id']) ;
49 $feedback = _('Project successfully deleted');
50 session_redirect('/admin/?feedback='.urlencode($feedback));
54 $title = _('Permanently and irretrievably delete project').': '.$group->getPublicName();
55 site_admin_header(array('title'=>$title));
56 echo '<h1>'.$title.'</h1>'; ?>
58 <form action="<?php echo getStringFromServer('PHP_SELF').'?group_id='.$group_id; ?>" method="post">
59 <input type="checkbox" value="1" name="sure" /> <?php echo _('Confirm Delete'); ?><br />
60 <input type="checkbox" value="1" name="reallysure" /> <?php echo _('Confirm Delete'); ?><br />
61 <input type="checkbox" value="1" name="reallyreallysure" /> <?php echo _('Confirm Delete'); ?><br />
63 <input type="submit" name="submit" value="<?php echo _('Permanently Delete'); ?>" />
68 site_admin_footer(array());