6 * Copyright 2012, 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 along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 if (count ($argv) < 2) {
26 echo "Usage: .../list-projects-using-plugin.php <plugin>
27 For instance: .../list-projects-using-plugin.php mediawiki
34 require (dirname(__FILE__).'/../common/include/env.inc.php');
35 require_once $gfcommon.'include/pre.php';
36 require_once $gfcommon.'include/cron_utils.php';
39 require_once($gfcommon.'include/Plugin.class.php');
40 require_once($gfcommon.'include/PluginManager.class.php');
42 setup_plugin_manager () ;
44 $plugin = plugin_get_object($pname);
47 die ("Wrong plugin name\n") ;
50 foreach ($plugin->getGroups() as $p) {
51 print $p->getUnixName()."\n";