summaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi28
1 files changed, 28 insertions, 0 deletions
diff --git a/index.cgi b/index.cgi
new file mode 100755
index 0000000..18fb0d4
--- /dev/null
+++ b/index.cgi
@@ -0,0 +1,28 @@
+#!/usr/local/bin/perl
+
+# Xerl (c) 2005-2011, 2013-2015, 2017-2018 by Paul Buetow
+#
+# E-Mail: xerl@dev.buetow.org WWW: http://xerl.buetow.org
+#
+# This is free software, you may use it and distribute it under the same
+# terms as Perl itself.
+
+use strict;
+use warnings;
+
+use v5.14.0;
+use lib qw(.);
+
+use Xerl;
+
+use Socket;
+use Sys::Hostname;
+
+my $host = hostname();
+my $config =
+ -e "xerldev.conf"
+ ? "xerldev.conf"
+ : ( -e "xerl-$host.conf" ? "xerl-$host.conf" : 'config.conf' );
+
+my $xerl = Xerl->new( config => $config );
+$xerl->run();