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
21 * along with FusionForge; if not, write to the Free Software
22 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
26 require_once('../../env.inc.php');
27 require_once $gfwww.'include/pre.php';
29 session_require(array('group'=>'1','admin_flags'=>'A'));
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><a href="/admin/">'._("Site Admin Home").'</a></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 echo globalsearch_admin_table_show ();
69 $HTML->footer(array());