4 * ContribTracker plugin
6 * Copyright 2009, Roland Mas
7 * Copyright 2010 (c) Franck Villaume
8 * http://fusionforge.org/
10 * This file is part of FusionForge.
12 * FusionForge is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * FusionForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 require_once '../../env.inc.php';
28 require_once $gfcommon.'include/pre.php';
29 $plugin = plugin_get_object ('contribtracker') ;
31 $actor_id = getIntFromRequest ('actor_id') ;
34 $actor = new ContribTrackerActor ($actor_id) ;
35 if (!is_object ($actor) || $actor->isError()) {
36 exit_error (_('Invalid actor'),'contribtracker');
38 Header ("Content-type: image/png");
39 echo $actor->getLogo();
41 exit_error (_('Invalid actor'),'contribtracker');
46 // c-file-style: "bsd"