Globale Variablen entfernt/umgewandelt.
[kivitendo-erp.git] / admin.pl
old mode 100644 (file)
new mode 100755 (executable)
index da0cbca..ef97a15
--- a/admin.pl
+++ b/admin.pl
@@ -1 +1,16 @@
-link login.pl
\ No newline at end of file
+#!/usr/bin/perl
+
+use strict;
+
+BEGIN {
+  unshift @INC, "modules/override"; # Use our own versions of various modules (e.g. YAML).
+  push    @INC, "modules/fallback"; # Only use our own versions of modules if there's no system version.
+  push    @INC, "SL";               # FCGI won't find modules that are not properly named. Help it by inclduging SL
+}
+
+use SL::Dispatcher;
+
+SL::Dispatcher::pre_startup();
+SL::Dispatcher::handle_request('CGI');
+
+1;