3 * Copyright (c) Xerox Corporation, Codendi Team, 2001-2009. All rights reserved
4 * Copyright 2013, Franck Villaume - TrivialDev
6 * This file is a part of Fusionforge.
8 * Fusionforge is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * Fusionforge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Fusionforge. If not, see <http://www.gnu.org/licenses/>.
22 require_once '../../env.inc.php';
23 require_once $gfcommon.'include/pre.php';
24 require_once $gfcommon.'include/preplugins.php';
25 require_once 'plugins_utils.php';
28 use_javascript('scripts/hudson_tab.js');
30 $plugin_manager = PluginManager::instance();
31 $p = $plugin_manager->getPluginByName('hudson');
33 if ($p && $plugin_manager->isPluginAvailable($p)) {
36 session_redirect(get_server_url());