From 742c9938af740b9ba758f4b03909f30106b285a5 Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Sun, 2 Sep 2012 02:45:05 +0200 Subject: Use global configuration files. --- cgi-bin/index.cgi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'cgi-bin') 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(); -- cgit v1.2.3