Merge pull request #5205 from solgenomics/topic/generic_trial_upload
[sgn.git] / cgi-bin / image / index.pl
blobedb260d41ca087866f4f7a11fab8d4ba2197325b
1 use CatalystX::GlobalContext qw( $c );
2 use strict;
3 use warnings;
5 use CGI;
6 use CXGN::DB::Connection;
7 use CXGN::Login;
9 my $q = CGI->new();
10 my $dbh = CXGN::DB::Connection->new();
11 my $login = CXGN::Login->new($dbh);
13 my $person_id = $login->has_session();
15 my ($image_id, $size) = ($q->param("image_id"), $q->param("size"));
18 print $q->redirect("/image/view/$image_id", 301);