aboutsummaryrefslogtreecommitdiffstats
path: root/cgi-bin/index.cgi
blob: 6f3053faf61e9e4a0e99cd982d68f16dccd08a19 (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
#!/usr/bin/perl

use strict;
use warnings;
use utf8;

use lib 'lib';
use FPanel::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 = FPanel::Interface->new(
    PARAMS => { cfg_file => [ @config ], format => 'equal' }
);
$cgi->run();