3 * FusionForge globalsearch plugin
5 * Copyright 2003-2004, GForge, LLC
6 * Copyright 2007-2009, Roland Mas
7 * Copyright 2016, Franck Villaume - TrivialDev
9 * This file is part of FusionForge.
11 * FusionForge is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published
13 * by the Free Software Foundation; either version 2 of the License,
14 * or (at your option) any later version.
16 * FusionForge is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
21 * You should have received a copy of the GNU General Public License along
22 * with this program; if not, write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
26 require_once '../../env.inc.php';
27 require_once $gfcommon.'include/pre.php';
29 session_require_global_perm ('forge_admin');
30 include_once(forge_get_config('plugins_path').'/globalsearch/common/globalsearch_edit_utils.php');
32 $HTML->header(array('title'=>_('Edit associated forges for global search')));
34 echo '<h3>'._('Edit associated forges for global search').'</h3>
35 <p>'.util_make_link('/admin/', _('Site Admin Home')).'</p>';
37 $function = getStringFromRequest ('function');
38 $id = getIntFromRequest ('id');
42 globalsearch_admin_table_add ();
46 globalsearch_admin_table_postadd ();
49 case 'confirmdelete' : {
50 globalsearch_admin_table_confirmdelete ($id);
54 globalsearch_admin_table_delete ($id);
58 globalsearch_admin_table_edit ($id);
62 globalsearch_admin_table_postedit ($id);
67 globalsearch_admin_table_show ();