4 * Copyright (C) 2010 Alain Peyrat - Alcatel-Lucent
5 * http://fusionforge.org/
7 * This file is part of FusionForge.
9 * FusionForge is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * FusionForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with this program; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 require_once ('../../../www/env.inc.php');
25 require_once $gfcommon.'include/pre.php';
27 $group_id = getIntFromRequest('group_id');
32 $group =& group_get_object($group_id);
33 if (!$group || !is_object($group) || $group->isError()) {
37 $tab_name = htmlspecialchars(trim(getStringFromRequest ('tab_name')));
38 $result = db_query_params('SELECT * FROM plugin_extratabs_main WHERE group_id=$1 AND tab_name=$2',
39 array ($group_id, $tab_name));
40 if ($result && db_numrows($result)) {
41 $tab_url = rtrim(db_result($result, 0, 'tab_url'), '/');
42 site_project_header(array('title'=>_($tab_name), 'group' => $group_id, 'toptab'=>$tab_name));
44 <iframe src="<?php echo $tab_url ?>" frameborder="0" height="600px" width="100%"></iframe>
46 site_project_footer(array());
51 // c-file-style: "bsd"