4 * Project Admin: Edit Packages
6 * Copyright 1999-2001 (c) VA Linux Systems
7 * Copyright 2002-2004 (c) GForge Team
8 * http://fusionforge.org/
10 * This file is part of FusionForge.
12 * FusionForge is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * FusionForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with FusionForge; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 require_once('../../env.inc.php');
28 require_once $gfcommon.'include/pre.php';
29 require_once $gfwww.'frs/include/frs_utils.php';
30 require_once $gfcommon.'frs/FRSPackage.class.php';
32 $group_id = getIntFromRequest('group_id');
33 $package_id = getIntFromRequest('package_id');
38 $project = group_get_object($group_id);
39 if (!$project || !is_object($project)) {
41 } elseif ($project->isError()) {
42 exit_error($project->getErrorMessage(),'frs');
45 session_require_perm ('frs', $group_id, 'write') ;
47 $frsp = new FRSPackage($project,$package_id);
48 if (!$frsp || !is_object($frsp)) {
49 exit_error(_('Could Not Get FRS Package'),'frs');
50 } elseif ($frsp->isError()) {
51 exit_error($frsp->getErrorMessage(),'frs');
55 Relatively simple form to delete packages of releases
58 frs_admin_header(array('title'=>sprintf(_('Delete Package: %1$s'), $frsp->getName()),'group'=>$group_id));
61 <form action="/frs/admin/?group_id='.$group_id.'" method="post">
63 <input type="hidden" name="func" value="delete_package" />
64 <input type="hidden" name="package_id" value="'. $package_id .'" />
65 '._('You are about to permanently and irretrievably delete this package and all its releases and files!').'
68 <input type="checkbox" name="sure" value="1" />'._('I\'m Sure').'
71 <input type="checkbox" name="really_sure" value="1" />'._('I\'m Really Sure').'
74 <input type="submit" name="submit" value="'._('Delete').'" />