3 * Site Admin group properties editing page
5 * Copyright 1999-2001 (c) VA Linux Systems
7 * This file is part of GForge.
9 * GForge is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * GForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with GForge; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 require_once('../env.inc.php');
25 require_once $gfwww.'include/pre.php';
26 require_once $gfcommon.'include/license.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('Error',$group->getErrorMessage());
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('Error',$group->getErrorMessage());
47 plugin_hook('delete_link',$_GET['group_id']) ;
48 header("Location: ".util_make_url("/admin/?feedback=DELETED"));
52 site_admin_header(array('title'=>_('Permanently Delete Project')));
54 echo '<h2>'._('Permanently and irretrievably delete project').': '.$group->getPublicName().'</h2>' ;?>
56 <form action="<?php echo getStringFromServer('PHP_SELF').'?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());