aboutsummaryrefslogtreecommitdiffstats
path: root/cgi-bin
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin')
-rwxr-xr-xcgi-bin/index.cgi8
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();