aboutsummaryrefslogtreecommitdiffstats
path: root/cgi-bin/index.cgi
blob: 5efa46943660b89687e8552f5a9ae7f85d9aa299 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/perl

use 5.010_000;
use strict;
use warnings;
use utf8;

=head1 NAME

index.cgi -

=cut

use lib 'lib';
use Fripost::Panel::Interface;

# TODO: Try out Fast CGI
#use CGI::Fast();
#
#while (my $q = new CGI::Fast){
#   my $app = new WebApp(QUERY => $q);
#   $app->run();
#}

my @config = 'default.in';
push @config, 'config.in' if -f 'config.in';

my $cgi = Fripost::Panel::Interface->new(
    PARAMS => { cfg_file => [ @config ], format => 'equal' }
);
$cgi->run();

=head1 AUTHOR

Guilhem Moulin C<< <guilhem at fripost.org> >>

=head1 COPYRIGHT

Copyright 2012 Guilhem Moulin.

=head1 LICENSE

This program is free software; you can redistribute it and/or modify it
under the same terms as perl itself.

=cut

__END__