X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=kopf.pl;h=b01c42a10d89623d22c6879202ad67ca1f3da735;hb=5c3437e5b742d646d573f3c52fb68de010e7cdd0;hp=28ab157168c9a95df4c8ca0ff2cbd5a1eaa432db;hpb=8c7e44938a661e035f62840e1e177353240ace5d;p=kivitendo-erp.git diff --git a/kopf.pl b/kopf.pl index 28ab15716..b01c42a10 100755 --- a/kopf.pl +++ b/kopf.pl @@ -1,13 +1,15 @@ #!/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. } use SL::LXDebug; -$lxdebug = LXDebug->new(); +our $lxdebug = LXDebug->new(); use SL::Auth; use SL::Form; @@ -16,7 +18,7 @@ use SL::Locale; eval { require "config/lx-erp.conf"; }; eval { require "config/lx-erp-local.conf"; } if (-f "config/lx-erp-local.conf"); -$form = new Form; +our $form = new Form; our $auth = SL::Auth->new(); if (!$auth->session_tables_present()) { @@ -27,7 +29,7 @@ $auth->restore_session(); our %myconfig = $auth->read_user($form->{login}); -$locale = new Locale "$myconfig{countrycode}", "kopf"; +our $locale = new Locale "$myconfig{countrycode}", "kopf"; delete $form->{password};