3 * FusionForge globalsearch plugin
5 * Copyright 2003-2004, GForge, LLC
6 * Copyright 2007-2009, Roland Mas
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
12 * by the Free Software Foundation; either version 2 of the License,
13 * or (at your option) any later version.
15 * FusionForge is distributed in the hope that it will be useful, but
16 * WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with this program; 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';
28 session_require_global_perm ('forge_admin');
29 include_once(forge_get_config('plugins_path').'/globalsearch/common/globalsearch_edit_utils.php');
31 $HTML->header(array('title'=>_('Edit associated forges for global search')));
33 echo '<h3>'._('Edit associated forges for global search').'</h3>
34 <p><a href="/admin/">'._("Site Admin Home").'</a></p>';
36 $function = getStringFromRequest ('function');
37 $id = getIntFromRequest ('id');
41 globalsearch_admin_table_add ();
45 globalsearch_admin_table_postadd ();
48 case 'confirmdelete' : {
49 globalsearch_admin_table_confirmdelete ($id);
53 globalsearch_admin_table_delete ($id);
57 globalsearch_admin_table_edit ($id);
61 globalsearch_admin_table_postedit ($id);
66 echo globalsearch_admin_table_show ();
68 $HTML->footer(array());