summaryrefslogtreecommitdiff
path: root/fs_selfservice/FS-SelfService/cgi/image.cgi
blob: e951dcd1accc5567ffcca986e9c93e6f7e791a5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/perl -T
#!/usr/bin/perl -Tw

use strict;
use CGI;
use FS::SelfService qw( skin_info );

my $cgi = new CGI;

my($query) = $cgi->keywords;
$query =~ /^(\w+)$/ or '' =~ /^()$/;
my $name = $1;

my $info = skin_info();

print $cgi->header( '-type'    => 'image/png', #for now
                    #'-expires' => 'now',
                  ).
      $info->{$name};