5 * Copyright 2004 (c) GForge LLC
7 * @version $Id: wait_son.php,v 1.0 2006/10/10 15:00:00 fregnier Exp $
8 * @author Fabien Regnier fabien.regnier@sogeti.com
11 * This file is part of GForge.
13 * GForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * GForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with GForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 require_once('pre.php');
30 $group_id = getIntFromRequest('group_id');
31 $sub_group_id = getIntFromRequest('sub_group_id');
33 session_require(array('group'=>$group_id,'admin_flags'=>'A'));
34 //update the link when the son allow the father
35 $sql = "UPDATE plugin_projects_hierarchy SET activated = true WHERE project_id = '".$group_id."' AND sub_project_id = '".$sub_group_id."'";
38 db_query($sql) or die(db_error());
42 $params[0] = $sub_group_id;
43 $params[1] = $group_id;
45 plugin_hook('add_cal_link_father',$params);
47 header("Location: ".util_make_url ('/project/admin/index.php?group_id='.$sub_group_id));