diff options
author | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-02 02:45:05 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem.moulin@fripost.org> | 2012-09-02 02:47:47 +0200 |
commit | 742c9938af740b9ba758f4b03909f30106b285a5 (patch) | |
tree | 58138e66695572c9a52164560b281c856d4a51b1 /cgi-bin/index.cgi | |
parent | ec2ed6c255ca97f39d4a58071f8558744bd9958d (diff) |
Use global configuration files.
Diffstat (limited to 'cgi-bin/index.cgi')
-rwxr-xr-x | cgi-bin/index.cgi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cgi-bin/index.cgi b/cgi-bin/index.cgi index 9ac0e6e..6f3053f 100755 --- a/cgi-bin/index.cgi +++ b/cgi-bin/index.cgi @@ -6,6 +6,7 @@ use utf8; use lib 'lib'; use FPanel::Interface; + # TODO: Try out Fast CGI #use CGI::Fast(); # @@ -14,5 +15,10 @@ use FPanel::Interface; # $app->run(); #} -my $cgi = FPanel::Interface->new(); +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(); |